Geant4  10.01
CML2PhantomConstruction Class Reference

#include <ML2PhantomConstruction.hh>

+ Collaboration diagram for CML2PhantomConstruction:

Public Member Functions

 CML2PhantomConstruction (void)
 
 ~CML2PhantomConstruction (void)
 
bool Construct (G4VPhysicalVolume *PVWorld, G4int saving_in_ROG_Voxels_every_events, G4int seed, G4String ROGOutFile, G4bool bSaveROG, G4bool bOnlyVisio)
 
G4int getTotalNumberOfEvents ()
 
G4String getPhantomName ()
 
void setPhantomName (G4String val)
 
void setPhantomFileName (G4String val)
 
void setNewName ()
 
void setNewName (G4String val)
 
void applyNewCentre (G4ThreeVector val)
 
bool applyNewCentre ()
 
void saveData ()
 
void addNewCentre (G4ThreeVector val)
 
void writeInfo ()
 
G4String getCurrentTranslationString ()
 
void resetSensDet ()
 

Static Public Member Functions

static CML2PhantomConstructionGetInstance (void)
 

Private Member Functions

bool design (void)
 
void createPhysicalVolumeNamesList (G4String *matNames, G4int nMatNames)
 
void createPhysicalVolumeNamesList (G4VPhysicalVolume *PV)
 

Private Attributes

CML2PhantomConstructionMessengerphantomContstructionMessenger
 
G4String phantomName
 
G4String PhantomFileName
 
G4VPhysicalVolumePVPhmWorld
 
CML2SDWithVoxelssensDet
 
std::vector< SvolumeNameIdvolumeNameIdLink
 
G4int idVolumeName
 
G4ThreeVector halfPhantomInsideSize
 
G4ThreeVector currentCentre
 
std::vector< G4ThreeVectorcentre
 
G4int idCurrentCentre
 
CML2Ph_FullWaterPh_fullWater
 
CML2Ph_BoxInBoxPh_BoxInBox
 
G4bool bOnlyVisio
 

Static Private Attributes

static CML2PhantomConstructioninstance = 0
 

Detailed Description

Definition at line 60 of file ML2PhantomConstruction.hh.

Constructor & Destructor Documentation

CML2PhantomConstruction::CML2PhantomConstruction ( void  )

Definition at line 47 of file ML2PhantomConstruction.cc.

References idCurrentCentre, and phantomContstructionMessenger.

Referenced by GetInstance().

+ Here is the caller graph for this function:

CML2PhantomConstruction::~CML2PhantomConstruction ( void  )

Definition at line 53 of file ML2PhantomConstruction.cc.

References Ph_BoxInBox, Ph_fullWater, and phantomName.

Member Function Documentation

void CML2PhantomConstruction::addNewCentre ( G4ThreeVector  val)
inline

Definition at line 79 of file ML2PhantomConstruction.hh.

References centre.

Referenced by design(), and CML2PhantomConstructionMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CML2PhantomConstruction::applyNewCentre ( G4ThreeVector  val)

Definition at line 208 of file ML2PhantomConstruction.cc.

References G4GeometryManager::CloseGeometry(), currentCentre, G4RunManager::GeometryHasBeenModified(), G4LogicalVolume::GetDaughter(), G4GeometryManager::GetInstance(), G4VPhysicalVolume::GetLogicalVolume(), G4VSensitiveDetector::GetROgeometry(), G4VReadOutGeometry::GetROWorld(), G4RunManager::GetRunManager(), G4GeometryManager::OpenGeometry(), PVPhmWorld, CML2SDWithVoxels::resetVoxelsSingle(), sensDet, and G4VPhysicalVolume::SetTranslation().

Referenced by CML2WorldConstruction::newGeometry(), and CML2PhantomConstructionMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool CML2PhantomConstruction::applyNewCentre ( )

Definition at line 191 of file ML2PhantomConstruction.cc.

References centre, currentCentre, and idCurrentCentre.

bool CML2PhantomConstruction::Construct ( G4VPhysicalVolume PVWorld,
G4int  saving_in_ROG_Voxels_every_events,
G4int  seed,
G4String  ROGOutFile,
G4bool  bSaveROG,
G4bool  bOnlyVisio 
)
void CML2PhantomConstruction::createPhysicalVolumeNamesList ( G4String matNames,
G4int  nMatNames 
)
private

Definition at line 154 of file ML2PhantomConstruction.cc.

References SvolumeNameId::volumeId, SvolumeNameId::volumeName, and volumeNameIdLink.

Referenced by Construct(), and createPhysicalVolumeNamesList().

+ Here is the caller graph for this function:

void CML2PhantomConstruction::createPhysicalVolumeNamesList ( G4VPhysicalVolume PV)
private
bool CML2PhantomConstruction::design ( void  )
private

Definition at line 76 of file ML2PhantomConstruction.cc.

References addNewCentre(), centre, G4endl, CML2Ph_FullWater::getHalfContainerSize(), CML2Ph_BoxInBox::getHalfContainerSize(), halfPhantomInsideSize, Ph_BoxInBox, Ph_fullWater, and phantomName.

Referenced by Construct().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String CML2PhantomConstruction::getCurrentTranslationString ( )

Definition at line 221 of file ML2PhantomConstruction.cc.

References currentCentre, and mm.

Referenced by CML2RunAction::BeginOfRunAction().

+ Here is the caller graph for this function:

CML2PhantomConstruction * CML2PhantomConstruction::GetInstance ( void  )
static

Definition at line 67 of file ML2PhantomConstruction.cc.

References CML2PhantomConstruction(), and instance.

Referenced by CML2RunAction::BeginOfRunAction(), CML2WorldConstruction::CML2WorldConstruction(), main(), and CML2AcceleratorConstructionMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String CML2PhantomConstruction::getPhantomName ( )
inline

Definition at line 68 of file ML2PhantomConstruction.hh.

References phantomName.

Referenced by CML2WorldConstruction::create().

+ Here is the caller graph for this function:

G4int CML2PhantomConstruction::getTotalNumberOfEvents ( )

Definition at line 98 of file ML2PhantomConstruction.cc.

References CML2Ph_FullWater::getTotalNumberOfEvents(), CML2Ph_BoxInBox::getTotalNumberOfEvents(), Ph_BoxInBox, Ph_fullWater, and phantomName.

Referenced by CML2WorldConstruction::getTotalNumberOfEventsInPhantom().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CML2PhantomConstruction::resetSensDet ( )
inline

Definition at line 83 of file ML2PhantomConstruction.hh.

References CML2SDWithVoxels::resetVoxelsSingle(), and sensDet.

Referenced by CML2AcceleratorConstructionMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CML2PhantomConstruction::saveData ( )
inline

Definition at line 77 of file ML2PhantomConstruction.hh.

References CML2SDWithVoxels::save(), and sensDet.

Referenced by CML2WorldConstruction::savePhantomData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CML2PhantomConstruction::setNewName ( )
inline

Definition at line 71 of file ML2PhantomConstruction.hh.

References sensDet, and CML2SDWithVoxels::setFullOutFileDataSingle().

Referenced by CML2RunAction::BeginOfRunAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CML2PhantomConstruction::setNewName ( G4String  val)
inline

Definition at line 72 of file ML2PhantomConstruction.hh.

References sensDet, and CML2SDWithVoxels::setFullOutFileDataSingle().

+ Here is the call graph for this function:

void CML2PhantomConstruction::setPhantomFileName ( G4String  val)
inline

Definition at line 70 of file ML2PhantomConstruction.hh.

References PhantomFileName.

Referenced by CML2PhantomConstructionMessenger::CML2PhantomConstructionMessenger(), and CML2PhantomConstructionMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CML2PhantomConstruction::setPhantomName ( G4String  val)
inline

Definition at line 69 of file ML2PhantomConstruction.hh.

References phantomName.

Referenced by CML2PhantomConstructionMessenger::CML2PhantomConstructionMessenger(), and CML2PhantomConstructionMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CML2PhantomConstruction::writeInfo ( )

Definition at line 202 of file ML2PhantomConstruction.cc.

References bOnlyVisio, centre, currentCentre, G4endl, and idCurrentCentre.

Referenced by CML2RunAction::BeginOfRunAction().

+ Here is the caller graph for this function:

Member Data Documentation

G4bool CML2PhantomConstruction::bOnlyVisio
private

Definition at line 105 of file ML2PhantomConstruction.hh.

Referenced by Construct(), and writeInfo().

std::vector<G4ThreeVector> CML2PhantomConstruction::centre
private

Definition at line 100 of file ML2PhantomConstruction.hh.

Referenced by addNewCentre(), applyNewCentre(), design(), and writeInfo().

G4ThreeVector CML2PhantomConstruction::currentCentre
private
G4ThreeVector CML2PhantomConstruction::halfPhantomInsideSize
private

Definition at line 99 of file ML2PhantomConstruction.hh.

Referenced by Construct(), and design().

G4int CML2PhantomConstruction::idCurrentCentre
private

Definition at line 101 of file ML2PhantomConstruction.hh.

Referenced by applyNewCentre(), CML2PhantomConstruction(), and writeInfo().

G4int CML2PhantomConstruction::idVolumeName
private

Definition at line 97 of file ML2PhantomConstruction.hh.

Referenced by Construct(), and createPhysicalVolumeNamesList().

CML2PhantomConstruction * CML2PhantomConstruction::instance = 0
staticprivate

Definition at line 89 of file ML2PhantomConstruction.hh.

Referenced by GetInstance().

CML2Ph_BoxInBox* CML2PhantomConstruction::Ph_BoxInBox
private
CML2Ph_FullWater* CML2PhantomConstruction::Ph_fullWater
private
CML2PhantomConstructionMessenger* CML2PhantomConstruction::phantomContstructionMessenger
private

Definition at line 88 of file ML2PhantomConstruction.hh.

Referenced by CML2PhantomConstruction(), and Construct().

G4String CML2PhantomConstruction::PhantomFileName
private

Definition at line 90 of file ML2PhantomConstruction.hh.

Referenced by setPhantomFileName().

G4String CML2PhantomConstruction::phantomName
private
G4VPhysicalVolume* CML2PhantomConstruction::PVPhmWorld
private

Definition at line 92 of file ML2PhantomConstruction.hh.

Referenced by applyNewCentre(), and Construct().

CML2SDWithVoxels* CML2PhantomConstruction::sensDet
private
std::vector<SvolumeNameId> CML2PhantomConstruction::volumeNameIdLink
private

Definition at line 96 of file ML2PhantomConstruction.hh.

Referenced by Construct(), and createPhysicalVolumeNamesList().


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