ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <geant4/tree/geant4-10.6-release/examples/advanced/medical_linac/include/ML2PhantomConstruction.hh>
Public Member Functions | |
CML2PhantomConstruction (void) | |
~CML2PhantomConstruction (void) | |
bool | Construct (G4VPhysicalVolume *PVWorld, G4int voxelX, G4int voxelY, G4int voxelZ, G4bool bOnlyVisio) |
G4int | getTotalNumberOfEvents () |
G4String | getPhantomName () |
void | setPhantomName (G4String val) |
void | setPhantomFileName (G4String val) |
void | applyNewCentre (G4ThreeVector val) |
bool | applyNewCentre () |
void | addNewCentre (G4ThreeVector val) |
void | writeInfo () |
G4String | getCurrentTranslationString () |
Static Public Member Functions | |
static CML2PhantomConstruction * | GetInstance (void) |
Private Member Functions | |
bool | design (void) |
void | createPhysicalVolumeNamesList (G4String *matNames, G4int nMatNames) |
void | createPhysicalVolumeNamesList (G4VPhysicalVolume *PV) |
Static Private Attributes | |
static CML2PhantomConstruction * | instance = 0 |
Definition at line 58 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 58 of file ML2PhantomConstruction.hh
CML2PhantomConstruction::CML2PhantomConstruction | ( | void | ) |
Definition at line 50 of file ML2PhantomConstruction.cc.
View newest version in sPHENIX GitHub at line 50 of file ML2PhantomConstruction.cc
References idCurrentCentre, and phantomContstructionMessenger.
Referenced by GetInstance().
CML2PhantomConstruction::~CML2PhantomConstruction | ( | void | ) |
Definition at line 56 of file ML2PhantomConstruction.cc.
View newest version in sPHENIX GitHub at line 56 of file ML2PhantomConstruction.cc
|
inline |
Definition at line 76 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 76 of file ML2PhantomConstruction.hh
References centre.
Referenced by design().
void CML2PhantomConstruction::applyNewCentre | ( | G4ThreeVector | val | ) |
Definition at line 213 of file ML2PhantomConstruction.cc.
View newest version in sPHENIX GitHub at line 213 of file ML2PhantomConstruction.cc
References G4GeometryManager::CloseGeometry(), currentCentre, G4RunManager::GeometryHasBeenModified(), G4GeometryManager::GetInstance(), G4RunManager::GetRunManager(), G4GeometryManager::OpenGeometry(), PVPhmWorld, and G4VPhysicalVolume::SetTranslation().
bool CML2PhantomConstruction::applyNewCentre | ( | ) |
Definition at line 194 of file ML2PhantomConstruction.cc.
View newest version in sPHENIX GitHub at line 194 of file ML2PhantomConstruction.cc
References centre, currentCentre, and idCurrentCentre.
bool CML2PhantomConstruction::Construct | ( | G4VPhysicalVolume * | PVWorld, |
G4int | voxelX, | ||
G4int | voxelY, | ||
G4int | voxelZ, | ||
G4bool | bOnlyVisio | ||
) |
Definition at line 112 of file ML2PhantomConstruction.cc.
View newest version in sPHENIX GitHub at line 112 of file ML2PhantomConstruction.cc
References bOnlyVisio, CML2Ph_BoxInBox::Construct(), CML2Ph_FullWater::Construct(), createPhysicalVolumeNamesList(), design(), G4NistManager::FindOrBuildMaterial(), CML2Ph_BoxInBox::getPhysicalVolume(), CML2Ph_FullWater::getPhysicalVolume(), CLHEP::Hep3Vector::getX(), CLHEP::Hep3Vector::getY(), CLHEP::Hep3Vector::getZ(), halfPhantomInsideSize, idVolumeName, G4NistManager::Instance(), Ph_BoxInBox, Ph_fullWater, phantomContstructionMessenger, phantomName, PVPhmWorld, CML2PhantomConstructionMessenger::SetReferenceWorld(), G4VisAttributes::SetVisibility(), G4Colour::White(), CML2Ph_BoxInBox::writeInfo(), and CML2Ph_FullWater::writeInfo().
Referenced by CML2WorldConstruction::create().
|
private |
Definition at line 157 of file ML2PhantomConstruction.cc.
View newest version in sPHENIX GitHub at line 157 of file ML2PhantomConstruction.cc
References SvolumeNameId::volumeId, SvolumeNameId::volumeName, and volumeNameIdLink.
Referenced by Construct(), and createPhysicalVolumeNamesList().
|
private |
Definition at line 167 of file ML2PhantomConstruction.cc.
View newest version in sPHENIX GitHub at line 167 of file ML2PhantomConstruction.cc
References createPhysicalVolumeNamesList(), G4cout, G4endl, G4LogicalVolume::GetDaughter(), G4VPhysicalVolume::GetLogicalVolume(), G4LogicalVolume::GetMaterial(), G4VPhysicalVolume::GetName(), G4Material::GetName(), G4LogicalVolume::GetNoDaughters(), idVolumeName, int(), SvolumeNameId::volumeId, SvolumeNameId::volumeName, and volumeNameIdLink.
|
private |
Definition at line 70 of file ML2PhantomConstruction.cc.
View newest version in sPHENIX GitHub at line 70 of file ML2PhantomConstruction.cc
References addNewCentre(), centre, G4cout, G4endl, CML2Ph_BoxInBox::getHalfContainerSize(), CML2Ph_FullWater::getHalfContainerSize(), halfPhantomInsideSize, Ph_BoxInBox, Ph_fullWater, and phantomName.
Referenced by Construct().
G4String CML2PhantomConstruction::getCurrentTranslationString | ( | ) |
Definition at line 224 of file ML2PhantomConstruction.cc.
View newest version in sPHENIX GitHub at line 224 of file ML2PhantomConstruction.cc
References currentCentre, CLHEP::Hep3Vector::getX(), CLHEP::Hep3Vector::getY(), CLHEP::Hep3Vector::getZ(), and mm.
Referenced by CML2RunAction::BeginOfRunAction().
|
static |
Definition at line 61 of file ML2PhantomConstruction.cc.
View newest version in sPHENIX GitHub at line 61 of file ML2PhantomConstruction.cc
References CML2PhantomConstruction(), and instance.
Referenced by CML2RunAction::BeginOfRunAction(), and CML2WorldConstruction::CML2WorldConstruction().
|
inline |
Definition at line 69 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 69 of file ML2PhantomConstruction.hh
References phantomName.
Referenced by CML2WorldConstruction::create().
G4int CML2PhantomConstruction::getTotalNumberOfEvents | ( | ) |
Definition at line 96 of file ML2PhantomConstruction.cc.
View newest version in sPHENIX GitHub at line 96 of file ML2PhantomConstruction.cc
Definition at line 71 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 71 of file ML2PhantomConstruction.hh
References PhantomFileName.
Definition at line 70 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 70 of file ML2PhantomConstruction.hh
References phantomName.
Referenced by CML2PhantomConstructionMessenger::SetNewValue().
void CML2PhantomConstruction::writeInfo | ( | ) |
Definition at line 205 of file ML2PhantomConstruction.cc.
View newest version in sPHENIX GitHub at line 205 of file ML2PhantomConstruction.cc
References bOnlyVisio, centre, currentCentre, G4cout, G4endl, and idCurrentCentre.
Referenced by CML2RunAction::BeginOfRunAction().
|
private |
Definition at line 100 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 100 of file ML2PhantomConstruction.hh
Referenced by Construct(), and writeInfo().
|
private |
Definition at line 95 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 95 of file ML2PhantomConstruction.hh
Referenced by addNewCentre(), applyNewCentre(), design(), and writeInfo().
|
private |
Definition at line 94 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 94 of file ML2PhantomConstruction.hh
Referenced by applyNewCentre(), getCurrentTranslationString(), and writeInfo().
|
private |
Definition at line 94 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 94 of file ML2PhantomConstruction.hh
Referenced by Construct(), and design().
|
private |
Definition at line 96 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 96 of file ML2PhantomConstruction.hh
Referenced by applyNewCentre(), CML2PhantomConstruction(), and writeInfo().
|
private |
Definition at line 92 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 92 of file ML2PhantomConstruction.hh
Referenced by Construct(), and createPhysicalVolumeNamesList().
|
staticprivate |
Definition at line 86 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 86 of file ML2PhantomConstruction.hh
Referenced by GetInstance().
|
private |
Definition at line 99 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 99 of file ML2PhantomConstruction.hh
Referenced by Construct(), and design().
|
private |
Definition at line 98 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 98 of file ML2PhantomConstruction.hh
Referenced by Construct(), and design().
|
private |
Definition at line 85 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 85 of file ML2PhantomConstruction.hh
Referenced by CML2PhantomConstruction(), and Construct().
|
private |
Definition at line 87 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 87 of file ML2PhantomConstruction.hh
Referenced by setPhantomFileName().
|
private |
Definition at line 87 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 87 of file ML2PhantomConstruction.hh
Referenced by Construct(), design(), getPhantomName(), and setPhantomName().
|
private |
Definition at line 89 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 89 of file ML2PhantomConstruction.hh
Referenced by applyNewCentre(), and Construct().
|
private |
Definition at line 91 of file ML2PhantomConstruction.hh.
View newest version in sPHENIX GitHub at line 91 of file ML2PhantomConstruction.hh
Referenced by createPhysicalVolumeNamesList().