WCSim
Public Member Functions | Private Attributes | List of all members
WCSimRootTrack Class Reference

Class holding true track information. More...

#include <WCSimRootEvent.hh>

Inheritance diagram for WCSimRootTrack:
Inheritance graph
Collaboration diagram for WCSimRootTrack:
Collaboration graph

Public Member Functions

 WCSimRootTrack ()
 
 WCSimRootTrack (Int_t ipnu, Int_t flag, Double_t m, Double_t p, Double_t E, Int_t startvol, Int_t stopvol, Double_t dir[3], Double_t pdir[3], Double_t stop[3], Double_t start[3], Int_t parenttype, ProcessType_t creatorProcess, Double_t time, Int_t id, Int_t idParent, std::vector< std::vector< float >> bPs, std::vector< float > bKEs, std::vector< double > bTimes, std::vector< int > bTypes)
 
virtual ~WCSimRootTrack ()
 
bool CompareAllVariables (const WCSimRootTrack *c) const
 
Int_t GetIpnu () const
 
Int_t GetFlag () const
 
Float_t GetM () const
 
Float_t GetP () const
 
Float_t GetE () const
 
Int_t GetStartvol () const
 
Int_t GetStopvol () const
 
Float_t GetDir (Int_t i=0) const
 
Float_t GetPdir (Int_t i=0) const
 
Float_t GetStop (Int_t i=0) const
 
Float_t GetStart (Int_t i=0) const
 
Int_t GetParenttype () const
 
Double_t GetTime () const
 
Int_t GetId () const
 
Int_t GetParentId () const
 
ProcessType_t GetCreatorProcess () const
 
std::string GetCreatorProcessName () const
 
std::vector< std::vector< float > > GetBoundaryPoints () const
 
std::vector< float > GetBoundaryKEs () const
 
std::vector< double > GetBoundaryTimes () const
 
std::vector< int > GetBoundaryTypes () const
 

Private Attributes

Int_t fIpnu
 Track PDG code. More...
 
Int_t fFlag
 -2: Neutrino target nucleus track. -1: Primary neutrino track. 0: Final state particle track More...
 
Float_t fM
 Particle mass (units: MeV/c2) More...
 
Float_t fP
 Particle initial momentum magnitude (units: MeV/c) More...
 
Float_t fE
 Particle initial total energy = sqrt(p^2 + m^2) (units: MeV) More...
 
Int_t fStartvol
 Particle starting volume. More...
 
Int_t fStopvol
 Particle stopping volume. More...
 
Float_t fDir [3]
 Particle initial direction. Unit vector in x,y,z. More...
 
Float_t fPdir [3]
 Particle initial momentum. Vector in x,y,z (units: MeV). The magnitude of this vector is equivalent to fP. More...
 
Float_t fStop [3]
 Particle stopping position. Vector in x,y,z (units: cm) More...
 
Float_t fStart [3]
 Particle starting position. Vector in x,y,z (units: cm) More...
 
Int_t fParenttype
 PDG code of parent particle (0 for primary, 999 for parent PDG code not found in the specific logic used) More...
 
ProcessType_t fCreatorProcess
 The physics process that created the track. More...
 
Double_t fTime
 Particle start time. More...
 
Int_t fId
 Unique track ID for this particle track. This is the ID to use for particle history tracking (not position in the WCSimRootTrack array) More...
 
Int_t fParentId
 Unique track ID for the parent of this track. This is the ID to use for particle history tracking (not position in the WCSimRootTrack array) More...
 
std::vector< std::vector< float > > boundaryPoints
 The position (x,y,z) where the particle crossed the blacksheet/tyvek/cave (units: cm) More...
 
std::vector< float > boundaryKEs
 The particle kinetic energy as it crossed the blacksheet/tyvek/cave (units: MeV) More...
 
std::vector< double > boundaryTimes
 The time as the particle crossed the blacksheet/tyvek/cave (units: ns) More...
 
std::vector< int > boundaryTypes
 The surface the particle has crossed. 1 = blacksheet, 2 = tyvek, 3 = cave. Note that all boundary* variables are in synch. More...
 

Detailed Description

Class holding true track information.

By default,

Definition at line 38 of file WCSimRootEvent.hh.

Constructor & Destructor Documentation

◆ WCSimRootTrack() [1/2]

WCSimRootTrack::WCSimRootTrack ( )
inline

Definition at line 65 of file WCSimRootEvent.hh.

