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

Structure to record a trajectory. More...

#include <BDSOutputROOTEventTrajectory.hh>

Inheritance diagram for BDSOutputROOTEventTrajectory:
Inheritance graph
Collaboration diagram for BDSOutputROOTEventTrajectory:
Collaboration graph

Data Structures

struct  IndividualTrajectory
 Temporary structure for an individual trajectory used to convert types. More...
 

Public Member Functions

void Fill (const BDSTrajectoriesToStore *t, int storeStepPointsN, bool storeStepPointLast, const BDS::TrajectoryOptions &storageOptions, const std::map< G4Material *, short int > &materialToID)
 
void Fill (const BDSHitsCollectionEnergyDeposition *phc)
 
void FillIndividualTrajectory (IndividualTrajectory &itj, BDSTrajectory *traj, int i, const std::map< G4Material *, short int > &materialToID) const
 
void Flush ()
 add comment to avoid warning (no need to make persistent, see issue #191) More...
 
void Fill (const BDSOutputROOTEventTrajectory *other)
 
std::vector< BDSOutputROOTEventTrajectoryPointtrackInteractions (int trackIDIn) const
 
BDSOutputROOTEventTrajectoryPoint primaryProcessPoint (int trackIDIn) const
 
BDSOutputROOTEventTrajectoryPoint parentProcessPoint (int trackIDIn) const
 
std::vector< BDSOutputROOTEventTrajectoryPointprocessHistory (int trackIDIn) const
 
void printTrajectoryInfoByTrackID (int trackIDIn) const
 
void printTrajectoryInfo (int storageIndex) const
 
bool parentIsPrimary (int trackIDIn) const
 
 ClassDef (BDSOutputROOTEventTrajectory, 5)
 

Data Fields

BDSAuxiliaryNavigatorauxNavigator
 Required to find beamline index careful including in streamer. More...
 
int n
 
std::vector< std::bitset< BDS::NTrajectoryFilters > > filters
 
std::vector< int > partID
 
std::vector< unsigned int > trackID
 
std::vector< unsigned int > parentID
 
std::vector< unsigned int > parentIndex
 
std::vector< unsigned int > parentStepIndex
 
std::vector< int > primaryStepIndex
 
std::vector< int > depth
 
std::vector< std::vector< int > > preProcessTypes
 
std::vector< std::vector< int > > preProcessSubTypes
 
std::vector< std::vector< int > > postProcessTypes
 
std::vector< std::vector< int > > postProcessSubTypes
 
std::vector< std::vector< double > > preWeights
 
std::vector< std::vector< double > > postWeights
 
std::vector< std::vector< double > > energyDeposit
 
std::vector< std::vector< TVector3 > > XYZ
 
std::vector< std::vector< double > > S
 
std::vector< std::vector< TVector3 > > PXPYPZ
 
std::vector< std::vector< double > > T
 
std::vector< std::vector< short int > > materialID
 
std::vector< std::vector< int > > modelIndicies
 
std::map< int, int > trackID_trackIndex
 
std::vector< std::vector< TVector3 > > xyz
 Local coordinates. More...
 
std::vector< std::vector< TVector3 > > pxpypz
 Local coordinates. More...
 
std::vector< std::vector< int > > charge
 Link trajectory information. More...
 
std::vector< std::vector< double > > kineticEnergy
 Link trajectory information. More...
 
std::vector< std::vector< int > > turnsTaken
 Link trajectory information. More...
 
std::vector< std::vector< double > > mass
 Link trajectory information. More...
 
std::vector< std::vector< double > > rigidity
 Link trajectory information. More...
 
std::vector< std::vector< bool > > isIon
 Ion trajectory information. More...
 
std::vector< std::vector< int > > ionA
 Ion trajectory information. More...
 
std::vector< std::vector< int > > ionZ
 Ion trajectory information. More...
 
std::vector< std::vector< int > > nElectrons
 Ion trajectory information. More...
 

Friends

std::ostream & operator<< (std::ostream &out, BDSOutputROOTEventTrajectory const &p)
 

Detailed Description

Structure to record a trajectory.

Author
Stewart Boogert

Definition at line 114 of file BDSOutputROOTEventTrajectory.hh.

Constructor & Destructor Documentation

◆ ~BDSOutputROOTEventTrajectory()

BDSOutputROOTEventTrajectory::~BDSOutputROOTEventTrajectory ( )
virtual

Definition at line 46 of file BDSOutputROOTEventTrajectory.cc.

Member Function Documentation

◆ Fill() [1/3]

void BDSOutputROOTEventTrajectory::Fill ( const BDSHitsCollectionEnergyDeposition phc)

Definition at line 330 of file BDSOutputROOTEventTrajectory.cc.

◆ Fill() [2/3]

void BDSOutputROOTEventTrajectory::Fill ( const BDSOutputROOTEventTrajectory other)

Definition at line 379 of file BDSOutputROOTEventTrajectory.cc.

◆ Fill() [3/3]

void BDSOutputROOTEventTrajectory::Fill ( const BDSTrajectoriesToStore t,
int  storeStepPointsN,
bool  storeStepPointLast,
const BDS::TrajectoryOptions storageOptions,
const std::map< G4Material *, short int > &  materialToID 
)

Definition at line 65 of file BDSOutputROOTEventTrajectory.cc.

◆ FillIndividualTrajectory()

void BDSOutputROOTEventTrajectory::FillIndividualTrajectory ( IndividualTrajectory itj,
BDSTrajectory traj,
int  i,
const std::map< G4Material *, short int > &  materialToID 
) const

◆ Flush()

void BDSOutputROOTEventTrajectory::Flush ( )

add comment to avoid warning (no need to make persistent, see issue #191)

Definition at line 337 of file BDSOutputROOTEventTrajectory.cc.

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

Referenced by BDSOutputStructures::ClearStructuresEventLevel(), and Event::Flush().

Here is the caller graph for this function:

◆ parentIsPrimary()

bool BDSOutputROOTEventTrajectory::parentIsPrimary ( int  trackIDIn) const

Definition at line 739 of file BDSOutputROOTEventTrajectory.cc.

◆ parentProcessPoint()

BDSOutputROOTEventTrajectoryPoint BDSOutputROOTEventTrajectory::parentProcessPoint ( int  trackIDIn) const

Definition at line 548 of file BDSOutputROOTEventTrajectory.cc.

◆ primaryProcessPoint()

BDSOutputROOTEventTrajectoryPoint BDSOutputROOTEventTrajectory::primaryProcessPoint ( int  trackIDIn) const

Definition at line 527 of file BDSOutputROOTEventTrajectory.cc.

◆ printTrajectoryInfo()

void BDSOutputROOTEventTrajectory::printTrajectoryInfo ( int  storageIndex) const

Definition at line 698 of file BDSOutputROOTEventTrajectory.cc.

◆ printTrajectoryInfoByTrackID()

void BDSOutputROOTEventTrajectory::printTrajectoryInfoByTrackID ( int  trackIDIn) const

Definition at line 683 of file BDSOutputROOTEventTrajectory.cc.

◆ processHistory()

std::vector< BDSOutputROOTEventTrajectoryPoint > BDSOutputROOTEventTrajectory::processHistory ( int  trackIDIn) const

Definition at line 615 of file BDSOutputROOTEventTrajectory.cc.

◆ trackInteractions()

std::vector< BDSOutputROOTEventTrajectoryPoint > BDSOutputROOTEventTrajectory::trackInteractions ( int  trackIDIn) const

Definition at line 452 of file BDSOutputROOTEventTrajectory.cc.

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  out,
BDSOutputROOTEventTrajectory const &  p 
)
friend

Definition at line 753 of file BDSOutputROOTEventTrajectory.cc.

Field Documentation

◆ auxNavigator

BDSAuxiliaryNavigator* BDSOutputROOTEventTrajectory::auxNavigator

Required to find beamline index careful including in streamer.

Definition at line 165 of file BDSOutputROOTEventTrajectory.hh.

Referenced by FillIndividualTrajectory().

◆ charge

std::vector<std::vector<int> > BDSOutputROOTEventTrajectory::charge

Link trajectory information.

Definition at line 201 of file BDSOutputROOTEventTrajectory.hh.

Referenced by Flush().

◆ depth

std::vector<int> BDSOutputROOTEventTrajectory::depth

Definition at line 179 of file BDSOutputROOTEventTrajectory.hh.

◆ energyDeposit

std::vector<std::vector<double> > BDSOutputROOTEventTrajectory::energyDeposit

Definition at line 188 of file BDSOutputROOTEventTrajectory.hh.

◆ filters

std::vector<std::bitset<BDS::NTrajectoryFilters> > BDSOutputROOTEventTrajectory::filters

Definition at line 172 of file BDSOutputROOTEventTrajectory.hh.

◆ ionA

std::vector<std::vector<int> > BDSOutputROOTEventTrajectory::ionA

Ion trajectory information.

Definition at line 210 of file BDSOutputROOTEventTrajectory.hh.

Referenced by Flush().

◆ ionZ

std::vector<std::vector<int> > BDSOutputROOTEventTrajectory::ionZ

Ion trajectory information.

Definition at line 211 of file BDSOutputROOTEventTrajectory.hh.

Referenced by Flush().

◆ isIon

std::vector<std::vector<bool> > BDSOutputROOTEventTrajectory::isIon

Ion trajectory information.

Definition at line 209 of file BDSOutputROOTEventTrajectory.hh.

Referenced by Flush().

◆ kineticEnergy

std::vector<std::vector<double> > BDSOutputROOTEventTrajectory::kineticEnergy

Link trajectory information.

Definition at line 202 of file BDSOutputROOTEventTrajectory.hh.

Referenced by Flush().

◆ mass

std::vector<std::vector<double> > BDSOutputROOTEventTrajectory::mass

Link trajectory information.

Definition at line 204 of file BDSOutputROOTEventTrajectory.hh.

Referenced by Flush().

◆ materialID

std::vector<std::vector<short int> > BDSOutputROOTEventTrajectory::materialID

Definition at line 215 of file BDSOutputROOTEventTrajectory.hh.

◆ modelIndicies

std::vector<std::vector<int> > BDSOutputROOTEventTrajectory::modelIndicies

Definition at line 217 of file BDSOutputROOTEventTrajectory.hh.

◆ n

int BDSOutputROOTEventTrajectory::n

Definition at line 171 of file BDSOutputROOTEventTrajectory.hh.

◆ nElectrons

std::vector<std::vector<int> > BDSOutputROOTEventTrajectory::nElectrons

Ion trajectory information.

Definition at line 212 of file BDSOutputROOTEventTrajectory.hh.

Referenced by Flush().

◆ parentID

std::vector<unsigned int> BDSOutputROOTEventTrajectory::parentID

Definition at line 175 of file BDSOutputROOTEventTrajectory.hh.

◆ parentIndex

std::vector<unsigned int> BDSOutputROOTEventTrajectory::parentIndex

Definition at line 176 of file BDSOutputROOTEventTrajectory.hh.

◆ parentStepIndex

std::vector<unsigned int> BDSOutputROOTEventTrajectory::parentStepIndex

Definition at line 177 of file BDSOutputROOTEventTrajectory.hh.

◆ partID

std::vector<int> BDSOutputROOTEventTrajectory::partID

Definition at line 173 of file BDSOutputROOTEventTrajectory.hh.

◆ postProcessSubTypes

std::vector<std::vector<int> > BDSOutputROOTEventTrajectory::postProcessSubTypes

Definition at line 184 of file BDSOutputROOTEventTrajectory.hh.

◆ postProcessTypes

std::vector<std::vector<int> > BDSOutputROOTEventTrajectory::postProcessTypes

Definition at line 183 of file BDSOutputROOTEventTrajectory.hh.

◆ postWeights

std::vector<std::vector<double> > BDSOutputROOTEventTrajectory::postWeights

Definition at line 187 of file BDSOutputROOTEventTrajectory.hh.

◆ preProcessSubTypes

std::vector<std::vector<int> > BDSOutputROOTEventTrajectory::preProcessSubTypes

Definition at line 182 of file BDSOutputROOTEventTrajectory.hh.

◆ preProcessTypes

std::vector<std::vector<int> > BDSOutputROOTEventTrajectory::preProcessTypes

Definition at line 181 of file BDSOutputROOTEventTrajectory.hh.

◆ preWeights

std::vector<std::vector<double> > BDSOutputROOTEventTrajectory::preWeights

Definition at line 186 of file BDSOutputROOTEventTrajectory.hh.

◆ primaryStepIndex

std::vector<int> BDSOutputROOTEventTrajectory::primaryStepIndex

Definition at line 178 of file BDSOutputROOTEventTrajectory.hh.

◆ PXPYPZ

std::vector<std::vector<TVector3> > BDSOutputROOTEventTrajectory::PXPYPZ

Definition at line 192 of file BDSOutputROOTEventTrajectory.hh.

◆ pxpypz

std::vector<std::vector<TVector3> > BDSOutputROOTEventTrajectory::pxpypz

Local coordinates.

Definition at line 197 of file BDSOutputROOTEventTrajectory.hh.

Referenced by Flush().

◆ rigidity

std::vector<std::vector<double> > BDSOutputROOTEventTrajectory::rigidity

Link trajectory information.

Definition at line 205 of file BDSOutputROOTEventTrajectory.hh.

Referenced by Flush().

◆ S

std::vector<std::vector<double> > BDSOutputROOTEventTrajectory::S

Definition at line 191 of file BDSOutputROOTEventTrajectory.hh.

◆ T

std::vector<std::vector<double> > BDSOutputROOTEventTrajectory::T

Definition at line 193 of file BDSOutputROOTEventTrajectory.hh.

◆ trackID

std::vector<unsigned int> BDSOutputROOTEventTrajectory::trackID

Definition at line 174 of file BDSOutputROOTEventTrajectory.hh.

◆ trackID_trackIndex

std::map<int, int> BDSOutputROOTEventTrajectory::trackID_trackIndex

Definition at line 219 of file BDSOutputROOTEventTrajectory.hh.

◆ turnsTaken

std::vector<std::vector<int> > BDSOutputROOTEventTrajectory::turnsTaken

Link trajectory information.

Definition at line 203 of file BDSOutputROOTEventTrajectory.hh.

Referenced by Flush().

◆ XYZ

std::vector<std::vector<TVector3> > BDSOutputROOTEventTrajectory::XYZ

Definition at line 190 of file BDSOutputROOTEventTrajectory.hh.

◆ xyz

std::vector<std::vector<TVector3> > BDSOutputROOTEventTrajectory::xyz

Local coordinates.

Definition at line 196 of file BDSOutputROOTEventTrajectory.hh.

Referenced by Flush().


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