19#ifndef BDSOUTPUTROOTEVENTSAMPLER_H
20#define BDSOUTPUTROOTEVENTSAMPLER_H
47 std::string samplerName;
50 std::vector<U> energy;
60 std::vector<U> weight;
61 std::vector<int> partID;
62 std::vector<int> parentID;
63 std::vector<int> trackID;
65 std::vector<int> turnNumber;
100 G4bool storeMass =
false,
101 G4bool storeCharge =
false,
102 G4bool storePolarCoords =
false,
103 G4bool storeElectrons =
false,
104 G4bool storeRigidity =
false,
105 G4bool storeKineticEnergy =
false);
118 G4bool fillIon =
true,
119 G4bool*
isIon =
nullptr,
120 G4int*
ionA =
nullptr,
121 G4int*
ionZ =
nullptr);
124 const G4int turnsTaken);
132 void SetBranchAddress(TTree *);
133 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.
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.