19#ifndef BDSOUTPUTROOTEVENTSAMPLERC_H
20#define BDSOUTPUTROOTEVENTSAMPLERC_H
47 std::string samplerName;
50 std::vector<float> totalEnergy;
52 std::vector<float> phi;
53 std::vector<float> rp;
54 std::vector<float> zp;
55 std::vector<float> phip;
59 std::vector<float> weight;
60 std::vector<int> partID;
61 std::vector<int> parentID;
62 std::vector<int> trackID;
64 std::vector<int> turnNumber;
93 G4bool storeMass =
false,
94 G4bool storeCharge =
false,
95 G4bool storeElectrons =
false,
96 G4bool storeRigidity =
false,
97 G4bool storeKineticEnergy =
false);
105 void SetBranchAddress(TTree*);
106 virtual void Flush();
The information recorded from a particle impacting a sampler.
Information stored per cylindrical sampler per event.
void FillIon()
Calculate and fill calculated variables.
std::vector< int > getIonA()
Function to calculate on the fly the parameters.
std::vector< int > ionZ
These are not filled by default.
std::vector< bool > isIon
These are not filled by default.
std::vector< float > rigidity
These are not filled by default.
std::vector< bool > getIsIon()
Function to calculate on the fly the parameters.
std::vector< float > mass
These are not filled by default.
std::vector< float > getMass()
Function to calculate on the fly the parameters.
std::vector< float > getRigidity()
Function to calculate on the fly the parameters.
std::vector< int > getIonZ()
Function to calculate on the fly the parameters.
std::vector< float > kineticEnergy
These are not filled by default.
std::vector< int > charge
These are not filled by default.
std::vector< float > getKineticEnergy()
Function to calculate on the fly the parameters.
std::vector< int > ionA
These are not filled by default.
virtual void Flush()
Clean Sampler.
std::vector< int > nElectrons
These are not filled by default.
Geant4 particle data for particles used in simulation.
A set of cylindrical particle coordinates.