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

Data stored for energy deposition hits per event. More...

#include <BDSOutputROOTEventLoss.hh>

Inheritance diagram for BDSOutputROOTEventLoss:
Inheritance graph
Collaboration diagram for BDSOutputROOTEventLoss:
Collaboration graph

Public Member Functions

void Fill (const BDSOutputROOTEventLoss *other)
 Fill from another instance. More...
 
virtual void Flush ()
 
 BDSOutputROOTEventLoss (bool storeTurnIn, bool storeLinksIn, bool storeModleIDIn, bool storeLocalIn, bool storeGobalIn, bool storeTimeIn, bool storeStepLengthIn, bool storePreStepKineticEnergyIn, bool storePhysicsProcessesIn)
 
void Fill (const BDSTrajectoryPointHit *hit)
 
void Fill (const BDSHitEnergyDeposition *hit)
 
 ClassDef (BDSOutputROOTEventLoss, 5)
 

Data Fields

int n
 Number of entries. More...
 
std::vector< float > energy
 Energy deposited in step. More...
 
std::vector< float > S
 Global curvilinear S coordinate. More...
 
std::vector< float > weight
 Weight associated with loss. More...
 
std::vector< int > partID
 ParticleID that create the deposit. More...
 
std::vector< int > trackID
 TrackID that created the deposit. More...
 
std::vector< int > parentID
 ParentID that created the deposit. More...
 
std::vector< int > modelID
 Geometry model index. More...
 
std::vector< int > turn
 Turn number. More...
 
std::vector< float > X
 
std::vector< float > Y
 
std::vector< float > Z
 
std::vector< float > T
 Global time (time since beginning of event). More...
 
std::vector< float > stepLength
 Step length taken for hit. More...
 
std::vector< float > preStepKineticEnergy
 Kinetic energy in GeV at pre step point. More...
 
std::vector< int > postStepProcessType
 
std::vector< int > postStepProcessSubType
 
bool storeTurn = false
 Store turn number. More...
 
bool storeLinks = false
 Whether to store links between Eloss and model and trajectors. More...
 
bool storeModelID = false
 Whether to store the beam line index. More...
 
bool storeLocal = false
 Whether to store local coordinates. More...
 
bool storeGlobal = false
 Whether to store global coordinates. More...
 
bool storeTime = false
 Whether to store global time. More...
 
bool storeStepLength = false
 Whether to store step length. More...
 
bool storePreStepKineticEnergy = false
 Whether to store pre step kinetic energy. More...
 
bool storePhysicsProcesses = false
 
std::vector< float > x
 Local coordinate. More...
 
std::vector< float > y
 Local coordinate. More...
 
std::vector< float > z
 Local coordinate. More...
 

Detailed Description

Data stored for energy deposition hits per event.

Author
Stewart Boogert

Definition at line 38 of file BDSOutputROOTEventLoss.hh.

Constructor & Destructor Documentation

◆ ~BDSOutputROOTEventLoss()

BDSOutputROOTEventLoss::~BDSOutputROOTEventLoss ( )
virtual

Definition at line 72 of file BDSOutputROOTEventLoss.cc.

Member Function Documentation

◆ Fill() [1/3]

void BDSOutputROOTEventLoss::Fill ( const BDSHitEnergyDeposition hit)

Definition at line 123 of file BDSOutputROOTEventLoss.cc.

◆ Fill() [2/3]

void BDSOutputROOTEventLoss::Fill ( const BDSOutputROOTEventLoss other)

Fill from another instance.

Definition at line 174 of file BDSOutputROOTEventLoss.cc.

References energy, modelID, n, parentID, partID, preStepKineticEnergy, S, stepLength, T, trackID, turn, weight, x, y, and z.

Referenced by Event::Fill(), BDSOutput::FillEnergyLoss(), BDSOutput::FillPrimaryHit(), and BDSOutput::FillPrimaryLoss().

Here is the caller graph for this function:

◆ Fill() [3/3]

void BDSOutputROOTEventLoss::Fill ( const BDSTrajectoryPointHit hit)

Definition at line 77 of file BDSOutputROOTEventLoss.cc.

◆ Flush()

void BDSOutputROOTEventLoss::Flush ( )
virtual

Definition at line 200 of file BDSOutputROOTEventLoss.cc.

Field Documentation

◆ energy

std::vector<float> BDSOutputROOTEventLoss::energy

Energy deposited in step.

Definition at line 45 of file BDSOutputROOTEventLoss.hh.

Referenced by EventDisplay::DrawTunnelHits(), and Fill().

◆ modelID

std::vector<int> BDSOutputROOTEventLoss::modelID

Geometry model index.

Definition at line 53 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ n

int BDSOutputROOTEventLoss::n

Number of entries.

Definition at line 44 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ parentID

std::vector<int> BDSOutputROOTEventLoss::parentID

ParentID that created the deposit.

Definition at line 51 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ partID

std::vector<int> BDSOutputROOTEventLoss::partID

ParticleID that create the deposit.

Definition at line 49 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ postStepProcessSubType

std::vector<int> BDSOutputROOTEventLoss::postStepProcessSubType

Definition at line 74 of file BDSOutputROOTEventLoss.hh.

◆ postStepProcessType

std::vector<int> BDSOutputROOTEventLoss::postStepProcessType

Definition at line 73 of file BDSOutputROOTEventLoss.hh.

◆ preStepKineticEnergy

std::vector<float> BDSOutputROOTEventLoss::preStepKineticEnergy

Kinetic energy in GeV at pre step point.

Definition at line 71 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ S

std::vector<float> BDSOutputROOTEventLoss::S

Global curvilinear S coordinate.

Definition at line 46 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ stepLength

std::vector<float> BDSOutputROOTEventLoss::stepLength

Step length taken for hit.

Definition at line 70 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ storeGlobal

bool BDSOutputROOTEventLoss::storeGlobal = false

Whether to store global coordinates.

Definition at line 97 of file BDSOutputROOTEventLoss.hh.

◆ storeLinks

bool BDSOutputROOTEventLoss::storeLinks = false

Whether to store links between Eloss and model and trajectors.

Definition at line 94 of file BDSOutputROOTEventLoss.hh.

◆ storeLocal

bool BDSOutputROOTEventLoss::storeLocal = false

Whether to store local coordinates.

Definition at line 96 of file BDSOutputROOTEventLoss.hh.

◆ storeModelID

bool BDSOutputROOTEventLoss::storeModelID = false

Whether to store the beam line index.

Definition at line 95 of file BDSOutputROOTEventLoss.hh.

◆ storePhysicsProcesses

bool BDSOutputROOTEventLoss::storePhysicsProcesses = false

Definition at line 101 of file BDSOutputROOTEventLoss.hh.

◆ storePreStepKineticEnergy

bool BDSOutputROOTEventLoss::storePreStepKineticEnergy = false

Whether to store pre step kinetic energy.

Definition at line 100 of file BDSOutputROOTEventLoss.hh.

◆ storeStepLength

bool BDSOutputROOTEventLoss::storeStepLength = false

Whether to store step length.

Definition at line 99 of file BDSOutputROOTEventLoss.hh.

◆ storeTime

bool BDSOutputROOTEventLoss::storeTime = false

Whether to store global time.

Definition at line 98 of file BDSOutputROOTEventLoss.hh.

◆ storeTurn

bool BDSOutputROOTEventLoss::storeTurn = false

Store turn number.

Definition at line 93 of file BDSOutputROOTEventLoss.hh.

◆ T

std::vector<float> BDSOutputROOTEventLoss::T

Global time (time since beginning of event).

Definition at line 68 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ trackID

std::vector<int> BDSOutputROOTEventLoss::trackID

TrackID that created the deposit.

Definition at line 50 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ turn

std::vector<int> BDSOutputROOTEventLoss::turn

Turn number.

Definition at line 54 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ weight

std::vector<float> BDSOutputROOTEventLoss::weight

Weight associated with loss.

Definition at line 47 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ x

std::vector<float> BDSOutputROOTEventLoss::x

Local coordinate.

Definition at line 57 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ X

std::vector<float> BDSOutputROOTEventLoss::X

Definition at line 63 of file BDSOutputROOTEventLoss.hh.

◆ y

std::vector<float> BDSOutputROOTEventLoss::y

Local coordinate.

Definition at line 58 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ Y

std::vector<float> BDSOutputROOTEventLoss::Y

Definition at line 64 of file BDSOutputROOTEventLoss.hh.

◆ z

std::vector<float> BDSOutputROOTEventLoss::z

Local coordinate.

Definition at line 59 of file BDSOutputROOTEventLoss.hh.

Referenced by Fill().

◆ Z

std::vector<float> BDSOutputROOTEventLoss::Z

Definition at line 65 of file BDSOutputROOTEventLoss.hh.


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