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;}
G4ThreeVector centrePhaseSpace
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
bool create(SInputData *inputData, bool bOnlyVisio)
G4double getZ_Value_PhaseSpaceBeforeJaws()
G4int nMaxParticlesInRamPlanePhaseSpace
CLHEP::Hep3Vector G4ThreeVector
CLHEP::HepRotation G4RotationMatrix
bool Construct(G4VPhysicalVolume *PVWorld, G4int saving_in_ROG_Voxels_every_events, G4int seed, G4String ROGOutFile, G4bool bSaveROG, G4bool bOnlyVisio)
static CML2AcceleratorConstruction * GetInstance(void)
G4VPhysicalVolume * getPhysicalVolume(void)
void SetVisibility(G4bool)
G4VPhysicalVolume * Construct()
G4double getAcceleratorIsoCentre()
G4VPhysicalVolume * GetDaughter(const G4int i) const
static CML2WorldConstruction * GetInstance(void)
static G4NistManager * Instance()
G4String StartFileInputData
G4VPhysicalVolume * PVWorld
CML2PhantomConstruction * phantomEnv
G4bool bForcePhaseSpaceBeforeJaws
~CML2WorldConstruction(void)
void setRotation(G4RotationMatrix *val)
CML2PhaseSpaces * phaseSpace
CML2PhaseSpaces * backScatteredPlane
G4int GetNoDaughters() const
bool Construct(G4VPhysicalVolume *PVWorld, G4bool bOnlyVisio)
CML2AcceleratorConstruction * acceleratorEnv
G4LogicalVolume * GetLogicalVolume() const
int max_N_particles_in_PhSp_File
int saving_in_ROG_Voxels_every_events
G4ThreeVector halfSizePhaseSpace
G4RotationMatrix * rotateAccelerator()
void checkVolumeOverlap()
static CML2WorldConstruction * instance
G4String getPhantomName()
static CML2PrimaryGenerationAction * GetInstance(void)
bool createPlane(G4VPhysicalVolume *PVWorld, G4String name, G4ThreeVector centre, G4ThreeVector halfSize)
CML2WorldConstruction(void)
virtual G4bool CheckOverlaps(G4int res=1000, G4double tol=0., G4bool verbose=true, G4int errMax=1)
void SetVisAttributes(const G4VisAttributes *pVA)
static CML2PhantomConstruction * GetInstance(void)
G4String getAcceleratorName()
G4String PhaseSpaceOutFile
void applyNewCentre(G4ThreeVector val)