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

00001 #include "BDSCollimatorElliptical.hh"
00002 #include "BDSCollimatorBase.hh"
00003 
00004 #include "globals.hh" // geant4 globals / types
00005 #include "G4EllipticalTube.hh"
00006 #include "G4VSolid.hh"
00007 
00008 class BDSTiltOffset;
00009 
00010 BDSCollimatorElliptical::BDSCollimatorElliptical(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, "ecol",
00019                     xAperture, yAperture,
00020                     collimatorMaterial,
00021                     vacuumMaterial,
00022                     tiltOffset)
00023 {;}
00024 
00025 
00026 void BDSCollimatorElliptical::BuildInnerCollimator()
00027 {
00028   innerSolid  = new G4EllipticalTube(name + "_inner_solid",    // name
00029                                      xAperture,                // x half width
00030                                      yAperture,                // y half width
00031                                      chordLength);             // z half length
00032   // z half length long for unambiguous subtraction
00033 
00034   vacuumSolid = new G4EllipticalTube(name + "_inner_solid",    // name
00035                                      xAperture - lengthSafety, // x half width
00036                                      yAperture - lengthSafety, // y half width
00037                                      chordLength * 0.5);       // z half length
00038 }

Generated on 28 Jun 2015 for BDSIM by  doxygen 1.4.7