All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
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:

art::Assns<recob::Track, recob::Hit, recob::TrackHitMeta>

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 50 of file TrackHitMeta.h.

51  : fIndex(idx), fDx(dx)
52  {}
double fDx
Stored dx size, in centimeters.
Definition: TrackHitMeta.h:72
unsigned int fIndex
Stored index of the hit in the sequence.
Definition: TrackHitMeta.h:71

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 65 of file TrackHitMeta.h.

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

Hit index along the track trajectory.

Definition at line 55 of file TrackHitMeta.h.

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

Member Data Documentation

double recob::TrackHitMeta::fDx = 0.0
private

Stored dx size, in centimeters.

Definition at line 72 of file TrackHitMeta.h.

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

Stored index of the hit in the sequence.

Definition at line 71 of file TrackHitMeta.h.


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