BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions | Data Fields | Static Public Attributes
BDSOutputROOTEventSamplerC Class Reference

Information stored per cylindrical sampler per event. More...

#include <BDSOutputROOTEventSamplerC.hh>

Inheritance diagram for BDSOutputROOTEventSamplerC:
Inheritance graph
Collaboration diagram for BDSOutputROOTEventSamplerC:
Collaboration graph

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. More...
 
 ClassDef (BDSOutputROOTEventSamplerC, 1)
 
std::vector< float > getKineticEnergy ()
 Function to calculate on the fly the parameters. More...
 
std::vector< float > getMass ()
 Function to calculate on the fly the parameters. More...
 
std::vector< float > getRigidity ()
 Function to calculate on the fly the parameters. More...
 
std::vector< bool > getIsIon ()
 Function to calculate on the fly the parameters. More...
 
std::vector< int > getIonA ()
 Function to calculate on the fly the parameters. More...
 
std::vector< int > getIonZ ()
 Function to calculate on the fly the parameters. More...
 
void FillIon ()
 Calculate and fill calculated variables. More...
 

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. More...
 
std::vector< float > kineticEnergy
 These are not filled by default. More...
 
std::vector< float > mass
 These are not filled by default. More...
 
std::vector< float > rigidity
 These are not filled by default. More...
 
std::vector< bool > isIon
 These are not filled by default. More...
 
std::vector< int > ionA
 These are not filled by default. More...
 
std::vector< int > ionZ
 These are not filled by default. More...
 
std::vector< int > nElectrons
 These are not filled by default. More...
 

Static Public Attributes

static BDSOutputROOTParticleDataparticleTable = nullptr
 

Detailed Description

Information stored per cylindrical sampler per event.

Author
Laurie Nevay

Definition at line 44 of file BDSOutputROOTEventSamplerC.hh.

Constructor & Destructor Documentation

◆ BDSOutputROOTEventSamplerC()

BDSOutputROOTEventSamplerC::BDSOutputROOTEventSamplerC ( const std::string &  samplerNameIn)
explicit

Definition at line 47 of file BDSOutputROOTEventSamplerC.cc.

◆ ~BDSOutputROOTEventSamplerC()

BDSOutputROOTEventSamplerC::~BDSOutputROOTEventSamplerC ( )
virtual

Definition at line 53 of file BDSOutputROOTEventSamplerC.cc.

Member Function Documentation

◆ Fill() [1/2]

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.

◆ Fill() [2/2]

void BDSOutputROOTEventSamplerC::Fill ( const BDSOutputROOTEventSamplerC other)

Definition at line 102 of file BDSOutputROOTEventSamplerC.cc.

◆ FillIon()

void BDSOutputROOTEventSamplerC::FillIon ( )
inline

Calculate and fill calculated variables.

Definition at line 102 of file BDSOutputROOTEventSamplerC.hh.

References getIonA(), getIonZ(), getIsIon(), ionA, ionZ, and isIon.

Here is the call graph for this function:

◆ Flush()

void BDSOutputROOTEventSamplerC::Flush ( )
virtual

Clean Sampler.

Definition at line 138 of file BDSOutputROOTEventSamplerC.cc.

References charge, ionA, ionZ, isIon, kineticEnergy, mass, nElectrons, and rigidity.

◆ getIonA()

std::vector< int > BDSOutputROOTEventSamplerC::getIonA ( )

Function to calculate on the fly the parameters.

Definition at line 213 of file BDSOutputROOTEventSamplerC.cc.

Referenced by FillIon().

Here is the caller graph for this function:

◆ getIonZ()

std::vector< int > BDSOutputROOTEventSamplerC::getIonZ ( )

Function to calculate on the fly the parameters.

Definition at line 223 of file BDSOutputROOTEventSamplerC.cc.

Referenced by FillIon().

Here is the caller graph for this function:

◆ getIsIon()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getKineticEnergy()

std::vector< float > BDSOutputROOTEventSamplerC::getKineticEnergy ( )

Function to calculate on the fly the parameters.

Definition at line 168 of file BDSOutputROOTEventSamplerC.cc.

References BDSOutputROOTParticleData::KineticEnergy().

Here is the call graph for this function:

◆ getMass()

std::vector< float > BDSOutputROOTEventSamplerC::getMass ( )

Function to calculate on the fly the parameters.

Definition at line 178 of file BDSOutputROOTEventSamplerC.cc.

◆ getRigidity()

std::vector< float > BDSOutputROOTEventSamplerC::getRigidity ( )

Function to calculate on the fly the parameters.

Definition at line 188 of file BDSOutputROOTEventSamplerC.cc.

References BDSOutputROOTParticleData::Rigidity().

Here is the call graph for this function:

◆ SetBranchAddress()

void BDSOutputROOTEventSamplerC::SetBranchAddress ( TTree *  )

