18#ifndef BDSOUTPUTROOTEVENTSAMPLER_H
19#define BDSOUTPUTROOTEVENTSAMPLER_H
46 std::string samplerName;
49 std::vector<U> energy;
59 std::vector<U> weight;
60 std::vector<int> partID;
61 std::vector<int> parentID;
62 std::vector<int> trackID;
64 std::vector<int> turnNumber;
99 G4bool storeMass =
false,
100 G4bool storeCharge =
false,
101 G4bool storePolarCoords =
false,
102 G4bool storeElectrons =
false,
103 G4bool storeRigidity =
false,
104 G4bool storeKineticEnergy =
false);
117 G4bool fillIon =
true,
118 G4bool*
isIon =
nullptr,
119 G4int*
ionA =
nullptr,
120 G4int*
ionZ =
nullptr);
123 const G4int turnsTaken);
131 void SetBranchAddress(TTree *);
132 virtual void Flush();
The information recorded from a particle impacting a sampler.
Information stored per sampler per event.
std::vector< int > getIonA()
Function to calculate on the fly the parameters.
std::vector< bool > isIon
These are not filled by default.
std::vector< int > getIonZ()
Function to calculate on the fly the parameters.
std::vector< int > nElectrons
These are not filled by default.
std::vector< int > ionA
These are not filled by default.
void FlushLocal()
Actual flush that is non virtual function to use in constructor.
std::vector< U > getRigidity()
Function to calculate on the fly the parameters.
std::vector< U > getMass()
Function to calculate on the fly the parameters.
std::vector< U > rigidity
These are not filled by default.
std::vector< bool > getIsIon()
Function to calculate on the fly the parameters.
std::vector< int > charge
These are not filled by default.
void FillIon()
Calculate and fill calculated variables.
virtual void Flush()
Clean Sampler.
std::vector< U > kineticEnergy
These are not filled by default.
void FillPolarCoords(const BDSParticleCoordsFull &coords)
Calculate polar coords and fill.
std::vector< U > mass
These are not filled by default.
std::vector< int > ionZ
These are not filled by default.
std::vector< U > getKineticEnergy()
Function to calculate on the fly the parameters.
Geant4 particle data for particles used in simulation.
A set of particle coordinates including energy and weight.