◆ WCSimRootTrack() [2/2]

WCSimRootTrack::WCSimRootTrack ( Int_t  ipnu,
Int_t  flag,
Double_t  m,
Double_t  p,
Double_t  E,
Int_t  startvol,
Int_t  stopvol,
Double_t  dir[3],
Double_t  pdir[3],
Double_t  stop[3],
Double_t  start[3],
Int_t  parenttype,
ProcessType_t  creatorProcess,
Double_t  time,
Int_t  id,
Int_t  idParent,
std::vector< std::vector< float >>  bPs,
std::vector< float >  bKEs,
std::vector< double >  bTimes,
std::vector< int >  bTypes 
)

Definition at line 514 of file WCSimRootEvent.cc.

◆ ~WCSimRootTrack()

virtual WCSimRootTrack::~WCSimRootTrack ( )
inlinevirtual

Definition at line 86 of file WCSimRootEvent.hh.

Member Function Documentation

◆ CompareAllVariables()

bool WCSimRootTrack::CompareAllVariables ( const WCSimRootTrack c) const

Definition at line 842 of file WCSimRootEvent.cc.

◆ GetBoundaryKEs()

std::vector<float> WCSimRootTrack::GetBoundaryKEs ( ) const
inline

Definition at line 107 of file WCSimRootEvent.hh.

◆ GetBoundaryPoints()

std::vector<std::vector<float> > WCSimRootTrack::GetBoundaryPoints ( ) const
inline

Definition at line 106 of file WCSimRootEvent.hh.

◆ GetBoundaryTimes()

std::vector<double> WCSimRootTrack::GetBoundaryTimes ( ) const
inline

Definition at line 108 of file WCSimRootEvent.hh.

◆ GetBoundaryTypes()

std::vector<int> WCSimRootTrack::GetBoundaryTypes ( ) const
inline

Definition at line 109 of file WCSimRootEvent.hh.

◆ GetCreatorProcess()

ProcessType_t WCSimRootTrack::GetCreatorProcess ( ) const
inline

Definition at line 104 of file WCSimRootEvent.hh.

◆ GetCreatorProcessName()

std::string WCSimRootTrack::GetCreatorProcessName ( ) const
inline

Definition at line 105 of file WCSimRootEvent.hh.

◆ GetDir()

Float_t WCSimRootTrack::GetDir ( Int_t  i = 0) const
inline

Definition at line 96 of file WCSimRootEvent.hh.

◆ GetE()

Float_t WCSimRootTrack::GetE ( ) const
inline

Definition at line 93 of file WCSimRootEvent.hh.

◆ GetFlag()

Int_t WCSimRootTrack::GetFlag ( ) const
inline

Definition at line 90 of file WCSimRootEvent.hh.

◆ GetId()

Int_t WCSimRootTrack::GetId ( ) const
inline

Definition at line 102 of file WCSimRootEvent.hh.

◆ GetIpnu()

Int_t WCSimRootTrack::GetIpnu ( ) const
inline

Definition at line 89 of file WCSimRootEvent.hh.

◆ GetM()

Float_t WCSimRootTrack::GetM ( ) const
inline

Definition at line 91 of file WCSimRootEvent.hh.

◆ GetP()

Float_t WCSimRootTrack::GetP ( ) const
inline

Definition at line 92 of file WCSimRootEvent.hh.

◆ GetParentId()

Int_t WCSimRootTrack::GetParentId ( ) const
inline

Definition at line 103 of file WCSimRootEvent.hh.

◆ GetParenttype()

Int_t WCSimRootTrack::GetParenttype ( ) const
inline

Definition at line 100 of file WCSimRootEvent.hh.

◆ GetPdir()

Float_t WCSimRootTrack::GetPdir ( Int_t  i = 0) const
inline

Definition at line 97 of file WCSimRootEvent.hh.

◆ GetStart()

Float_t WCSimRootTrack::GetStart ( Int_t  i = 0) const
inline

Definition at line 99 of file WCSimRootEvent.hh.

◆ GetStartvol()

Int_t WCSimRootTrack::GetStartvol ( ) const
inline

Definition at line 94 of file WCSimRootEvent.hh.

◆ GetStop()

Float_t WCSimRootTrack::GetStop ( Int_t  i = 0) const
inline

Definition at line 98 of file WCSimRootEvent.hh.

◆ GetStopvol()

Int_t WCSimRootTrack::GetStopvol ( ) const
inline

