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


Public Member Functions | |
| BDSOutputROOTEventSamplerS (const std::string &samplerNameIn) | |
| void | Fill (const BDSHitSamplerSphere *hit, G4bool storeMass=false, G4bool storeCharge=false, G4bool storeElectrons=false, G4bool storeRigidity=false, G4bool storeKineticEnergy=false) |
| void | Fill (const BDSOutputROOTEventSamplerS *other) |
| void | SetBranchAddress (TTree *) |
| virtual void | Flush () |
| Clean Sampler. | |
| ClassDef (BDSOutputROOTEventSamplerS, 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 > | theta |
| std::vector< float > | phi |
| std::vector< float > | rp |
| std::vector< float > | thetap |
| 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 spherical sampler per event.
Definition at line 43 of file BDSOutputROOTEventSamplerS.hh.
|
explicit |
Definition at line 46 of file BDSOutputROOTEventSamplerS.cc.
|
virtual |
Definition at line 52 of file BDSOutputROOTEventSamplerS.cc.
| void BDSOutputROOTEventSamplerS::Fill | ( | const BDSHitSamplerSphere * | hit, |
| G4bool | storeMass = false, |
||
| G4bool | storeCharge = false, |
||
| G4bool | storeElectrons = false, |
||
| G4bool | storeRigidity = false, |
||
| G4bool | storeKineticEnergy = false |
||
| ) |
Definition at line 56 of file BDSOutputROOTEventSamplerS.cc.
| void BDSOutputROOTEventSamplerS::Fill | ( | const BDSOutputROOTEventSamplerS * | other | ) |
Definition at line 101 of file BDSOutputROOTEventSamplerS.cc.
|
inline |
Calculate and fill calculated variables.
Definition at line 101 of file BDSOutputROOTEventSamplerS.hh.
References getIonA(), getIonZ(), getIsIon(), ionA, ionZ, and isIon.

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

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

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


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

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

| void BDSOutputROOTEventSamplerS::SetBranchAddress | ( | TTree * | ) |
Definition at line 134 of file BDSOutputROOTEventSamplerS.cc.
| std::vector<int> BDSOutputROOTEventSamplerS::charge |
These are not filled by default.
Definition at line 68 of file BDSOutputROOTEventSamplerS.hh.
Referenced by Flush().
| std::vector<int> BDSOutputROOTEventSamplerS::ionA |
These are not filled by default.
Definition at line 73 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<int> BDSOutputROOTEventSamplerS::ionZ |
These are not filled by default.
Definition at line 74 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<bool> BDSOutputROOTEventSamplerS::isIon |
These are not filled by default.
Definition at line 72 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<float> BDSOutputROOTEventSamplerS::kineticEnergy |
These are not filled by default.
Definition at line 69 of file BDSOutputROOTEventSamplerS.hh.
Referenced by Flush().
| std::vector<float> BDSOutputROOTEventSamplerS::mass |
These are not filled by default.
Definition at line 70 of file BDSOutputROOTEventSamplerS.hh.
Referenced by Flush().
| int BDSOutputROOTEventSamplerS::modelID |
Definition at line 62 of file BDSOutputROOTEventSamplerS.hh.
| int BDSOutputROOTEventSamplerS::n |
Definition at line 48 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<int> BDSOutputROOTEventSamplerS::nElectrons |
These are not filled by default.
Definition at line 75 of file BDSOutputROOTEventSamplerS.hh.
Referenced by Flush(), and getIsIon().
| std::vector<float> BDSOutputROOTEventSamplerS::p |
Definition at line 55 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<int> BDSOutputROOTEventSamplerS::parentID |
Definition at line 60 of file BDSOutputROOTEventSamplerS.hh.
|
static |
Definition at line 107 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<int> BDSOutputROOTEventSamplerS::partID |
Definition at line 59 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<float> BDSOutputROOTEventSamplerS::phi |
Definition at line 51 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<float> BDSOutputROOTEventSamplerS::phip |
Definition at line 54 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<float> BDSOutputROOTEventSamplerS::rigidity |
These are not filled by default.
Definition at line 71 of file BDSOutputROOTEventSamplerS.hh.
Referenced by Flush().
| std::vector<float> BDSOutputROOTEventSamplerS::rp |
Definition at line 52 of file BDSOutputROOTEventSamplerS.hh.
| float BDSOutputROOTEventSamplerS::S |
Definition at line 65 of file BDSOutputROOTEventSamplerS.hh.
| std::string BDSOutputROOTEventSamplerS::samplerName |
Definition at line 46 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<float> BDSOutputROOTEventSamplerS::T |
Definition at line 56 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<float> BDSOutputROOTEventSamplerS::theta |
Definition at line 50 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<float> BDSOutputROOTEventSamplerS::thetap |
Definition at line 53 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<float> BDSOutputROOTEventSamplerS::totalEnergy |
Definition at line 49 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<int> BDSOutputROOTEventSamplerS::trackID |
Definition at line 61 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<int> BDSOutputROOTEventSamplerS::turnNumber |
Definition at line 63 of file BDSOutputROOTEventSamplerS.hh.
| std::vector<float> BDSOutputROOTEventSamplerS::weight |
Definition at line 58 of file BDSOutputROOTEventSamplerS.hh.