Geant4  10.02.p02
CML2WorldConstruction Class Reference

#include <ML2WorldConstruction.hh>

+ Inheritance diagram for CML2WorldConstruction:
+ Collaboration diagram for CML2WorldConstruction:

Public Member Functions

 CML2WorldConstruction (void)
 
 ~CML2WorldConstruction (void)
 
G4VPhysicalVolumeConstruct ()
 
bool create (SInputData *inputData, bool bOnlyVisio)
 
G4int getNParticleBackScattered ()
 
G4int getNParticlePhaseSpace ()
 
G4int getTotalNumberOfEventsInPhantom ()
 
CML2AcceleratorConstructiongetCML2AcceleratorConstruction ()
 
bool newGeometry ()
 
bool getWorldCreated ()
 
void savePhantomData ()
 
void savePhaseSpaceData ()
 
CML2PhantomConstructiongetPhantomWorld ()
 
CML2AcceleratorConstructiongetAcceleratorWorld ()
 
void checkVolumeOverlap ()
 
G4bool getbOnlyVisio ()
 
- Public Member Functions inherited from G4VUserDetectorConstruction
 G4VUserDetectorConstruction ()
 
virtual ~G4VUserDetectorConstruction ()
 
virtual void ConstructSDandField ()
 
virtual void CloneSD ()
 
virtual void CloneF ()
 
void RegisterParallelWorld (G4VUserParallelWorld *)
 
G4int ConstructParallelGeometries ()
 
void ConstructParallelSD ()
 
G4int GetNumberOfParallelWorld () const
 
G4VUserParallelWorldGetParallelWorld (G4int i) const
 

Static Public Member Functions

static CML2WorldConstructionGetInstance (void)
 

Private Attributes

bool bWorldCreated
 
CML2AcceleratorConstructionacceleratorEnv
 
CML2PhantomConstructionphantomEnv
 
G4VPhysicalVolumePVWorld
 
CML2PhaseSpacesphaseSpace
 
CML2PhaseSpacesbackScatteredPlane
 
G4bool bOnlyVisio
 

Static Private Attributes

static CML2WorldConstructioninstance = 0
 

Additional Inherited Members

