Public Member Functions | Public Attributes | List of all members
gar::cheat::HitIDE Struct Reference

#include <BackTrackerCore.h>

Public Member Functions

 HitIDE ()
 
 HitIDE (int id, float ef, float e, const TLorentzVector &pos, const TLorentzVector &mom)
 
bool operator== (HitIDE const &hitr) const
 
bool operator< (HitIDE const &hitr) const
 

Public Attributes

int trackID
 Geant4 trackID, as modified by ParticleListAction::PreTrackingAction. More...
 
float energyFrac
 fraction of gar::rec::Hit energy from the particle with this trackID More...
 
float energyTot
 total energy for this trackID. In units of probably-GeV. More...
 
TLorentzVector position
 deposited energy-weighted mean true 4-position [cm,ns] More...
 
TLorentzVector momentum
 deposited energy-weighted mean true 4-momentum [GeV/c,GeV] More...
 

Detailed Description

Definition at line 53 of file BackTrackerCore.h.

Constructor & Destructor Documentation

gar::cheat::HitIDE::HitIDE ( )
inline

Definition at line 60 of file BackTrackerCore.h.

60 {}
gar::cheat::HitIDE::HitIDE ( int  id,
float  ef,
float  e,
const TLorentzVector &  pos,
const TLorentzVector &  mom 
)
inline

Definition at line 62 of file BackTrackerCore.h.

63  : trackID(id), energyFrac(ef), energyTot(e), position(pos), momentum(mom) {}
float energyFrac
fraction of gar::rec::Hit energy from the particle with this trackID
TLorentzVector position
deposited energy-weighted mean true 4-position [cm,ns]
TLorentzVector momentum
deposited energy-weighted mean true 4-momentum [GeV/c,GeV]
const double e
int trackID
Geant4 trackID, as modified by ParticleListAction::PreTrackingAction.
float energyTot
total energy for this trackID. In units of probably-GeV.
TFile * ef
Definition: doAna.cpp:25

Member Function Documentation

bool gar::cheat::HitIDE::operator< ( HitIDE const &  hitr) const
inline

Definition at line 76 of file BackTrackerCore.h.

76  {
77  if(*this == hitr) return false;
78  if(this->trackID < hitr.trackID) return true;
79  if(this->trackID > hitr.trackID) return false;
80  if(this->energyTot < hitr.energyTot) return true;
81  if(this->energyTot > hitr.energyTot) return false;
82  if(this->energyFrac < hitr.energyFrac) return true;
83  if(this->energyFrac > hitr.energyFrac) return false;
84  if(this->position.Rho() < hitr.position.Rho()) return true;
85  if(this->position.Rho() > hitr.position.Rho()) return false;
86  if(this->position.Phi() < hitr.position.Phi()) return true;
87  if(this->position.Phi() > hitr.position.Phi()) return false;
88  if(this->position.Z() < hitr.position.Z()) return true;
89  if(this->position.Z() > hitr.position.Z()) return false;
90  if(this->momentum.P() < hitr.position.P()) return true;
91  if(this->momentum.P() > hitr.position.P()) return false;
92  if(this->momentum.E() < hitr.position.E()) return true;
93  if(this->momentum.E() > hitr.position.E()) return false;
94  return false;
95 
96  }
float energyFrac
fraction of gar::rec::Hit energy from the particle with this trackID
TLorentzVector position
deposited energy-weighted mean true 4-position [cm,ns]
TLorentzVector momentum
deposited energy-weighted mean true 4-momentum [GeV/c,GeV]
int trackID
Geant4 trackID, as modified by ParticleListAction::PreTrackingAction.
float energyTot
total energy for this trackID. In units of probably-GeV.
bool gar::cheat::HitIDE::operator== ( HitIDE const &  hitr) const
inline

Definition at line 65 of file BackTrackerCore.h.

65  {
66  if(this->trackID != hitr.trackID) return false;
67  if(this->energyTot != hitr.energyTot) return false;
68  if(this->energyFrac != hitr.energyFrac) return false;
69  if(this->position != hitr.position) return false;
70  if(this->momentum != hitr.momentum) return false;
71  return true;
72  }
float energyFrac
fraction of gar::rec::Hit energy from the particle with this trackID
TLorentzVector position
deposited energy-weighted mean true 4-position [cm,ns]
TLorentzVector momentum
deposited energy-weighted mean true 4-momentum [GeV/c,GeV]
int trackID
Geant4 trackID, as modified by ParticleListAction::PreTrackingAction.
float energyTot
total energy for this trackID. In units of probably-GeV.

Member Data Documentation

float gar::cheat::HitIDE::energyFrac

fraction of gar::rec::Hit energy from the particle with this trackID

Definition at line 55 of file BackTrackerCore.h.

float gar::cheat::HitIDE::energyTot

total energy for this trackID. In units of probably-GeV.

Definition at line 56 of file BackTrackerCore.h.

TLorentzVector gar::cheat::HitIDE::momentum

deposited energy-weighted mean true 4-momentum [GeV/c,GeV]

Definition at line 58 of file BackTrackerCore.h.

TLorentzVector gar::cheat::HitIDE::position

deposited energy-weighted mean true 4-position [cm,ns]

Definition at line 57 of file BackTrackerCore.h.

int gar::cheat::HitIDE::trackID

Geant4 trackID, as modified by ParticleListAction::PreTrackingAction.

Definition at line 54 of file BackTrackerCore.h.


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