![]() |
eventAnalysis
7.0-49-g0ac7482
|
Contains the truth information associated with a particle from Monte Carlo simulations. More...
#include <TTruthTrajectoriesModule.hxx>
Public Member Functions | |
TTruthTrajectory () | |
virtual | ~TTruthTrajectory () |
Int_t | Compare (const TObject *obj) const |
Comparison function of trajectory IDs so that a TClonesArray can be sorted in ascending ID order. More... | |
Bool_t | IsSortable () const |
Returns true - flagging the object as being sortable. More... | |
Public Attributes | |
Int_t | Category |
Classifier of the particle type. More... | |
Int_t | Charge |
Charge in units of |e|/3. (e.g. an electron has charge -3) More... | |
TLorentzVector | FinalPosition |
Final Position at which the particle stopped or left the simulation [mm]. More... | |
Int_t | ID |
Trajectory's ID number. More... | |
TLorentzVector | InitMomentum |
The Initial momentum of the particle at creation [MeV]. More... | |
TLorentzVector | InitPosition |
Initial Position at which the particle was created [mm]. More... | |
double | Mass |
Mass of the particle [MeV]. More... | |
std::string | Name |
Particle name. More... | |
Int_t | ParentID |
Parent particle's Trajectory ID. More... | |
Int_t | PDG |
Particle PDG code. More... | |
std::vector < ND::TTruthTrajectoriesModule::TTruthTrajectoryPoint > | Points |
The trajectory points where interactions occured along the trajectory. More... | |
Int_t | PrimaryID |
ID of the primary particle at the top of this particle's parent chain. More... | |
std::vector< TVector3 > | TraceEntranceMomentum |
Vector of TVector3s that stores the entrance momentum of the particle in each subdetector it encounters. More... | |
std::vector< TLorentzVector > | TraceEntrancePosition |
Vector of TLorentzVectors that stores the entrance position of the particle in each subdetector it encounters. More... | |
std::vector< TVector3 > | TraceExitMomentum |
Vector of TVector3s that stores the exit momentum of the particle in each subdetector it encounters. More... | |
std::vector< TLorentzVector > | TraceExitPosition |
Vector of TLorentzVectors that stores the exit position of the particle in each subdetector it encounters. More... | |
std::vector< bool > | TraceInActive |
Vector of booleans indicating whether the particle went through an active part of the corresponding subdetector. More... | |
std::vector< Int_t > | TraceSubdetectors |
Vector of integer subdetector codes indicating which subdetectors the particle travelled through. More... | |
Private Member Functions | |
ClassDef (ND::TTruthTrajectoriesModule::TTruthTrajectory, 2) | |
Contains the truth information associated with a particle from Monte Carlo simulations.
Definition at line 237 of file TTruthTrajectoriesModule.hxx.
ND::TTruthTrajectoriesModule::TTruthTrajectory::TTruthTrajectory | ( | ) |
Definition at line 612 of file TTruthTrajectoriesModule.cxx.
References TraceEntranceMomentum, TraceEntrancePosition, TraceExitMomentum, TraceExitPosition, TraceInActive, and TraceSubdetectors.
|
virtual |
Definition at line 240 of file TTruthTrajectoriesModule.hxx.
|
private |
Int_t ND::TTruthTrajectoriesModule::TTruthTrajectory::Compare | ( | const TObject * | obj | ) | const |
Comparison function of trajectory IDs so that a TClonesArray can be sorted in ascending ID order.
Definition at line 632 of file TTruthTrajectoriesModule.cxx.
Bool_t ND::TTruthTrajectoriesModule::TTruthTrajectory::IsSortable | ( | ) | const |
Returns true - flagging the object as being sortable.
Definition at line 247 of file TTruthTrajectoriesModule.hxx.
Int_t ND::TTruthTrajectoriesModule::TTruthTrajectory::Category |
Classifier of the particle type.
Definition at line 261 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTree().
Int_t ND::TTruthTrajectoriesModule::TTruthTrajectory::Charge |
Charge in units of |e|/3. (e.g. an electron has charge -3)
Definition at line 285 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTree().
TLorentzVector ND::TTruthTrajectoriesModule::TTruthTrajectory::FinalPosition |
Final Position at which the particle stopped or left the simulation [mm].
Definition at line 270 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTree().
Int_t ND::TTruthTrajectoriesModule::TTruthTrajectory::ID |
Trajectory's ID number.
Uniquely identifies this trajectory within the event. Used by other eventAnalysis modules to reference trajectories.
Definition at line 252 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTree().
TLorentzVector ND::TTruthTrajectoriesModule::TTruthTrajectory::InitMomentum |
The Initial momentum of the particle at creation [MeV].
Definition at line 264 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTree().
TLorentzVector ND::TTruthTrajectoriesModule::TTruthTrajectory::InitPosition |
Initial Position at which the particle was created [mm].
Definition at line 267 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTree().
double ND::TTruthTrajectoriesModule::TTruthTrajectory::Mass |
Mass of the particle [MeV].
Definition at line 282 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTree().
std::string ND::TTruthTrajectoriesModule::TTruthTrajectory::Name |
Particle name.
Definition at line 258 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTree().
Int_t ND::TTruthTrajectoriesModule::TTruthTrajectory::ParentID |
Parent particle's Trajectory ID.
If this is a primary trajectory, the ParentID = 0.
Definition at line 274 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTree().
Int_t ND::TTruthTrajectoriesModule::TTruthTrajectory::PDG |
Particle PDG code.
Definition at line 255 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTree().
std::vector<ND::TTruthTrajectoriesModule::TTruthTrajectoryPoint> ND::TTruthTrajectoriesModule::TTruthTrajectory::Points |
The trajectory points where interactions occured along the trajectory.
The trajectory points where interactions occured along the trajectory.
Definition at line 289 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTrajectoryPoints().
Int_t ND::TTruthTrajectoriesModule::TTruthTrajectory::PrimaryID |
ID of the primary particle at the top of this particle's parent chain.
If this is a primary trajectory, then PrimaryID = ID.
Definition at line 279 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTree().
std::vector<TVector3> ND::TTruthTrajectoriesModule::TTruthTrajectory::TraceEntranceMomentum |
Vector of TVector3s that stores the entrance momentum of the particle in each subdetector it encounters.
TraceEntranceMomentum.front() is the global starting momentum of the track (i.e. equivalent to the old InitMomentum). TraceEntranceMomentum.size() = TraceSubdetectors.size() (e.g. TraceEntranceMomentum[4] tells you the entrance momentum of the 5th subdetector in its path, TraceSubdetectors[4]).
Definition at line 325 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTraces(), and TTruthTrajectory().
std::vector<TLorentzVector> ND::TTruthTrajectoriesModule::TTruthTrajectory::TraceEntrancePosition |
Vector of TLorentzVectors that stores the entrance position of the particle in each subdetector it encounters.
TraceEntrancePosition.front() is the global starting position of the track (i.e. equivalent to the old InitPosition) TraceEntrancePosition.size() = TraceSubdetectors.size() (e.g. TraceEntrancePosition[4] tells you the entrance position of the 5th subdetector in its path, TraceSubdetectors[4]).
Definition at line 309 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTraces(), and TTruthTrajectory().
std::vector<TVector3> ND::TTruthTrajectoriesModule::TTruthTrajectory::TraceExitMomentum |
Vector of TVector3s that stores the exit momentum of the particle in each subdetector it encounters.
TraceExitMomentum.back() is the global stopping momentum of the track (i.e. equivalent to the old FinalMomentum) TraceExitMomentum.size() = TraceSubdetectors.size() (e.g. TraceExitMomentum[4] tells you the exit momentum of the 5th subdetector in its path, TraceSubdetectors[4]).
Definition at line 333 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTraces(), and TTruthTrajectory().
std::vector<TLorentzVector> ND::TTruthTrajectoriesModule::TTruthTrajectory::TraceExitPosition |
Vector of TLorentzVectors that stores the exit position of the particle in each subdetector it encounters.
TraceExitPosition.back() is the global stopping position of the track (i.e. equivalent to the old FinalPosition) TraceExitPosition.size() = TraceSubdetectors.size() (e.g. TraceExitPosition[4] tells you the exit position of the 5th subdetector in its path, TraceSubdetectors[4]).
Definition at line 317 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTraces(), and TTruthTrajectory().
std::vector<bool> ND::TTruthTrajectoriesModule::TTruthTrajectory::TraceInActive |
Vector of booleans indicating whether the particle went through an active part of the corresponding subdetector.
TraceInActive.size() = TraceSubdetectors.size() (e.g. TraceInActive[4] tells you whether the particle went through an active part of the 5th subdetector in its path, TraceSubdetectors[4]).
Definition at line 303 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTraces(), and TTruthTrajectory().
std::vector<Int_t> ND::TTruthTrajectoriesModule::TTruthTrajectory::TraceSubdetectors |
Vector of integer subdetector codes indicating which subdetectors the particle travelled through.
Uses the convention from eventAnalysisEnums::ESubdetector. This can be an active or inactive part of that subdetector. TraceSubdetectors.front() is the starting subdetector of the track (i.e. equivalent to the old InitSubdetector). TraceSubdetectors.back() is the final subdetector of the track (i.e. equivalent to the old FinalSubdetector). Note that all "Trace" prefixed variables store information in the order the particle encounters the subdetector, and can deal with encountering the same subdetector twice.
Definition at line 291 of file TTruthTrajectoriesModule.hxx.
Referenced by ND::TTruthTrajectoriesModule::FillTraces(), and TTruthTrajectory().