Definition at line 135 of file BDSOutputROOTEventSamplerC.cc.

Field Documentation

◆ charge

std::vector<int> BDSOutputROOTEventSamplerC::charge

These are not filled by default.

Definition at line 69 of file BDSOutputROOTEventSamplerC.hh.

Referenced by Flush().

◆ ionA

std::vector<int> BDSOutputROOTEventSamplerC::ionA

These are not filled by default.

Definition at line 74 of file BDSOutputROOTEventSamplerC.hh.

Referenced by FillIon(), and Flush().

◆ ionZ

std::vector<int> BDSOutputROOTEventSamplerC::ionZ

These are not filled by default.

Definition at line 75 of file BDSOutputROOTEventSamplerC.hh.

Referenced by FillIon(), and Flush().

◆ isIon

std::vector<bool> BDSOutputROOTEventSamplerC::isIon

These are not filled by default.

Definition at line 73 of file BDSOutputROOTEventSamplerC.hh.

Referenced by FillIon(), and Flush().

◆ kineticEnergy

std::vector<float> BDSOutputROOTEventSamplerC::kineticEnergy

These are not filled by default.

Definition at line 70 of file BDSOutputROOTEventSamplerC.hh.

Referenced by Flush().

◆ mass

std::vector<float> BDSOutputROOTEventSamplerC::mass

These are not filled by default.

Definition at line 71 of file BDSOutputROOTEventSamplerC.hh.

Referenced by Flush().

◆ modelID

int BDSOutputROOTEventSamplerC::modelID

Definition at line 63 of file BDSOutputROOTEventSamplerC.hh.

◆ n

int BDSOutputROOTEventSamplerC::n

Definition at line 49 of file BDSOutputROOTEventSamplerC.hh.

◆ nElectrons

std::vector<int> BDSOutputROOTEventSamplerC::nElectrons

These are not filled by default.

Definition at line 76 of file BDSOutputROOTEventSamplerC.hh.

Referenced by Flush(), and getIsIon().

◆ p

std::vector<float> BDSOutputROOTEventSamplerC::p

Definition at line 56 of file BDSOutputROOTEventSamplerC.hh.

◆ parentID

std::vector<int> BDSOutputROOTEventSamplerC::parentID

Definition at line 61 of file BDSOutputROOTEventSamplerC.hh.

◆ particleTable

BDSOutputROOTParticleData * BDSOutputROOTEventSamplerC::particleTable = nullptr
static

Definition at line 108 of file BDSOutputROOTEventSamplerC.hh.

◆ partID

std::vector<int> BDSOutputROOTEventSamplerC::partID

Definition at line 60 of file BDSOutputROOTEventSamplerC.hh.

◆ phi

std::vector<float> BDSOutputROOTEventSamplerC::phi

Definition at line 52 of file BDSOutputROOTEventSamplerC.hh.

◆ phip

std::vector<float> BDSOutputROOTEventSamplerC::phip

Definition at line 55 of file BDSOutputROOTEventSamplerC.hh.

◆ rigidity

std::vector<float> BDSOutputROOTEventSamplerC::rigidity

These are not filled by default.

Definition at line 72 of file BDSOutputROOTEventSamplerC.hh.

Referenced by Flush().

◆ rp

std::vector<float> BDSOutputROOTEventSamplerC::rp

Definition at line 53 of file BDSOutputROOTEventSamplerC.hh.

◆ S

float BDSOutputROOTEventSamplerC::S

Definition at line 66 of file BDSOutputROOTEventSamplerC.hh.

◆ samplerName

std::string BDSOutputROOTEventSamplerC::samplerName

Definition at line 47 of file BDSOutputROOTEventSamplerC.hh.

◆ T

std::vector<float> BDSOutputROOTEventSamplerC::T

Definition at line 57 of file BDSOutputROOTEventSamplerC.hh.

◆ totalEnergy

std::vector<float> BDSOutputROOTEventSamplerC::totalEnergy

Definition at line 50 of file BDSOutputROOTEventSamplerC.hh.

◆ trackID

std::vector<int> BDSOutputROOTEventSamplerC::trackID

Definition at line 62 of file BDSOutputROOTEventSamplerC.hh.

◆ turnNumber

std::vector<int> BDSOutputROOTEventSamplerC::turnNumber

Definition at line 64 of file BDSOutputROOTEventSamplerC.hh.

◆ weight

std::vector<float> BDSOutputROOTEventSamplerC::weight

Definition at line 59 of file BDSOutputROOTEventSamplerC.hh.

◆ z

std::vector<float> BDSOutputROOTEventSamplerC::z

Definition at line 51 of file BDSOutputROOTEventSamplerC.hh.

◆ zp

std::vector<float> BDSOutputROOTEventSamplerC::zp

Definition at line 54 of file BDSOutputROOTEventSamplerC.hh.


The documentation for this class was generated from the following files: