NAIA  1.1.1
Public Member Functions | Public Attributes | List of all members
NAIA::MCParticle Struct Reference

Simple struct to describe a MC particle. More...

#include <MCTruth.h>

Public Member Functions

double GetGenMomentum () const
 Get the particle generation momentum. More...
 
TVector3 GetGenPosition () const
 Get the particle generation position. More...
 
int NSkip () const
 Reconstruct the original value of nskip from gbatch. More...
 

Public Attributes

int PDGCode = 0
 particle PDG code More...
 
int Z = 0
 particle charge More...
 
unsigned int A = 0
 particle mass number More...
 
float Mass = 0
 particle mass in GeV/c^2 More...
 
std::vector< TVector3 > Position
 particle position at different z-heights. More...
 
std::vector< TVector3 > Momentum
 particle momentum at different z-heights. More...
 
int partID = -1
 Particle track ID according to Geant4. More...
 
int parentID = -1
 Parent particle track ID according to Geant4. More...
 
int Proc1 = -1
 secondary creation process (G4VProcess::ProcessType) More...
 
int Proc2 = -1
 secondary creation subprocess (G4VProcess::ProcessSubType) More...
 

Detailed Description

Simple struct to describe a MC particle.

Definition at line 32 of file MCTruth.h.

Member Function Documentation

◆ GetGenMomentum()

double NAIA::MCParticle::GetGenMomentum ( ) const
inline

Get the particle generation momentum.

Returns
The generation momentum

Definition at line 51 of file MCTruth.h.

References NAIA::MCTruth::GenerationPoint, NAIA::getLogger(), and Momentum.

Referenced by NAIA::MCTruthBaseData::Dump().

◆ GetGenPosition()

TVector3 NAIA::MCParticle::GetGenPosition ( ) const
inline

Get the particle generation position.

Returns
The generation position

Definition at line 67 of file MCTruth.h.

References NAIA::MCTruth::GenerationPoint, NAIA::getLogger(), and Position.

◆ NSkip()

int NAIA::MCParticle::NSkip ( ) const
inline

Reconstruct the original value of nskip from gbatch.

Returns
nskip

Definition at line 83 of file MCTruth.h.

References Proc1, and Proc2.

Member Data Documentation

◆ A

unsigned int NAIA::MCParticle::A = 0

particle mass number

Definition at line 35 of file MCTruth.h.

Referenced by NAIA::MCTruthBaseData::Dump().

◆ Mass

float NAIA::MCParticle::Mass = 0

particle mass in GeV/c^2

Definition at line 36 of file MCTruth.h.

Referenced by NAIA::MCTruthBaseData::Dump(), and NAIA::GetMCParticle().

◆ Momentum

std::vector<TVector3> NAIA::MCParticle::Momentum

particle momentum at different z-heights.

Definition at line 39 of file MCTruth.h.

Referenced by GetGenMomentum().

◆ parentID

int NAIA::MCParticle::parentID = -1

Parent particle track ID according to Geant4.

Definition at line 42 of file MCTruth.h.

◆ partID

int NAIA::MCParticle::partID = -1

Particle track ID according to Geant4.

Definition at line 41 of file MCTruth.h.

◆ PDGCode

int NAIA::MCParticle::PDGCode = 0

particle PDG code

Definition at line 33 of file MCTruth.h.

Referenced by NAIA::MCTruthBaseData::Dump().

◆ Position

std::vector<TVector3> NAIA::MCParticle::Position

particle position at different z-heights.

Definition at line 38 of file MCTruth.h.

Referenced by NAIA::MCTruthBaseData::Dump(), and GetGenPosition().

◆ Proc1

int NAIA::MCParticle::Proc1 = -1

secondary creation process (G4VProcess::ProcessType)

Definition at line 43 of file MCTruth.h.

Referenced by NSkip().

◆ Proc2

int NAIA::MCParticle::Proc2 = -1

secondary creation subprocess (G4VProcess::ProcessSubType)

Definition at line 44 of file MCTruth.h.

Referenced by NSkip().

◆ Z

int NAIA::MCParticle::Z = 0

particle charge

Definition at line 34 of file MCTruth.h.

Referenced by NAIA::MCTruthBaseData::Dump().


The documentation for this struct was generated from the following file: