eventAnalysis  7.0-49-g0ac7482
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ND::TSmrdReconModule::TSmrdIsoTrack Class Reference

SMRD isolated track. More...

#include <TSmrdReconModule.hxx>

+ Inheritance diagram for ND::TSmrdReconModule::TSmrdIsoTrack:
+ Collaboration diagram for ND::TSmrdReconModule::TSmrdIsoTrack:

Public Member Functions

virtual ~TSmrdIsoTrack ()
 
 ClassDef (TSmrdReconModule::TSmrdIsoTrack, 1)
 

Public Attributes

std::string AlgorithmName
 Name of the reconstruction algorithm. More...
 
double avgtime
 Average hit time of the corresponding ND::TReconTrack. More...
 
TLorentzVector BackPos
 Position of the 'last' TTrackState of the corresponding ND::TReconTrack. More...
 
TLorentzVector BackPosVariance
 Variance on the position of the 'last' TTrackState of the corresponding ND::TReconTrack. More...
 
double Chi2
 The reported reconstruction 'quality' of the corresponding ND::TReconTrack. More...
 
TVector3 Direction
 Direction of the TTrackState which is the state of the corresponding ND::TReconTrack. More...
 
TVector3 DirectionVariance
 Variance on the direction the TTrackState which is the state of the corresponding ND::TReconTrack. More...
 
double EDeposit
 The total reconstructed charge of the corresponding ND::TReconTrack. More...
 
TLorentzVector FrontPos
 Position of the 'first' TTrackState of the corresponding ND::TReconTrack. More...
 
TLorentzVector FrontPosVariance
 Variance on the position of the 'first' TTrackState of the corresponding ND::TReconTrack. More...
 
int KalmanStatus
 Kalman filter refit result for the corresponding ND::TReconTrack. More...
 
int NDOF
 The Number of Degrees of Freedom in the reconstruction of the corresponding ND::TReconTrack. More...
 
int NHits
 Number of ND::THits which are associated with the corresponding ND::TReconTrack. More...
 
int NNodes
 Number of TReconNodes which are constituents of the corresponding ND::TReconTrack. More...
 
double PhiAngle
 Polar coordinate phi of the TSmrdIsoTrack::Direction. More...
 
double Range
 The spacial distance between TSmrdIsoTrack::FrontPos and TSmrdIsoTrack::BackPos. More...
 
int Status
 The reported Status of the corresponding ND::TReconTrack. More...
 
double ThetaAngle
 Polar coordinate theta of the TSmrdIsoTrack::Direction. More...
 
int TrueFinalDet
 For MC events: The subdetector in which TSmrdIsoTrack::TrueFinalPos lies. More...
 
TLorentzVector TrueFinalPos
 For MC events: The true final position of the corresponding ND::TG4Trajectory. More...
 
double TrueHitEff
 For MC events: The 'completeness' of the ND::THits which make up the corresponding ND::TReconTrack. More...
 
double TrueHitPurity
 For MC events: The 'cleanliness' of the ND::THits which make up the corresponding ND::TReconTrack. More...
 
int TrueId
 For MC events: The Id of the corresponding ND::TG4Trajectory. More...
 
int TrueInitDet
 For MC events: The subdetector in which TSmrdIsoTrack::TrueInitPos lies. More...
 
TLorentzVector TrueInitMom
 For MC events: The true initial momentum of the corresponding ND::TG4Trajectory. More...
 
TLorentzVector TrueInitPos
 For MC events: The true initial position of the corresponding ND::TG4Trajectory. More...
 
int TrueParentId
 For MC events: The Id of the true trajectory's parent ND::TG4Trajectory. More...
 
int TruePDG
 For MC events: The PDG code of the true particle. More...
 
UInt_t UniqueID
 The Unique ID of the corresponding ND::TReconTrack, used for global-subdetector matching. More...
 

Detailed Description

SMRD isolated track.

Definition at line 97 of file TSmrdReconModule.hxx.

Constructor & Destructor Documentation

ND::TSmrdReconModule::TSmrdIsoTrack::~TSmrdIsoTrack ( )
virtual

Definition at line 23 of file TSmrdReconModule.cxx.

Member Function Documentation

ND::TSmrdReconModule::TSmrdIsoTrack::ClassDef ( TSmrdReconModule::TSmrdIsoTrack  ,
 
)

Member Data Documentation

std::string ND::TSmrdReconModule::TSmrdIsoTrack::AlgorithmName

Name of the reconstruction algorithm.

Definition at line 103 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

double ND::TSmrdReconModule::TSmrdIsoTrack::avgtime

Average hit time of the corresponding ND::TReconTrack.

Defaults to '-9999.0' if no ND::TRealDatum named 'averageHitTime' is found on the corresponding ND::TReconTrack.

isoTrack->avgtime = -9999.0;
ND::THandle<ND::TRealDatum> smrdTimeRD =
track->Get<ND::TRealDatum>("averageHitTime");
if (smrdTimeRD) {
isoTrack->avgtime =
track->Get<ND::TRealDatum>("averageHitTime")->GetValue();
}

Definition at line 173 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

TLorentzVector ND::TSmrdReconModule::TSmrdIsoTrack::BackPos

Position of the 'last' TTrackState of the corresponding ND::TReconTrack.

ND::THandle<ND::TTrackState> backState =
TrackingUtils::GetLastState(*track);
isoTrack->BackPos = backState->GetPosition();
where the 'last' state is found by ND::TrackingUtils::GetLastState

Definition at line 119 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

TLorentzVector ND::TSmrdReconModule::TSmrdIsoTrack::BackPosVariance

Variance on the position of the 'last' TTrackState of the corresponding ND::TReconTrack.

ND::THandle<ND::TTrackState> backState =
TrackingUtils::GetLastState(*track);
isoTrack->BackPosVariance = backState->GetPositionVariance();
where the 'last' state is found by ND::TrackingUtils::GetLastState

Definition at line 126 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

double ND::TSmrdReconModule::TSmrdIsoTrack::Chi2

The reported reconstruction 'quality' of the corresponding ND::TReconTrack.

Uses ND::TReconBase::GetQuality

isoTrack->Chi2 = track->GetQuality();

Definition at line 180 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

TVector3 ND::TSmrdReconModule::TSmrdIsoTrack::Direction

Direction of the TTrackState which is the state of the corresponding ND::TReconTrack.

isoTrack->Direction = trackState->GetDirection();

Definition at line 133 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

TVector3 ND::TSmrdReconModule::TSmrdIsoTrack::DirectionVariance

Variance on the direction the TTrackState which is the state of the corresponding ND::TReconTrack.

isoTrack->DirectionVariance = trackState->GetDirectionVariance();

Definition at line 138 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

double ND::TSmrdReconModule::TSmrdIsoTrack::EDeposit

The total reconstructed charge of the corresponding ND::TReconTrack.

Defaults to '-9999.0' if no ND::TRealDatum named 'totalCharge' is found on the corresponding ND::TReconTrack.

isoTrack->EDeposit = -9999.0;
ND::THandle<ND::TRealDatum> totalCharge =
track->Get<ND::TRealDatum>("totalCharge");
if (totalCharge) {
isoTrack->EDeposit =
track->Get<ND::TRealDatum>("totalCharge")->GetValue();
}

Definition at line 168 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

TLorentzVector ND::TSmrdReconModule::TSmrdIsoTrack::FrontPos

Position of the 'first' TTrackState of the corresponding ND::TReconTrack.

ND::THandle<ND::TTrackState> frontState =
TrackingUtils::GetFirstState(*track);
isoTrack->FrontPos = frontState->GetPosition();
where the 'first' state is found by ND::TrackingUtils::GetFirstState

Definition at line 105 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

TLorentzVector ND::TSmrdReconModule::TSmrdIsoTrack::FrontPosVariance

Variance on the position of the 'first' TTrackState of the corresponding ND::TReconTrack.

ND::THandle<ND::TTrackState> frontState =
TrackingUtils::GetFirstState(*track);
isoTrack->FrontPosVariance = frontState->GetPositionVariance();
where the 'first' state is found by ND::TrackingUtils::GetFirstState

Definition at line 112 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

int ND::TSmrdReconModule::TSmrdIsoTrack::KalmanStatus

Kalman filter refit result for the corresponding ND::TReconTrack.

Holds '1' if the algorithm was run and has Status kSuccess, otherwise '0'

std::string name("RECPACK_KalmanFilter");
if ((track->GetAlgorithmName().find(name) != std::string::npos) &&
(track->CheckStatus(track->kSuccess))) {
isoTrack->KalmanStatus = 1;
} else {
isoTrack->KalmanStatus = 0;
}

Definition at line 157 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

int ND::TSmrdReconModule::TSmrdIsoTrack::NDOF

The Number of Degrees of Freedom in the reconstruction of the corresponding ND::TReconTrack.

Retreived from ND::TReconBase::GetNDOF

isoTrack->NDOF = track->GetNDOF();

Definition at line 163 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

int ND::TSmrdReconModule::TSmrdIsoTrack::NHits

Number of ND::THits which are associated with the corresponding ND::TReconTrack.

Definition at line 142 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

int ND::TSmrdReconModule::TSmrdIsoTrack::NNodes

Number of TReconNodes which are constituents of the corresponding ND::TReconTrack.

Definition at line 147 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

double ND::TSmrdReconModule::TSmrdIsoTrack::PhiAngle

Polar coordinate phi of the TSmrdIsoTrack::Direction.

isoTrack->PhiAngle = trackState->GetDirection().Phi();

Definition at line 189 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

double ND::TSmrdReconModule::TSmrdIsoTrack::Range

The spacial distance between TSmrdIsoTrack::FrontPos and TSmrdIsoTrack::BackPos.

Definition at line 178 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

int ND::TSmrdReconModule::TSmrdIsoTrack::Status

The reported Status of the corresponding ND::TReconTrack.

Holds kSuccess if the ND::TReconTrack::fStatus has the kSuccess bit set. Uses ND::TReconBase::CheckStatus to check this.

isoTrack->Status = track->CheckStatus(track->kSuccess);

Definition at line 153 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

