LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
recob::TrackHitMeta Class Reference

Data related to recob::Hit associated with recob::Track.The purpose is to collect several variables that do not work well alone inside track class and are related to 2D hits along the 3D trajectory. So in the first place it is the hit index along the trajectory. There is also dx associated to hit to help dE/dx calculations. More...

#include "TrackHitMeta.h"

Public Member Functions

 TrackHitMeta ()=default
 Default needed by ROOT. More...
 
 TrackHitMeta (unsigned int idx, double dx=0.0)
 Constructor with initialization. More...
 
unsigned int Index () const
 Hit index along the track trajectory. More...
 
double Dx () const
 Length of the track segments associated with the 2D hit. More...
 

Private Attributes

unsigned int fIndex = 0U
 Stored index of the hit in the sequence. More...
 
double fDx = 0.0
 Stored dx size, in centimeters. More...
 

Detailed Description

Data related to recob::Hit associated with recob::Track.

The purpose is to collect several variables that do not work well alone inside track class and are related to 2D hits along the 3D trajectory. So in the first place it is the hit index along the trajectory. There is also dx associated to hit to help dE/dx calculations.

Please, add other variables that may fit here. One candidate is 3D position.

PLEASE, remember to add errors on values whenever this is possible to calculate.

The expected association takes the form of:

It is also expected and recommended practice to create the association list sorted by track, as in the one-to-many sequential association definition.

Definition at line 43 of file TrackHitMeta.h.

Constructor & Destructor Documentation

recob::TrackHitMeta::TrackHitMeta ( )
default

Default needed by ROOT.

recob::TrackHitMeta::TrackHitMeta ( unsigned int  idx,
double  dx = 0.0 
)
inline

Constructor with initialization.

Definition at line 49 of file TrackHitMeta.h.

49 : fIndex(idx), fDx(dx) {}
double fDx
Stored dx size, in centimeters.
Definition: TrackHitMeta.h:69
unsigned int fIndex
Stored index of the hit in the sequence.
Definition: TrackHitMeta.h:68

Member Function Documentation

double recob::TrackHitMeta::Dx ( ) const
inline

Length of the track segments associated with the 2D hit.

Returns
lenth of the track segments [cm]

The length is the sum of lengths of the two segments: half-distance to the next hit in the same plane and half-distance to the preceding hit in the same plane.

Definition at line 62 of file TrackHitMeta.h.

References fDx.

62 { return fDx; }
double fDx
Stored dx size, in centimeters.
Definition: TrackHitMeta.h:69
unsigned int recob::TrackHitMeta::Index ( ) const
inline

Hit index along the track trajectory.

Definition at line 52 of file TrackHitMeta.h.

References fIndex.

Referenced by calo::GnocchiCalorimetry::GetLocation(), calo::GnocchiCalorimetry::GetLocationAtWires(), calo::GnocchiCalorimetry::GetPitch(), calo::GnocchiCalorimetry::HitIsValid(), recob::operator<(), and recob::operator<<().

52 { return fIndex; }
unsigned int fIndex
Stored index of the hit in the sequence.
Definition: TrackHitMeta.h:68

Member Data Documentation

double recob::TrackHitMeta::fDx = 0.0
private

Stored dx size, in centimeters.

Definition at line 69 of file TrackHitMeta.h.

Referenced by Dx().

unsigned int recob::TrackHitMeta::fIndex = 0U
private

Stored index of the hit in the sequence.

Definition at line 68 of file TrackHitMeta.h.

Referenced by Index().


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