|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Information stored per cylindrical sampler per event. More...
#include <BDSOutputROOTEventSamplerC.hh>


Public Member Functions | |
| BDSOutputROOTEventSamplerC (const std::string &samplerNameIn) | |
| void | Fill (const BDSHitSamplerCylinder *hit, G4bool storeMass=false, G4bool storeCharge=false, G4bool storeElectrons=false, G4bool storeRigidity=false, G4bool storeKineticEnergy=false) |
| void | Fill (const BDSOutputROOTEventSamplerC *other) |
| void | SetBranchAddress (TTree *) |
| virtual void | Flush () |
| Clean Sampler. | |
| ClassDef (BDSOutputROOTEventSamplerC, 1) | |
| std::vector< float > | getKineticEnergy () |
| Function to calculate on the fly the parameters. | |
| 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< bool > | getIsIon () |
| Function to calculate on the fly the parameters. | |
| std::vector< int > | getIonA () |
| Function to calculate on the fly the parameters. | |
| std::vector< int > | getIonZ () |
| Function to calculate on the fly the parameters. | |
| void | FillIon () |
| Calculate and fill calculated variables. | |
Data Fields | |
| std::string | samplerName |
| int | n |
| std::vector< float > | totalEnergy |
| std::vector< float > | z |
| std::vector< float > | phi |
| std::vector< float > | rp |
| std::vector< float > | zp |
| std::vector< float > | phip |
| std::vector< float > | p |
| std::vector< float > | T |
| std::vector< float > | weight |
| std::vector< int > | partID |
| std::vector< int > | parentID |
| std::vector< int > | trackID |
| int | modelID |
| std::vector< int > | turnNumber |
| float | S |
| std::vector< int > | charge |
| These are not filled by default. | |
| std::vector< float > | kineticEnergy |
| These are not filled by default. | |
| std::vector< float > | mass |
| These are not filled by default. | |
| std::vector< float > | rigidity |
| These are not filled by default. | |
| std::vector< bool > | isIon |
| These are not filled by default. | |
| std::vector< int > | ionA |
| These are not filled by default. | |
| std::vector< int > | ionZ |
| These are not filled by default. | |
| std::vector< int > | nElectrons |
| These are not filled by default. | |
Static Public Attributes | |
| static BDSOutputROOTParticleData * | particleTable = nullptr |
Information stored per cylindrical sampler per event.
Definition at line 44 of file BDSOutputROOTEventSamplerC.hh.
|
explicit |
Definition at line 47 of file BDSOutputROOTEventSamplerC.cc.
|
virtual |
Definition at line 53 of file BDSOutputROOTEventSamplerC.cc.
| void BDSOutputROOTEventSamplerC::Fill | ( | const BDSHitSamplerCylinder * | hit, |
| G4bool | storeMass = false, |
||
| G4bool | storeCharge = false, |
||
| G4bool | storeElectrons = false, |
||
| G4bool | storeRigidity = false, |
||
| G4bool | storeKineticEnergy = false |
||
| ) |
Definition at line 57 of file BDSOutputROOTEventSamplerC.cc.
| void BDSOutputROOTEventSamplerC::Fill | ( | const BDSOutputROOTEventSamplerC * | other | ) |
Definition at line 102 of file BDSOutputROOTEventSamplerC.cc.
|
inline |
Calculate and fill calculated variables.
Definition at line 102 of file BDSOutputROOTEventSamplerC.hh.
References getIonA(), getIonZ(), getIsIon(), ionA, ionZ, and isIon.

|
virtual |
Clean Sampler.
Definition at line 138 of file BDSOutputROOTEventSamplerC.cc.
References charge, ionA, ionZ, isIon, kineticEnergy, mass, nElectrons, and rigidity.
| std::vector< int > BDSOutputROOTEventSamplerC::getIonA | ( | ) |
Function to calculate on the fly the parameters.
Definition at line 213 of file BDSOutputROOTEventSamplerC.cc.
Referenced by FillIon().

| std::vector< int > BDSOutputROOTEventSamplerC::getIonZ | ( | ) |
Function to calculate on the fly the parameters.
Definition at line 223 of file BDSOutputROOTEventSamplerC.cc.
Referenced by FillIon().

