/scratch0/jsnuveri/BDSIM/BDSIMgit/bdsim/src/BDSCollimatorRectangular.cc

00001 #include "BDSCollimatorRectangular.hh"
00002 #include "BDSCollimatorBase.hh"
00003 
00004 #include "globals.hh" // geant4 globals / types
00005 #include "G4Box.hh"
00006 #include "G4VSolid.hh"
00007 
00008 class BDSTiltOffset;
00009 
00010 BDSCollimatorRectangular::BDSCollimatorRectangular(G4String name,
00011                                                    G4double length,
00012                                                    G4double outerDiameter,
00013                                                    G4double xAperture,
00014                                                    G4double yAperture,
00015                                                    G4String collimatorMaterial,
00016                                                    G4String vacuumMaterial,
00017                                                    BDSTiltOffset tiltOffset):
00018   BDSCollimatorBase(name, length, outerDiameter, "rcol",
00019                     xAperture, yAperture,
00020                     collimatorMaterial,
00021                     vacuumMaterial,
00022                     tiltOffset)
00023 {;}
00024 
00025 void BDSCollimatorRectangular::BuildInnerCollimator()
00026 {
00027   innerSolid  = new G4Box(name + "_inner_solid",    // name
00028                           xAperture,                // x half width
00029                           yAperture,                // y half width
00030                           chordLength);             // z half length
00031   // z half length long for unambiguous subtraction
00032 
00033   vacuumSolid = new G4Box(name + "_vacuum_solid",   // name
00034                           xAperture - lengthSafety, // x half width
00035                           yAperture - lengthSafety, // y half width
00036                           chordLength*0.5);         // z half length
00037 }

Generated on 28 Jun 2015 for BDSIM by  doxygen 1.4.7