double ND::TSmrdReconModule::TSmrdIsoTrack::ThetaAngle

Polar coordinate theta of the TSmrdIsoTrack::Direction.

isoTrack->ThetaAngle = trackState->GetDirection().Theta();

Definition at line 185 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

int ND::TSmrdReconModule::TSmrdIsoTrack::TrueFinalDet

For MC events: The subdetector in which TSmrdIsoTrack::TrueFinalPos lies.

isoTrack->TrueFinalDet =
eventAnalysisEnums::PathToSubdetector(gGeoManager->GetPath());

Definition at line 218 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

TLorentzVector ND::TSmrdReconModule::TSmrdIsoTrack::TrueFinalPos

For MC events: The true final position of the corresponding ND::TG4Trajectory.

Uses TSmrdIsoTrack::TrueId to obtain the corresponding ND::TG4Trajectory.

In some cases a given ND::TG4Trajectory may not have been saved in which case this will hold a default value of '{-9999,-9999,-9999,-9999}'.

Definition at line 209 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

double ND::TSmrdReconModule::TSmrdIsoTrack::TrueHitEff

For MC events: The 'completeness' of the ND::THits which make up the corresponding ND::TReconTrack.

Compares to the ND::TG4Trajectory with Id = TSmrdIsoTrack::TrueId via TrackTruthInfo::GetG4TrajIDHits

trueId = TrackTruthInfo::GetG4TrajIDHits(*hits, trueEff, truePurity);
isoTrack->TrueHitEff = trueEff;

Definition at line 268 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

double ND::TSmrdReconModule::TSmrdIsoTrack::TrueHitPurity

For MC events: The 'cleanliness' of the ND::THits which make up the corresponding ND::TReconTrack.

Compares to the ND::TG4Trajectory with Id = TSmrdIsoTrack::TrueId via TrackTruthInfo::GetG4TrajIDHits

trueId = TrackTruthInfo::GetG4TrajIDHits(*hits, trueEff, truePurity);
isoTrack->TrueHitPurity = truePurity;

Definition at line 261 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

int ND::TSmrdReconModule::TSmrdIsoTrack::TrueId

For MC events: The Id of the corresponding ND::TG4Trajectory.

Uses the corresponding ND::TReconTrack's ND::THitSelection and TrackTruthInfo::GetG4TrajIDHits to obtain the corresponding ND::TG4Trajectory.

trueId = TrackTruthInfo::GetG4TrajIDHits(*hits, trueEff, truePurity);
In some cases a given ND::TG4Trajectory may not have been saved in which case this will not correspond to the correct ND::TG4Trajectory but may correspond to a parent ND::TG4Trajectory.

Definition at line 233 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

int ND::TSmrdReconModule::TSmrdIsoTrack::TrueInitDet

For MC events: The subdetector in which TSmrdIsoTrack::TrueInitPos lies.

Uses TSmrdIsoTrack::TrueId to obtain the corresponding ND::TG4Trajectory.

In some cases a given ND::TG4Trajectory may not have been saved in which case this will hold a default value of '{-9999,-9999,-9999,-9999}'.

gGeoManager->FindNode(trueInitPos.X(), trueInitPos.Y(), trueInitPos.Z());

Definition at line 204 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

TLorentzVector ND::TSmrdReconModule::TSmrdIsoTrack::TrueInitMom

For MC events: The true initial momentum of the corresponding ND::TG4Trajectory.

Uses TSmrdIsoTrack::TrueId to obtain the corresponding ND::TG4Trajectory.

In some cases a given ND::TG4Trajectory may not have been saved in which case this will hold a default value of '{-9999,-9999,-9999,-9999}'.

Definition at line 224 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

TLorentzVector ND::TSmrdReconModule::TSmrdIsoTrack::TrueInitPos

For MC events: The true initial position of the corresponding ND::TG4Trajectory.

Definition at line 195 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

int ND::TSmrdReconModule::TSmrdIsoTrack::TrueParentId

For MC events: The Id of the true trajectory's parent ND::TG4Trajectory.

Uses TSmrdIsoTrack::TrueId to obtain the corresponding ND::TG4Trajectory.

In some cases a given ND::TG4Trajectory may not have been saved in which case this will hold a default value of '-999'.

Definition at line 252 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

int ND::TSmrdReconModule::TSmrdIsoTrack::TruePDG

For MC events: The PDG code of the true particle.

Uses TSmrdIsoTrack::TrueId to obtain the corresponding ND::TG4Trajectory.

In some cases a given ND::TG4Trajectory may not have been saved in which case this will hold a default value of '0'.

Definition at line 243 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().

UInt_t ND::TSmrdReconModule::TSmrdIsoTrack::UniqueID

The Unique ID of the corresponding ND::TReconTrack, used for global-subdetector matching.

Definition at line 101 of file TSmrdReconModule.hxx.

Referenced by ND::TSmrdReconModule::FillTree().


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

Package Summary
Package Name: eventAnalysis
Package Version: 7.0-49-g0ac7482
Package Manager:

Generated on Mon Mar 25 2024 14:44:03 for eventAnalysis by doxygen 1.8.5