79 bool bPhanExists=
false;
124 phmWorldLV->SetVisAttributes(simpleAlSVisAtt);
157 for (
int i=0;i< nMatNames; i++)
172 for (
int i=0; i <nLVD1; i++)
227 sprintf(cT,
"%d",cTI);
228 translationName=
"_TrX"+
G4String(cT)+
"_";
230 sprintf(cT,
"%d",cTI);
231 translationName+=
"Y"+
G4String(cT)+
"_";
233 sprintf(cT,
"%d",cTI);
235 return translationName;
static G4RunManager * GetRunManager()
void setVolumeNameIdLink(std::vector< SvolumeNameId > volNameIdLink)
G4ThreeVector halfPhantomInsideSize
static CML2PhantomConstruction * instance
CLHEP::Hep3Vector G4ThreeVector
G4LogicalVolume * GetLogicalVolume() const
bool Construct(G4VPhysicalVolume *PVWorld, G4int saving_in_ROG_Voxels_every_events, G4int seed, G4String ROGOutFile, G4bool bSaveROG, G4bool bOnlyVisio)
CML2SDWithVoxels * getSensDet()
bool Construct(G4VPhysicalVolume *PVWorld, G4int saving_in_ROG_Voxels_every_events, G4int seed, G4String ROGOutFile, G4bool bSaveROG)
G4int getTotalNumberOfEvents()
static constexpr double mm
G4VPhysicalVolume * GetROWorld() const
static CML2PhantomConstruction * GetInstance(void)
G4int GetNoDaughters() const
void addNewCentre(G4ThreeVector val)
bool Construct(G4VPhysicalVolume *PVWorld, G4int saving_in_ROG_Voxels_every_events, G4int seed, G4String ROGOutFile, G4bool bSaveROG)
CML2Ph_BoxInBox * Ph_BoxInBox
void SetTranslation(const G4ThreeVector &v)
void createPhysicalVolumeNamesList(G4String *matNames, G4int nMatNames)
G4Material * GetMaterial() const
std::vector< G4ThreeVector > centre
const G4String & GetName() const
G4VReadOutGeometry * GetROgeometry() const
static G4GeometryManager * GetInstance()
G4VPhysicalVolume * PVPhmWorld
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
G4int getTotalNumberOfEvents()
CML2SDWithVoxels * sensDet
void OpenGeometry(G4VPhysicalVolume *vol=0)
G4int getTotalNumberOfEvents()
void GeometryHasBeenModified(G4bool prop=true)
CML2PhantomConstructionMessenger * phantomContstructionMessenger
std::vector< SvolumeNameId > volumeNameIdLink
void SetVisibility(G4bool=true)
void SetReferenceWorld(G4bool bOV)
CML2Ph_FullWater * Ph_fullWater
G4ThreeVector currentCentre
CML2PhantomConstruction(void)
G4VPhysicalVolume * getPhysicalVolume()
G4bool CloseGeometry(G4bool pOptimise=true, G4bool verbose=false, G4VPhysicalVolume *vol=0)
CML2SDWithVoxels * getSensDet()
G4ThreeVector getHalfContainerSize()
G4ThreeVector getHalfContainerSize()
G4String getCurrentTranslationString()
const G4String & GetName() const
G4VPhysicalVolume * GetDaughter(const G4int i) const
G4VPhysicalVolume * getPhysicalVolume()
static G4NistManager * Instance()
~CML2PhantomConstruction(void)