| std::vector< bool > BDSOutputROOTEventSamplerC::getIsIon | ( | ) |
Function to calculate on the fly the parameters.
Definition at line 198 of file BDSOutputROOTEventSamplerC.cc.
References BDSOutputROOTParticleData::IsIon(), and nElectrons.
Referenced by FillIon().


| std::vector< float > BDSOutputROOTEventSamplerC::getKineticEnergy | ( | ) |
Function to calculate on the fly the parameters.
Definition at line 168 of file BDSOutputROOTEventSamplerC.cc.
References BDSOutputROOTParticleData::KineticEnergy().

| std::vector< float > BDSOutputROOTEventSamplerC::getMass | ( | ) |
Function to calculate on the fly the parameters.
Definition at line 178 of file BDSOutputROOTEventSamplerC.cc.
| std::vector< float > BDSOutputROOTEventSamplerC::getRigidity | ( | ) |
Function to calculate on the fly the parameters.
Definition at line 188 of file BDSOutputROOTEventSamplerC.cc.
References BDSOutputROOTParticleData::Rigidity().

| void BDSOutputROOTEventSamplerC::SetBranchAddress | ( | TTree * | ) |
Definition at line 135 of file BDSOutputROOTEventSamplerC.cc.
| std::vector<int> BDSOutputROOTEventSamplerC::charge |
These are not filled by default.
Definition at line 69 of file BDSOutputROOTEventSamplerC.hh.
Referenced by Flush().
| std::vector<int> BDSOutputROOTEventSamplerC::ionA |
These are not filled by default.
Definition at line 74 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<int> BDSOutputROOTEventSamplerC::ionZ |
These are not filled by default.
Definition at line 75 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<bool> BDSOutputROOTEventSamplerC::isIon |
These are not filled by default.
Definition at line 73 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<float> BDSOutputROOTEventSamplerC::kineticEnergy |
These are not filled by default.
Definition at line 70 of file BDSOutputROOTEventSamplerC.hh.
Referenced by Flush().
| std::vector<float> BDSOutputROOTEventSamplerC::mass |
These are not filled by default.
Definition at line 71 of file BDSOutputROOTEventSamplerC.hh.
Referenced by Flush().
| int BDSOutputROOTEventSamplerC::modelID |
Definition at line 63 of file BDSOutputROOTEventSamplerC.hh.
| int BDSOutputROOTEventSamplerC::n |
Definition at line 49 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<int> BDSOutputROOTEventSamplerC::nElectrons |
These are not filled by default.
Definition at line 76 of file BDSOutputROOTEventSamplerC.hh.
Referenced by Flush(), and getIsIon().
| std::vector<float> BDSOutputROOTEventSamplerC::p |
Definition at line 56 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<int> BDSOutputROOTEventSamplerC::parentID |
Definition at line 61 of file BDSOutputROOTEventSamplerC.hh.
|
static |
Definition at line 108 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<int> BDSOutputROOTEventSamplerC::partID |
Definition at line 60 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<float> BDSOutputROOTEventSamplerC::phi |
Definition at line 52 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<float> BDSOutputROOTEventSamplerC::phip |
Definition at line 55 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<float> BDSOutputROOTEventSamplerC::rigidity |
These are not filled by default.
Definition at line 72 of file BDSOutputROOTEventSamplerC.hh.
Referenced by Flush().
| std::vector<float> BDSOutputROOTEventSamplerC::rp |
Definition at line 53 of file BDSOutputROOTEventSamplerC.hh.
| float BDSOutputROOTEventSamplerC::S |
Definition at line 66 of file BDSOutputROOTEventSamplerC.hh.
| std::string BDSOutputROOTEventSamplerC::samplerName |
Definition at line 47 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<float> BDSOutputROOTEventSamplerC::T |
Definition at line 57 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<float> BDSOutputROOTEventSamplerC::totalEnergy |
Definition at line 50 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<int> BDSOutputROOTEventSamplerC::trackID |
Definition at line 62 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<int> BDSOutputROOTEventSamplerC::turnNumber |
Definition at line 64 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<float> BDSOutputROOTEventSamplerC::weight |
Definition at line 59 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<float> BDSOutputROOTEventSamplerC::z |
Definition at line 51 of file BDSOutputROOTEventSamplerC.hh.
| std::vector<float> BDSOutputROOTEventSamplerC::zp |
Definition at line 54 of file BDSOutputROOTEventSamplerC.hh.