42 G4Transform3D beamlineTransformIn = G4Transform3D::Identity,
A bunch distribution that reads a PTC inrays file.
std::vector< double * > ptcData
Data.
G4bool loopedOver
Whether we've reset to loop over the file again.
G4String fileName
File name.
void LoadPtcFile()
Load the PTC file into memory.
G4bool matchDistrFileLength
Whether to only run the number of particles in the file.
virtual BDSParticleCoordsFull GetNextParticleLocal()
G4int nRays
Number of rays in file (1 counting).
void SetDistrFile(const G4String &distrFileNameIn)
Assign the distribution file by finding the full path of it.
G4double beta
Velocity w.r.t. speed of light. Needed to convert mom. to energy.
G4int iRay
Iterator counter for current ray.
virtual void SetOptions(const BDSParticleDefinition *beamParticle, const GMAD::Beam &beam, const BDSBunchType &distrType, G4Transform3D beamlineTransformIn=G4Transform3D::Identity, const G4double beamlineS=0)
The base class for bunch distribution generators.
G4double beamlineS
Beamline initial S position.
A set of particle coordinates including energy and weight.
Wrapper for particle definition.
Improve type-safety of native enum data type in C++.