Definition at line 95 of file WCSimRootEvent.hh.

◆ GetTime()

Double_t WCSimRootTrack::GetTime ( ) const
inline

Definition at line 101 of file WCSimRootEvent.hh.

Member Data Documentation

◆ boundaryKEs

std::vector<float> WCSimRootTrack::boundaryKEs
private

The particle kinetic energy as it crossed the blacksheet/tyvek/cave (units: MeV)

Definition at line 60 of file WCSimRootEvent.hh.

◆ boundaryPoints

std::vector<std::vector<float> > WCSimRootTrack::boundaryPoints
private

The position (x,y,z) where the particle crossed the blacksheet/tyvek/cave (units: cm)

Definition at line 59 of file WCSimRootEvent.hh.

◆ boundaryTimes

std::vector<double> WCSimRootTrack::boundaryTimes
private

The time as the particle crossed the blacksheet/tyvek/cave (units: ns)

Definition at line 61 of file WCSimRootEvent.hh.

◆ boundaryTypes

std::vector<int> WCSimRootTrack::boundaryTypes
private

The surface the particle has crossed. 1 = blacksheet, 2 = tyvek, 3 = cave. Note that all boundary* variables are in synch.

Definition at line 62 of file WCSimRootEvent.hh.

◆ fCreatorProcess

ProcessType_t WCSimRootTrack::fCreatorProcess
private

The physics process that created the track.

Definition at line 55 of file WCSimRootEvent.hh.

◆ fDir

Float_t WCSimRootTrack::fDir[3]
private

Particle initial direction. Unit vector in x,y,z.

Definition at line 50 of file WCSimRootEvent.hh.

◆ fE

Float_t WCSimRootTrack::fE
private

Particle initial total energy = sqrt(p^2 + m^2) (units: MeV)

Definition at line 47 of file WCSimRootEvent.hh.

◆ fFlag

Int_t WCSimRootTrack::fFlag
private

-2: Neutrino target nucleus track. -1: Primary neutrino track. 0: Final state particle track

Definition at line 44 of file WCSimRootEvent.hh.

◆ fId

Int_t WCSimRootTrack::fId
private

Unique track ID for this particle track. This is the ID to use for particle history tracking (not position in the WCSimRootTrack array)

Definition at line 57 of file WCSimRootEvent.hh.

◆ fIpnu

Int_t WCSimRootTrack::fIpnu
private

Track PDG code.

Definition at line 43 of file WCSimRootEvent.hh.

◆ fM

Float_t WCSimRootTrack::fM
private

Particle mass (units: MeV/c2)

Definition at line 45 of file WCSimRootEvent.hh.

◆ fP

Float_t WCSimRootTrack::fP
private

Particle initial momentum magnitude (units: MeV/c)

Definition at line 46 of file WCSimRootEvent.hh.

◆ fParentId

Int_t WCSimRootTrack::fParentId
private

Unique track ID for the parent of this track. This is the ID to use for particle history tracking (not position in the WCSimRootTrack array)

Definition at line 58 of file WCSimRootEvent.hh.

◆ fParenttype

Int_t WCSimRootTrack::fParenttype
private

PDG code of parent particle (0 for primary, 999 for parent PDG code not found in the specific logic used)

Definition at line 54 of file WCSimRootEvent.hh.

◆ fPdir

Float_t WCSimRootTrack::fPdir[3]
private

Particle initial momentum. Vector in x,y,z (units: MeV). The magnitude of this vector is equivalent to fP.

Definition at line 51 of file WCSimRootEvent.hh.

◆ fStart

Float_t WCSimRootTrack::fStart[3]
private

Particle starting position. Vector in x,y,z (units: cm)

Definition at line 53 of file WCSimRootEvent.hh.

◆ fStartvol

Int_t WCSimRootTrack::fStartvol
private

Particle starting volume.

Definition at line 48 of file WCSimRootEvent.hh.

◆ fStop

Float_t WCSimRootTrack::fStop[3]
private

Particle stopping position. Vector in x,y,z (units: cm)

Definition at line 52 of file WCSimRootEvent.hh.

◆ fStopvol

Int_t WCSimRootTrack::fStopvol
private

Particle stopping volume.

Definition at line 49 of file WCSimRootEvent.hh.

◆ fTime

Double_t WCSimRootTrack::fTime
private

Particle start time.

Definition at line 56 of file WCSimRootEvent.hh.


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