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

Information stored per spherical sampler per event. More...

#include <BDSOutputROOTEventSamplerS.hh>

Inheritance diagram for BDSOutputROOTEventSamplerS:
Inheritance graph
Collaboration diagram for BDSOutputROOTEventSamplerS:
Collaboration graph

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. More...
 
 ClassDef (BDSOutputROOTEventSamplerS, 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 > 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. 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 spherical sampler per event.

Author
Laurie Nevay

Definition at line 44 of file BDSOutputROOTEventSamplerS.hh.

Constructor & Destructor Documentation

◆ BDSOutputROOTEventSamplerS()

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

Definition at line 47 of file BDSOutputROOTEventSamplerS.cc.

◆ ~BDSOutputROOTEventSamplerS()

BDSOutputROOTEventSamplerS::~BDSOutputROOTEventSamplerS ( )
virtual

Definition at line 53 of file BDSOutputROOTEventSamplerS.cc.

Member Function Documentation

◆ Fill() [1/2]

void BDSOutputROOTEventSamplerS::Fill ( const BDSHitSamplerSphere hit,
G4bool  storeMass = false,
G4bool  storeCharge = false,
G4bool  storeElectrons = false,
G4bool  storeRigidity = false,
G4bool  storeKineticEnergy = false 
)

Definition at line 57 of file BDSOutputROOTEventSamplerS.cc.

◆ Fill() [2/2]

void BDSOutputROOTEventSamplerS::Fill ( const BDSOutputROOTEventSamplerS other)

Definition at line 102 of file BDSOutputROOTEventSamplerS.cc.

◆ FillIon()

void BDSOutputROOTEventSamplerS::FillIon ( )
inline

Calculate and fill calculated variables.

Definition at line 102 of file BDSOutputROOTEventSamplerS.hh.

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

Here is the call graph for this function:

◆ Flush()

void BDSOutputROOTEventSamplerS::Flush ( )
virtual

Clean Sampler.

Definition at line 138 of file BDSOutputROOTEventSamplerS.cc.

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

◆ getIonA()

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

Function to calculate on the fly the parameters.

Definition at line 213 of file BDSOutputROOTEventSamplerS.cc.

Referenced by FillIon().

Here is the caller graph for this function:

◆ getIonZ()

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

Function to calculate on the fly the parameters.

Definition at line 223 of file BDSOutputROOTEventSamplerS.cc.

Referenced by FillIon().

Here is the caller graph for this function:

◆ getIsIon()

std::vector< bool > BDSOutputROOTEventSamplerS::getIsIon ( )

Function to calculate on the fly the parameters.

Definition at line 198 of file BDSOutputROOTEventSamplerS.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 > BDSOutputROOTEventSamplerS::getKineticEnergy ( )

Function to calculate on the fly the parameters.

Definition at line 168 of file BDSOutputROOTEventSamplerS.cc.

References BDSOutputROOTParticleData::KineticEnergy().

Here is the call graph for this function:

◆ getMass()

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

Function to calculate on the fly the parameters.

Definition at line 178 of file BDSOutputROOTEventSamplerS.cc.

◆ getRigidity()

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

Function to calculate on the fly the parameters.

Definition at line 188 of file BDSOutputROOTEventSamplerS.cc.

References BDSOutputROOTParticleData::Rigidity().

Here is the call graph for this function:

◆ SetBranchAddress()

void BDSOutputROOTEventSamplerS::SetBranchAddress ( TTree *  )

Definition at line 135 of file BDSOutputROOTEventSamplerS.cc.

Field Documentation

◆ charge

std::vector<int> BDSOutputROOTEventSamplerS::charge

These are not filled by default.

Definition at line 69 of file BDSOutputROOTEventSamplerS.hh.

Referenced by Flush().

◆ ionA

std::vector<int> BDSOutputROOTEventSamplerS::ionA

These are not filled by default.

Definition at line 74 of file BDSOutputROOTEventSamplerS.hh.

Referenced by FillIon(), and Flush().

◆ ionZ

std::vector<int> BDSOutputROOTEventSamplerS::ionZ

These are not filled by default.

Definition at line 75 of file BDSOutputROOTEventSamplerS.hh.

Referenced by FillIon(), and Flush().

◆ isIon

std::vector<bool> BDSOutputROOTEventSamplerS::isIon

These are not filled by default.

Definition at line 73 of file BDSOutputROOTEventSamplerS.hh.

Referenced by FillIon(), and Flush().

◆ kineticEnergy

std::vector<float> BDSOutputROOTEventSamplerS::kineticEnergy

These are not filled by default.

Definition at line 70 of file BDSOutputROOTEventSamplerS.hh.

Referenced by Flush().

◆ mass

std::vector<float> BDSOutputROOTEventSamplerS::mass

These are not filled by default.

Definition at line 71 of file BDSOutputROOTEventSamplerS.hh.

Referenced by Flush().

◆ modelID

int BDSOutputROOTEventSamplerS::modelID

Definition at line 63 of file BDSOutputROOTEventSamplerS.hh.

◆ n

int BDSOutputROOTEventSamplerS::n

Definition at line 49 of file BDSOutputROOTEventSamplerS.hh.

◆ nElectrons

std::vector<int> BDSOutputROOTEventSamplerS::nElectrons

These are not filled by default.

Definition at line 76 of file BDSOutputROOTEventSamplerS.hh.

Referenced by Flush(), and getIsIon().

◆ p

std::vector<float> BDSOutputROOTEventSamplerS::p

Definition at line 56 of file BDSOutputROOTEventSamplerS.hh.

◆ parentID

std::vector<int> BDSOutputROOTEventSamplerS::parentID

Definition at line 61 of file BDSOutputROOTEventSamplerS.hh.

◆ particleTable

BDSOutputROOTParticleData * BDSOutputROOTEventSamplerS::particleTable = nullptr
static

Definition at line 108 of file BDSOutputROOTEventSamplerS.hh.

◆ partID

std::vector<int> BDSOutputROOTEventSamplerS::partID

Definition at line 60 of file BDSOutputROOTEventSamplerS.hh.

◆ phi

std::vector<float> BDSOutputROOTEventSamplerS::phi

Definition at line 52 of file BDSOutputROOTEventSamplerS.hh.

◆ phip

std::vector<float> BDSOutputROOTEventSamplerS::phip

Definition at line 55 of file BDSOutputROOTEventSamplerS.hh.

◆ rigidity

std::vector<float> BDSOutputROOTEventSamplerS::rigidity

These are not filled by default.

Definition at line 72 of file BDSOutputROOTEventSamplerS.hh.

Referenced by Flush().

◆ rp

std::vector<float> BDSOutputROOTEventSamplerS::rp

Definition at line 53 of file BDSOutputROOTEventSamplerS.hh.

◆ S

float BDSOutputROOTEventSamplerS::S

Definition at line 66 of file BDSOutputROOTEventSamplerS.hh.

◆ samplerName

std::string BDSOutputROOTEventSamplerS::samplerName

Definition at line 47 of file BDSOutputROOTEventSamplerS.hh.

◆ T

std::vector<float> BDSOutputROOTEventSamplerS::T

Definition at line 57 of file BDSOutputROOTEventSamplerS.hh.

◆ theta

std::vector<float> BDSOutputROOTEventSamplerS::theta

Definition at line 51 of file BDSOutputROOTEventSamplerS.hh.

◆ thetap

std::vector<float> BDSOutputROOTEventSamplerS::thetap

Definition at line 54 of file BDSOutputROOTEventSamplerS.hh.

◆ totalEnergy

std::vector<float> BDSOutputROOTEventSamplerS::totalEnergy

Definition at line 50 of file BDSOutputROOTEventSamplerS.hh.

◆ trackID

std::vector<int> BDSOutputROOTEventSamplerS::trackID

Definition at line 62 of file BDSOutputROOTEventSamplerS.hh.

◆ turnNumber

std::vector<int> BDSOutputROOTEventSamplerS::turnNumber

Definition at line 64 of file BDSOutputROOTEventSamplerS.hh.

◆ weight

std::vector<float> BDSOutputROOTEventSamplerS::weight

Definition at line 59 of file BDSOutputROOTEventSamplerS.hh.


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