DUNE StandardRecord
Base object for DUNE analysis files (CAFs)
Loading...
Searching...
No Matches
SRTrack.h
Go to the documentation of this file.
1
7#ifndef DUNEANAOBJ_SRTRACK_H
8#define DUNEANAOBJ_SRTRACK_H
9
10#include "duneanaobj/StandardRecord/SREnums.h"
11#include "duneanaobj/StandardRecord/SRRecoObjBase.h"
13
14namespace caf
15{
16
17 enum TrackRecoMethod
18 {
19 kUnknownTrackReco = 0,
20 kTrackerReco = 1,
21 kGRAINReco = 2
22 };
23
26 {
27 kUnknownInput = 0,
28 kNonVoxelInput = 1,
29 kVoxelInput = 2
30 };
31
32 class SRTrack : public SRRecoObjBase
33 {
34 public:
35 // less typing further below
36 static constexpr float NaN = std::numeric_limits<float>::signaling_NaN();
37
42
43 double time = NaN;
44
45 float Evis = NaN;
46
47 // Track characteristics
48 float qual = NaN;
49
50 short int charge = std::numeric_limits<short int>::lowest();
51
52 float len_gcm2 = NaN;
53 float len_cm = NaN;
54
55 float E = NaN;
56
57 std::vector<TrueParticleID> truth;
58 std::vector<float> truthOverlap;
59 };
60
61}
62
63#if !defined(__GCCXML__) && !defined(__castxml__)
64std::ostream & operator<<(std::ostream & stream, const caf::SRTrack & tr);
65#endif
66
67#endif //DUNEANAOBJ_SRTRACK_H
68
3-vector class with more efficient storage than TVector3. Ported from NOvA StandardRecord.
Base class for reco objects (enables navigation between SRRecoParticle and the underlying object it w...
Definition: SRRecoObjBase.h:18
Definition: SRTrack.h:33
short int charge
Reconstructed charge for the track, expected values are (-1, 0, 1) for negative/neutral/positive trac...
Definition: SRTrack.h:50
SRVector3D dir
Unit vector representing estimate of track direction taken from start point
Definition: SRTrack.h:40
SRVector3D enddir
Unit vector representing estimate of track direction taken from endpoint
Definition: SRTrack.h:41
float qual
Reco-specific quality metric (in TMS, equivalent to "hits in track"/"total hits in event".
Definition: SRTrack.h:48
double time
Time of track formation [ns].
Definition: SRTrack.h:43
float Evis
Visible energy in voxels corresponding to this track.
Definition: SRTrack.h:45
SRVector3D end
Track 3D end point [cm].
Definition: SRTrack.h:39
std::vector< float > truthOverlap
Fractional overlap between this track and true particle.
Definition: SRTrack.h:58
SRVector3D start
Track 3D start point [cm].
Definition: SRTrack.h:38
float E
Track energy estimate in MeV.
Definition: SRTrack.h:55
float len_gcm2
Track length in g/cm2.
Definition: SRTrack.h:52
std::vector< TrueParticleID > truth
Associated SRTrueParticle(s), if relevant (use SRTruthBranch::Particle() with these IDs to grab them)
Definition: SRTrack.h:57
float len_cm
Track length in centimeter (actual physical distance)
Definition: SRTrack.h:53
A 3-vector with more efficient storage than TVector3.
Definition: SRVector3D.h:26
Common Analysis Files.
Definition: Navigate.cxx:8
TrackInputType
What input data type was used to reconstruct this track?
Definition: SRTrack.h:26