#include <CexmcSetup.hh>
Definition at line 59 of file CexmcSetup.hh.
Enumerator |
---|
Monitor |
|
VetoCounter |
|
Calorimeter |
|
Target |
|
Definition at line 62 of file CexmcSetup.hh.
CexmcSetup::CexmcSetup |
( |
const G4String & |
gdmlFile = "default.gdml" , |
|
|
G4bool |
validateGDMLFile = true |
|
) |
| |
|
explicit |
Definition at line 71 of file CexmcSetup.cc.
72 world( 0 ), gdmlFile( gdmlFile ), validateGDMLFile( validateGDMLFile ),
73 calorimeterRegionInitialized(
false ),
74 calorimeterGeometryDataInitialized(
false ), monitorVolume( NULL ),
75 vetoCounterVolume( NULL ), calorimeterVolume( NULL ), targetVolume( NULL ),
76 rightVetoCounter( NULL ), rightCalorimeter( NULL )
Implements G4VUserDetectorConstruction.
Definition at line 81 of file CexmcSetup.cc.
88 gdmlParser.
Read( gdmlFile, validateGDMLFile );
91 SetupSpecialVolumes( gdmlParser );
93 ReadTransforms( gdmlParser );
100 runManager->SetupConstructionHook();
103 dynamic_cast< const CexmcPhysicsManager * >(
104 runManager->GetUserPhysicsList() ) );
106 if ( ! physicsManager )
110 const_cast< CexmcPhysicsManager * >( physicsManager ) );
111 thePhysicsManager->SetupConstructionHook(
this );
G4VPhysicalVolume * GetWorldVolume(const G4String &setupName="Default") const
static G4RunManager * GetRunManager()
void Read(const G4String &filename, G4bool Validate=true)
Definition at line 417 of file CexmcSetup.cc.
425 row =
G4int( ( src.
y() + crystalHeight * nCrystalsInColumn / 2 ) /
427 column =
G4int( ( src.
x() + crystalWidth * nCrystalsInRow / 2 ) /
431 crystalWidth + crystalWidth / 2 );
434 crystalHeight + crystalHeight / 2 );
435 dst.
setX( src.
x() - xInCalorimeterOffset );
436 dst.
setY( src.
y() - yInCalorimeterOffset );
Definition at line 167 of file CexmcSetup.hh.
170 return calorimeterLeftTransform;
Definition at line 174 of file CexmcSetup.hh.
177 return calorimeterRightTransform;
Definition at line 188 of file CexmcSetup.hh.
194 return monitorVolume;
196 return vetoCounterVolume;
198 return calorimeterVolume;
Definition at line 217 of file CexmcSetup.hh.
220 if ( pVolume == rightCalorimeter )
Definition at line 207 of file CexmcSetup.hh.
210 if ( pVolume == rightVetoCounter || pVolume == rightCalorimeter )
The documentation for this class was generated from the following files:
- source/geant4.10.03.p03/examples/advanced/ChargeExchangeMC/include/CexmcSetup.hh
- source/geant4.10.03.p03/examples/advanced/ChargeExchangeMC/src/CexmcSetup.cc