- Protected Member Functions inherited from G4VUserDetectorConstruction
void SetSensitiveDetector (const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
 
void SetSensitiveDetector (G4LogicalVolume *logVol, G4VSensitiveDetector *aSD)
 

Detailed Description

Definition at line 73 of file ML2WorldConstruction.hh.

Constructor & Destructor Documentation

CML2WorldConstruction::CML2WorldConstruction ( void  )

Definition at line 46 of file ML2WorldConstruction.cc.

References acceleratorEnv, bWorldCreated, CML2PhantomConstruction::GetInstance(), CML2AcceleratorConstruction::GetInstance(), and phantomEnv.

Referenced by GetInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CML2WorldConstruction::~CML2WorldConstruction ( void  )

Definition at line 53 of file ML2WorldConstruction.cc.

References acceleratorEnv, backScatteredPlane, phantomEnv, phaseSpace, and PVWorld.

Member Function Documentation

void CML2WorldConstruction::checkVolumeOverlap ( )

Definition at line 122 of file ML2WorldConstruction.cc.

References G4VPhysicalVolume::CheckOverlaps(), G4endl, G4LogicalVolume::GetDaughter(), G4VPhysicalVolume::GetLogicalVolume(), G4LogicalVolume::GetNoDaughters(), and PVWorld.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4VPhysicalVolume * CML2WorldConstruction::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 73 of file ML2WorldConstruction.cc.

References PVWorld.

bool CML2WorldConstruction::create ( SInputData inputData,
bool  bOnlyVisio 
)

Definition at line 78 of file ML2WorldConstruction.cc.

References acceleratorEnv, backScatteredPlane, SGeneralData::bForcePhaseSpaceBeforeJaws, G4Colour::Black(), bOnlyVisio, SGeneralData::bSavePhaseSpace, SGeneralData::bSaveROG, SGeneralData::bStopAtPhaseSpace, bWorldCreated, SGeneralData::centrePhaseSpace, CML2PhantomConstruction::Construct(), CML2AcceleratorConstruction::Construct(), CML2PhaseSpaces::createPlane(), G4NistManager::FindOrBuildMaterial(), G4endl, SInputData::generalData, CML2AcceleratorConstruction::getAcceleratorIsoCentre(), CML2AcceleratorConstruction::getAcceleratorName(), CML2PhantomConstruction::getPhantomName(), CML2AcceleratorConstruction::getPhysicalVolume(), CML2AcceleratorConstruction::getZ_Value_PhaseSpaceBeforeJaws(), SGeneralData::halfSizePhaseSpace, idSD_PhaseSpace, G4NistManager::Instance(), SGeneralData::max_N_particles_in_PhSp_File, mm, SGeneralData::nMaxParticlesInRamPlanePhaseSpace, phantomEnv, phaseSpace, SGeneralData::PhaseSpaceOutFile, SInputData::primaryParticleData, PVWorld, SGeneralData::ROGOutFile, SGeneralData::saving_in_ROG_Voxels_every_events, SGeneralData::seed, G4LogicalVolume::SetVisAttributes(), G4VisAttributes::SetVisibility(), and SGeneralData::StartFileInputData.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CML2AcceleratorConstruction* CML2WorldConstruction::getAcceleratorWorld ( )
inline

Definition at line 92 of file ML2WorldConstruction.hh.

References acceleratorEnv.

G4bool CML2WorldConstruction::getbOnlyVisio ( )
inline

Definition at line 95 of file ML2WorldConstruction.hh.

References bOnlyVisio.

CML2AcceleratorConstruction* CML2WorldConstruction::getCML2AcceleratorConstruction ( )
inline

Definition at line 84 of file ML2WorldConstruction.hh.

References acceleratorEnv.

Referenced by main().

+ Here is the caller graph for this function:

CML2WorldConstruction * CML2WorldConstruction::GetInstance ( void  )
static

Definition at line 64 of file ML2WorldConstruction.cc.

References CML2WorldConstruction(), and instance.

Referenced by CML2RunAction::EndOfRunAction(), and main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int CML2WorldConstruction::getNParticleBackScattered ( )
inline

Definition at line 81 of file ML2WorldConstruction.hh.

References backScatteredPlane, and CML2PhaseSpaces::getCML2SensDetNParticle().

+ Here is the call graph for this function:

G4int CML2WorldConstruction::getNParticlePhaseSpace ( )
inline

Definition at line 82 of file ML2WorldConstruction.hh.

References CML2PhaseSpaces::getCML2SensDetNParticle(), and phaseSpace.

+ Here is the call graph for this function:

CML2PhantomConstruction* CML2WorldConstruction::getPhantomWorld ( )
inline

Definition at line 91 of file ML2WorldConstruction.hh.

References phantomEnv.

G4int CML2WorldConstruction::getTotalNumberOfEventsInPhantom ( )
inline

Definition at line 83 of file ML2WorldConstruction.hh.

References CML2PhantomConstruction::getTotalNumberOfEvents(), and phantomEnv.

+ Here is the call graph for this function:

bool CML2WorldConstruction::getWorldCreated ( )
inline

Definition at line 87 of file ML2WorldConstruction.hh.

References bWorldCreated.

bool CML2WorldConstruction::newGeometry ( )

Definition at line 146 of file ML2WorldConstruction.cc.

References acceleratorEnv, CML2PhantomConstruction::applyNewCentre(), CML2PrimaryGenerationAction::GetInstance(), phantomEnv, CML2AcceleratorConstruction::rotateAccelerator(), and CML2PrimaryGenerationAction::setRotation().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CML2WorldConstruction::savePhantomData ( )
inline

Definition at line 89 of file ML2WorldConstruction.hh.

References phantomEnv, and CML2PhantomConstruction::saveData().

Referenced by CML2RunAction::EndOfRunAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CML2WorldConstruction::savePhaseSpaceData ( )
inline

Definition at line 90 of file ML2WorldConstruction.hh.

References phaseSpace, and CML2PhaseSpaces::save().

Referenced by CML2RunAction::EndOfRunAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

CML2PhaseSpaces* CML2WorldConstruction::backScatteredPlane
private
G4bool CML2WorldConstruction::bOnlyVisio
private

Definition at line 105 of file ML2WorldConstruction.hh.

Referenced by create(), and getbOnlyVisio().

bool CML2WorldConstruction::bWorldCreated
private

Definition at line 99 of file ML2WorldConstruction.hh.

Referenced by CML2WorldConstruction(), create(), and getWorldCreated().

CML2WorldConstruction * CML2WorldConstruction::instance = 0
staticprivate

Definition at line 97 of file ML2WorldConstruction.hh.

Referenced by GetInstance().

CML2PhaseSpaces* CML2WorldConstruction::phaseSpace
private
G4VPhysicalVolume* CML2WorldConstruction::PVWorld
private

The documentation for this class was generated from the following files: