Public Member Functions | Private Attributes | List of all members
garana::G4Particle Class Reference

#include <G4Particle.h>

Public Member Functions

 G4Particle ()
 
 G4Particle (const int &npts, const int &pdg, const int &parentPdg, const int &progenitorPdg, const int &trackId, const int &parentTrackId, const int &progenitorTrackId, const int &processI, const int &processF, const vector< pair< TLorentzVector, TLorentzVector >> &positions, const vector< pair< TLorentzVector, TLorentzVector >> &momenta, const vector< int > &regions, const vector< size_t > &nptsPerRegion)
 
int const & NPoints () const
 
int const & PDG () const
 
int const & ParentPDG () const
 
int const & ProgenitorPDG () const
 
int const & TrackID () const
 
int const & ParentTrackID () const
 
int const & ProgenitorTrackID () const
 
int const & ProcessI () const
 
int const & ProcessF () const
 
const TLorentzVector * PositionEnter (const size_t &iregion) const
 
const TLorentzVector * PositionExit (const size_t &iregion) const
 
const TLorentzVector * MomentumEnter (const size_t &iregion) const
 
const TLorentzVector * MomentumExit (const size_t &iregion) const
 
int Region (const size_t &iregion) const
 
size_t NPointsPerRegion (const size_t &iregion) const
 
size_t NRegions () const
 

Private Attributes

int fNpts = INT_MAX
 number of G4 steps (i.e. trajectory points) More...
 
int fPdg = INT_MAX
 particle PDG code More...
 
int fParentPdg = INT_MAX
 particle parent's PDG code More...
 
int fProgenitorPdg = INT_MAX
 FS particle from gen stage that led to this one. More...
 
int fTrackId = INT_MAX
 particle trackID More...
 
int fParentTrackId = INT_MAX
 particle's parent's trackID More...
 
int fProgenitorTrackId = INT_MAX
 FS particle from gen stage that led to this one. More...
 
int fProcessI = INT_MAX
 process that produced the particle More...
 
int fProcessF = INT_MAX
 process that killed the particle More...
 
vector< pair< TLorentzVector, TLorentzVector > > fR
 particle 4-position at entry (first) and exit (second) points for selected geometric regions More...
 
vector< pair< TLorentzVector, TLorentzVector > > fP
 particle 4-momentum at entry (first) and exit (second) points for selected geometric regions More...
 
vector< int > fRegions
 region numbers (e.g. tpc inactive (2), tpc active (1), tpcFiducial(0), eCal (3)) More...
 
vector< size_t > fNptsPerRegion
 number of trajectory points (G4 steps) per region of interest More...
 

Detailed Description

Definition at line 23 of file G4Particle.h.

Constructor & Destructor Documentation

garana::G4Particle::G4Particle ( )
inline

Definition at line 26 of file G4Particle.h.

26 {}
garana::G4Particle::G4Particle ( const int &  npts,
const int &  pdg,
const int &  parentPdg,
const int &  progenitorPdg,
const int &  trackId,
const int &  parentTrackId,
const int &  progenitorTrackId,
const int &  processI,
const int &  processF,
const vector< pair< TLorentzVector, TLorentzVector >> &  positions,
const vector< pair< TLorentzVector, TLorentzVector >> &  momenta,
const vector< int > &  regions,
const vector< size_t > &  nptsPerRegion 
)
inline

Definition at line 30 of file G4Particle.h.

33  :
34  fNpts(npts),
35  fPdg(pdg),
36  fParentPdg(parentPdg),
37  fProgenitorPdg(progenitorPdg),
38  fTrackId(trackId),
39  fParentTrackId(parentTrackId),
40  fProgenitorTrackId(progenitorTrackId),
41  fProcessI(processI),
42  fProcessF(processF),
43  fR(positions),
44  fP(momenta),
45  fRegions(regions),
46  fNptsPerRegion(nptsPerRegion)
47  {}
vector< int > fRegions
region numbers (e.g. tpc inactive (2), tpc active (1), tpcFiducial(0), eCal (3))
Definition: G4Particle.h:82
int fNpts
number of G4 steps (i.e. trajectory points)
Definition: G4Particle.h:71
vector< pair< TLorentzVector, TLorentzVector > > fR
particle 4-position at entry (first) and exit (second) points for selected geometric regions ...
Definition: G4Particle.h:80
int fProgenitorTrackId
FS particle from gen stage that led to this one.
Definition: G4Particle.h:77
int fProgenitorPdg
FS particle from gen stage that led to this one.
Definition: G4Particle.h:74
vector< pair< TLorentzVector, TLorentzVector > > fP
particle 4-momentum at entry (first) and exit (second) points for selected geometric regions ...
Definition: G4Particle.h:81
int fParentPdg
particle parent&#39;s PDG code
Definition: G4Particle.h:73
int fPdg
particle PDG code
Definition: G4Particle.h:72
int fParentTrackId
particle&#39;s parent&#39;s trackID
Definition: G4Particle.h:76
vector< size_t > fNptsPerRegion
number of trajectory points (G4 steps) per region of interest
Definition: G4Particle.h:83
int fTrackId
particle trackID
Definition: G4Particle.h:75
int fProcessF
process that killed the particle
Definition: G4Particle.h:79
int fProcessI
process that produced the particle
Definition: G4Particle.h:78

Member Function Documentation

const TLorentzVector* garana::G4Particle::MomentumEnter ( const size_t &  iregion) const
inline

Definition at line 61 of file G4Particle.h.

61 { return &fP.at(iregion).first ; }
vector< pair< TLorentzVector, TLorentzVector > > fP
particle 4-momentum at entry (first) and exit (second) points for selected geometric regions ...
Definition: G4Particle.h:81
const TLorentzVector* garana::G4Particle::MomentumExit ( const size_t &  iregion) const
inline

Definition at line 62 of file G4Particle.h.

62 { return &fP.at(iregion).second ; }
vector< pair< TLorentzVector, TLorentzVector > > fP
particle 4-momentum at entry (first) and exit (second) points for selected geometric regions ...
Definition: G4Particle.h:81
int const& garana::G4Particle::NPoints ( ) const
inline

Definition at line 50 of file G4Particle.h.

50 { return fNpts; }
int fNpts
number of G4 steps (i.e. trajectory points)
Definition: G4Particle.h:71
size_t garana::G4Particle::NPointsPerRegion ( const size_t &  iregion) const
inline

Definition at line 64 of file G4Particle.h.

64 { return fNptsPerRegion.at(iregion); }
vector< size_t > fNptsPerRegion
number of trajectory points (G4 steps) per region of interest
Definition: G4Particle.h:83
size_t garana::G4Particle::NRegions ( ) const
inline

Definition at line 65 of file G4Particle.h.

65 { return fRegions.size(); }
vector< int > fRegions
region numbers (e.g. tpc inactive (2), tpc active (1), tpcFiducial(0), eCal (3))
Definition: G4Particle.h:82
size_t size
Definition: lodepng.cpp:55
int const& garana::G4Particle::ParentPDG ( ) const
inline

Definition at line 52 of file G4Particle.h.

52 { return fParentPdg; }
int fParentPdg
particle parent&#39;s PDG code
Definition: G4Particle.h:73
int const& garana::G4Particle::ParentTrackID ( ) const
inline

Definition at line 55 of file G4Particle.h.

55 { return fParentTrackId; }
int fParentTrackId
particle&#39;s parent&#39;s trackID
Definition: G4Particle.h:76
int const& garana::G4Particle::PDG ( ) const
inline

Definition at line 51 of file G4Particle.h.

51 { return fPdg; }
int fPdg
particle PDG code
Definition: G4Particle.h:72
const TLorentzVector* garana::G4Particle::PositionEnter ( const size_t &  iregion) const
inline

Definition at line 59 of file G4Particle.h.

59 { return &fR.at(iregion).first ; }
vector< pair< TLorentzVector, TLorentzVector > > fR
particle 4-position at entry (first) and exit (second) points for selected geometric regions ...
Definition: G4Particle.h:80
const TLorentzVector* garana::G4Particle::PositionExit ( const size_t &  iregion) const
inline

