19#ifndef BDSBUNCHFILEBASED_H
20#define BDSBUNCHFILEBASED_H
59 void SetNEventsInFile(
unsigned long long int nEventsInFileIn) {
nEventsInFile = nEventsInFileIn;}
60 void SetNOriginalEvents(
unsigned long long int nOriginalEventsIn) {
nOriginalEvents = nOriginalEventsIn;}
69 G4Transform3D beamlineTransformIn = G4Transform3D::Identity,
77 G4int distrFileLoopNTimes;
An intermediate layer for any bunch classes that are file based.
BDSBunchFileBased(BDSBunchFileBased &)=delete
Assignment and copy constructor not implemented nor used.
unsigned long long int nEventsInFile
The number of entries in the file loaded.
unsigned long long int NOriginalEvents() const
Accessor.
virtual void BeginOfRunAction(G4int numberOfEvents, G4bool batchMode)
unsigned long long int NEventsInFileSkipped() const
Accessor.
unsigned long long int nEventsInFileSkipped
Number that are skipped as we go through the file due to filters.
G4int DistrFileLoopNTimes() const
Accessor.
unsigned long long int nOriginalEvents
nOriginalEvents from upstream file if skimmed - need to pass through.
virtual void SetOptions(const BDSParticleDefinition *beamParticle, const GMAD::Beam &beam, const BDSBunchType &distrType, G4Transform3D beamlineTransformIn=G4Transform3D::Identity, const G4double beamlineS=0)
Pull out the relevant options and then pass through to BDSBunch::SetOptions().
BDSBunchFileBased & operator=(const BDSBunchFileBased &)=delete
Assignment and copy constructor not implemented nor used.
unsigned long long int NEventsInFile() const
Accessor.
The base class for bunch distribution generators.
G4double beamlineS
Beamline initial S position.
Wrapper for particle definition.
Improve type-safety of native enum data type in C++.