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

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

#include <BDSOutputROOTEventAperture.hh>

Inheritance diagram for BDSOutputROOTEventAperture:
Inheritance graph
Collaboration diagram for BDSOutputROOTEventAperture:
Collaboration graph

Public Member Functions

void Fill (const BDSHitApertureImpact *hit, G4bool isPrimaryFirstImpact)
 
void Fill (const BDSOutputROOTEventAperture *other)
 
virtual void Flush ()
 
void FlushLocal ()
 
 ClassDef (BDSOutputROOTEventAperture, 1)
 

Data Fields

int n = 0
 Number of entries. More...
 
std::vector< float > energy
 Total energy of particle. More...
 
std::vector< double > S
 Global curvilinear S coordinate. More...
 
std::vector< float > weight
 Weight associated with loss. More...
 
std::vector< bool > isPrimary
 
std::vector< bool > firstPrimaryImpact
 Whether the first time the primary is passing through. More...
 
std::vector< int > partID
 ParticleID that create the deposit. More...
 
std::vector< int > turn
 Turn number. More...
 
std::vector< float > x
 
std::vector< float > y
 
std::vector< float > xp
 
std::vector< float > yp
 
std::vector< float > T
 Global time (time since beginning of event). More...
 
std::vector< float > kineticEnergy
 Kinetic energy in GeV at pre step point. More...
 
std::vector< bool > isIon
 
std::vector< int > ionA
 
std::vector< int > ionZ
 
std::vector< int > nElectrons
 
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...
 

Static Public Attributes

static BDSOutputROOTParticleDataparticleTable
 

Detailed Description

Data stored for energy deposition hits per event.

Author
Laurie Nevay

Definition at line 39 of file BDSOutputROOTEventAperture.hh.

Constructor & Destructor Documentation

◆ ~BDSOutputROOTEventAperture()

BDSOutputROOTEventAperture::~BDSOutputROOTEventAperture ( )
virtual

Definition at line 36 of file BDSOutputROOTEventAperture.cc.

Member Function Documentation

◆ Fill() [1/2]

void BDSOutputROOTEventAperture::Fill ( const BDSHitApertureImpact hit,
G4bool  isPrimaryFirstImpact 
)

Definition at line 40 of file BDSOutputROOTEventAperture.cc.

◆ Fill() [2/2]

void BDSOutputROOTEventAperture::Fill ( const BDSOutputROOTEventAperture other)

Definition at line 86 of file BDSOutputROOTEventAperture.cc.

◆ Flush()

virtual void BDSOutputROOTEventAperture::Flush ( )
inlinevirtual

Definition at line 73 of file BDSOutputROOTEventAperture.hh.

◆ FlushLocal()

void BDSOutputROOTEventAperture::FlushLocal ( )

Shouldn't call a virtual function in the constructor so we have a simple version here that doesn't override the one from TObject.

Definition at line 113 of file BDSOutputROOTEventAperture.cc.

References energy, firstPrimaryImpact, kineticEnergy, modelID, n, parentID, partID, S, T, trackID, turn, and weight.

Field Documentation

◆ energy

std::vector<float> BDSOutputROOTEventAperture::energy

Total energy of particle.

Definition at line 43 of file BDSOutputROOTEventAperture.hh.

Referenced by FlushLocal().

◆ firstPrimaryImpact

std::vector<bool> BDSOutputROOTEventAperture::firstPrimaryImpact

Whether the first time the primary is passing through.

Definition at line 47 of file BDSOutputROOTEventAperture.hh.

Referenced by FlushLocal().

◆ ionA

std::vector<int> BDSOutputROOTEventAperture::ionA

Definition at line 57 of file BDSOutputROOTEventAperture.hh.

◆ ionZ

std::vector<int> BDSOutputROOTEventAperture::ionZ

Definition at line 58 of file BDSOutputROOTEventAperture.hh.

◆ isIon

std::vector<bool> BDSOutputROOTEventAperture::isIon

Definition at line 56 of file BDSOutputROOTEventAperture.hh.

◆ isPrimary

std::vector<bool> BDSOutputROOTEventAperture::isPrimary

Definition at line 46 of file BDSOutputROOTEventAperture.hh.

◆ kineticEnergy

std::vector<float> BDSOutputROOTEventAperture::kineticEnergy

Kinetic energy in GeV at pre step point.

Definition at line 55 of file BDSOutputROOTEventAperture.hh.

Referenced by FlushLocal().

◆ modelID

std::vector<int> BDSOutputROOTEventAperture::modelID

Geometry model index.

Definition at line 63 of file BDSOutputROOTEventAperture.hh.

Referenced by FlushLocal().

◆ n

int BDSOutputROOTEventAperture::n = 0

Number of entries.

Definition at line 42 of file BDSOutputROOTEventAperture.hh.

Referenced by FlushLocal().

◆ nElectrons

std::vector<int> BDSOutputROOTEventAperture::nElectrons

Definition at line 59 of file BDSOutputROOTEventAperture.hh.

◆ parentID

std::vector<int> BDSOutputROOTEventAperture::parentID

ParentID that created the deposit.

Definition at line 62 of file BDSOutputROOTEventAperture.hh.

Referenced by FlushLocal().

◆ particleTable

BDSOutputROOTParticleData* BDSOutputROOTEventAperture::particleTable
static

Definition at line 79 of file BDSOutputROOTEventAperture.hh.

◆ partID

std::vector<int> BDSOutputROOTEventAperture::partID

ParticleID that create the deposit.

Definition at line 48 of file BDSOutputROOTEventAperture.hh.

Referenced by FlushLocal().

◆ S

std::vector<double> BDSOutputROOTEventAperture::S

Global curvilinear S coordinate.

Definition at line 44 of file BDSOutputROOTEventAperture.hh.

Referenced by FlushLocal().

◆ T

std::vector<float> BDSOutputROOTEventAperture::T

Global time (time since beginning of event).

Definition at line 54 of file BDSOutputROOTEventAperture.hh.

Referenced by FlushLocal().

◆ trackID

std::vector<int> BDSOutputROOTEventAperture::trackID

TrackID that created the deposit.

Definition at line 61 of file BDSOutputROOTEventAperture.hh.

Referenced by FlushLocal().

◆ turn

std::vector<int> BDSOutputROOTEventAperture::turn

Turn number.

Definition at line 49 of file BDSOutputROOTEventAperture.hh.

Referenced by FlushLocal().

◆ weight

std::vector<float> BDSOutputROOTEventAperture::weight

Weight associated with loss.

Definition at line 45 of file BDSOutputROOTEventAperture.hh.

Referenced by FlushLocal().

◆ x

std::vector<float> BDSOutputROOTEventAperture::x

Definition at line 50 of file BDSOutputROOTEventAperture.hh.

◆ xp

std::vector<float> BDSOutputROOTEventAperture::xp

Definition at line 52 of file BDSOutputROOTEventAperture.hh.

◆ y

std::vector<float> BDSOutputROOTEventAperture::y

Definition at line 51 of file BDSOutputROOTEventAperture.hh.

◆ yp

std::vector<float> BDSOutputROOTEventAperture::yp

Definition at line 53 of file BDSOutputROOTEventAperture.hh.


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