Definition at line 60 of file G4Particle.h.

60 { return &fR.at(iregion).second ; }
vector< pair< TLorentzVector, TLorentzVector > > fR
particle 4-position at entry (first) and exit (second) points for selected geometric regions ...
Definition: G4Particle.h:80
int const& garana::G4Particle::ProcessF ( ) const
inline

Definition at line 58 of file G4Particle.h.

58 { return fProcessF; }
int fProcessF
process that killed the particle
Definition: G4Particle.h:79
int const& garana::G4Particle::ProcessI ( ) const
inline

Definition at line 57 of file G4Particle.h.

57 { return fProcessI; }
int fProcessI
process that produced the particle
Definition: G4Particle.h:78
int const& garana::G4Particle::ProgenitorPDG ( ) const
inline

Definition at line 53 of file G4Particle.h.

53 { return fProgenitorPdg; }
int fProgenitorPdg
FS particle from gen stage that led to this one.
Definition: G4Particle.h:74
int const& garana::G4Particle::ProgenitorTrackID ( ) const
inline

Definition at line 56 of file G4Particle.h.

56 { return fProgenitorTrackId; }
int fProgenitorTrackId
FS particle from gen stage that led to this one.
Definition: G4Particle.h:77
int garana::G4Particle::Region ( const size_t &  iregion) const
inline

Definition at line 63 of file G4Particle.h.

63 { return fRegions.at(iregion); }
vector< int > fRegions
region numbers (e.g. tpc inactive (2), tpc active (1), tpcFiducial(0), eCal (3))
Definition: G4Particle.h:82
int const& garana::G4Particle::TrackID ( ) const
inline

Definition at line 54 of file G4Particle.h.

54 { return fTrackId; }
int fTrackId
particle trackID
Definition: G4Particle.h:75

Member Data Documentation

int garana::G4Particle::fNpts = INT_MAX
private

number of G4 steps (i.e. trajectory points)

Definition at line 71 of file G4Particle.h.

vector<size_t> garana::G4Particle::fNptsPerRegion
private

number of trajectory points (G4 steps) per region of interest

Definition at line 83 of file G4Particle.h.

vector<pair<TLorentzVector,TLorentzVector> > garana::G4Particle::fP
private

particle 4-momentum at entry (first) and exit (second) points for selected geometric regions

Definition at line 81 of file G4Particle.h.

int garana::G4Particle::fParentPdg = INT_MAX
private

particle parent's PDG code

Definition at line 73 of file G4Particle.h.

int garana::G4Particle::fParentTrackId = INT_MAX
private

particle's parent's trackID

Definition at line 76 of file G4Particle.h.

int garana::G4Particle::fPdg = INT_MAX
private

particle PDG code

Definition at line 72 of file G4Particle.h.

int garana::G4Particle::fProcessF = INT_MAX
private

process that killed the particle

Definition at line 79 of file G4Particle.h.

int garana::G4Particle::fProcessI = INT_MAX
private

process that produced the particle

Definition at line 78 of file G4Particle.h.

int garana::G4Particle::fProgenitorPdg = INT_MAX
private

FS particle from gen stage that led to this one.

Definition at line 74 of file G4Particle.h.

int garana::G4Particle::fProgenitorTrackId = INT_MAX
private

FS particle from gen stage that led to this one.

Definition at line 77 of file G4Particle.h.

vector<pair<TLorentzVector,TLorentzVector> > garana::G4Particle::fR
private

particle 4-position at entry (first) and exit (second) points for selected geometric regions

Definition at line 80 of file G4Particle.h.

vector<int> garana::G4Particle::fRegions
private

region numbers (e.g. tpc inactive (2), tpc active (1), tpcFiducial(0), eCal (3))

Definition at line 82 of file G4Particle.h.

int garana::G4Particle::fTrackId = INT_MAX
private

particle trackID

Definition at line 75 of file G4Particle.h.


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