84 G4Box *worldB =
new G4Box(
"worldG", halfSize, halfSize, halfSize);
112 phaseSpace->
createPlane(
idSD_PhaseSpace, inputData->
generalData.
max_N_particles_in_PhSp_File, inputData->
generalData.
seed, inputData->
generalData.
nMaxParticlesInRamPlanePhaseSpace,
acceleratorEnv->
getPhysicalVolume(),
"PhSp", inputData->
generalData.
PhaseSpaceOutFile, inputData->
generalData.
bSavePhaseSpace, inputData->
generalData.
bStopAtPhaseSpace, inputData->
generalData.
centrePhaseSpace, inputData->
generalData.
halfSizePhaseSpace,&inputData->
primaryParticleData,
acceleratorEnv->
getAcceleratorIsoCentre());
129 int nSubWorlds, nSubWorlds2;
134 for (
int j=0; j<nSubWorlds; j++)
138 for (
int k=0; k<nSubWorlds2; k++)
148 G4bool bNewRotation=
false;
150 G4bool bNewGeometry=
false;
158 if (bNewRotation || bNewCentre){bNewGeometry=
true;}
G4String getPhantomName()
CLHEP::Hep3Vector G4ThreeVector
bool create(SInputData *inputData, bool bOnlyVisio)
G4LogicalVolume * GetLogicalVolume() const
bool Construct(G4VPhysicalVolume *PVWorld, G4int saving_in_ROG_Voxels_every_events, G4int seed, G4String ROGOutFile, G4bool bSaveROG, G4bool bOnlyVisio)
static constexpr double mm
bool Construct(G4VPhysicalVolume *PVWorld, G4bool bOnlyVisio)
static CML2PhantomConstruction * GetInstance(void)
G4int GetNoDaughters() const
G4ThreeVector halfSizePhaseSpace
G4RotationMatrix * rotateAccelerator()
CML2WorldConstruction(void)
G4String getAcceleratorName()
CML2AcceleratorConstruction * acceleratorEnv
int saving_in_ROG_Voxels_every_events
G4String PhaseSpaceOutFile
virtual G4bool CheckOverlaps(G4int res=1000, G4double tol=0., G4bool verbose=true, G4int errMax=1)
G4int nMaxParticlesInRamPlanePhaseSpace
G4double getAcceleratorIsoCentre()
CML2PhaseSpaces * phaseSpace
static CML2PrimaryGenerationAction * GetInstance(void)
static CML2WorldConstruction * GetInstance(void)
void setRotation(G4RotationMatrix *val)
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
G4VPhysicalVolume * getPhysicalVolume(void)
G4double getZ_Value_PhaseSpaceBeforeJaws()
void applyNewCentre(G4ThreeVector val)
G4VPhysicalVolume * Construct()
G4VPhysicalVolume * PVWorld
void SetVisAttributes(const G4VisAttributes *pVA)
CML2PhaseSpaces * backScatteredPlane
~CML2WorldConstruction(void)
void SetVisibility(G4bool=true)
static CML2AcceleratorConstruction * GetInstance(void)
CML2PhantomConstruction * phantomEnv
G4String StartFileInputData
G4bool bForcePhaseSpaceBeforeJaws
void checkVolumeOverlap()
static CML2WorldConstruction * instance
int max_N_particles_in_PhSp_File
G4VPhysicalVolume * GetDaughter(const G4int i) const
bool createPlane(G4VPhysicalVolume *PVWorld, G4String name, G4ThreeVector centre, G4ThreeVector halfSize)
static G4NistManager * Instance()
G4ThreeVector centrePhaseSpace