All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SRTrack.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SRTrack.h
3 ////////////////////////////////////////////////////////////////////////
4 #ifndef SRTRACK_H
5 #define SRTRACK_H
6 
7 /* #include "sbnanaobj/StandardRecord/SRVector3D.h" */
8 
20 
23 
24 namespace caf
25 {
26  /// Representation of a rb::Track, knows energy and direction, but not a list
27  /// of hits.
28  class SRTrack
29  {
30  public:
31 
32 
33  SRTrack();
34  ~SRTrack(){ }
35 
36  unsigned producer; ///< Index of the producer that produced this object. In ICARUS, this is the same as the cryostat.
37  unsigned short npts; ///< number of points (recob Track.NPoints)
38  float len; ///< track length [cm]
39  float costh; ///< Costh of start direction of track
40  float phi; ///< Angle of the start direction of the track in the x-y plane
41  SRVector3D dir; ///< Direction of track at start
42  SRVector3D dir_end; ///< Direction of track at end
43  SRVector3D start; ///< Start point of track
44  SRVector3D end; ///< End point of track
45  int ID; ///< ID of this track (taken from the pandora particle "ID" of this track)
46 
47  SRTrkChi2PID chi2pid[3]; ///< Per-plane Chi2 Particle ID
48  SRTrackCalo calo[3]; ///< Per-plane Calorimetry information
49  Plane_t bestplane; ///< Plane index with the most hits. -1 if no calorimetry
50 
53 
54  SRTrackTruth truth; ///< truth information
55  SRCRTHitMatch crthit; ///< CRT Hit match
56  SRCRTTrackMatch crttrack; ///< CRT Track match
57  SRPFP pfp; ///< Contains the hierarchy and metadata from Pandora
58 
59  SRTrackScatterClosestApproach scatterClosestApproach; ///< Scattering variables relating to spread about interpolated track
60  SRTrackStoppingChi2Fit stoppingChi2Fit; ///< Fit results from Pol0 and Exp to dEdx vs res. range
61  SRTrackDazzle dazzle; ///< Results from the track PID MVA
62 
63  // TO DO: Move the following into SRObjects
64 
65  /* struct CRTMatch { */
66  /* struct Track { */
67  /* bool present; //!< Whether a CRT track match exists */
68  /* float time; //!< time of the CRT track [mus -- t=0 is spill time] */
69  /* float angle; //!< Angle of the match between the TPC track and the CRT track [rad] */
70  /* }; */
71 
72  /* struct Hit { */
73  /* bool present; //!< Whether a CRT hit match exists */
74  /* float distance; //!< Distance of closest approach between CRT hit and projected TPC track [cm] */
75  /* float time; //!< Time of CRT hit [mus -- t=0 is spill time] */
76  /* }; */
77 
78  /* Track track; //!< CRT track match */
79  /* Hit hit; //!< CRT hit match */
80  /* }; */
81 
82  // CRTMatch crt_match; ///< Matching to CRT information
83 
84  };
85 
86 } // end namespace
87 
88 #endif // SRTRACK_H
89 //////////////////////////////////////////////////////////////////////////////
SRVector3D dir
Direction of track at start.
Definition: SRTrack.h:41
A 3-vector with more efficient storage than TVector3.
Definition: SRVector3D.h:16
Plane_t
Definition: SREnums.h:14
SRPFP pfp
Contains the hierarchy and metadata from Pandora.
Definition: SRTrack.h:57
SRTrkChi2PID chi2pid[3]
Per-plane Chi2 Particle ID.
Definition: SRTrack.h:47
SRTrackDazzle dazzle
Results from the track PID MVA.
Definition: SRTrack.h:61
SRCRTTrackMatch crttrack
CRT Track match.
Definition: SRTrack.h:56
unsigned short npts
number of points (recob Track.NPoints)
Definition: SRTrack.h:37
float phi
Angle of the start direction of the track in the x-y plane.
Definition: SRTrack.h:40
Representation of Track MVA PID outputs.
Definition: SRTrackDazzle.h:9
Representation of the reco momentum and PID a rb::Track from range.
Definition: SRTrkRange.h:10
float costh
Costh of start direction of track.
Definition: SRTrack.h:39
SRTrackScatterClosestApproach scatterClosestApproach
Scattering variables relating to spread about interpolated track.
Definition: SRTrack.h:59
Track PID from dE/dx v. residual range Chi2.
Definition: SRTrkChi2PID.h:10
SRVector3D start
Start point of track.
Definition: SRTrack.h:43
SRTrkMCS mcsP
Definition: SRTrack.h:51
int ID
ID of this track (taken from the pandora particle &quot;ID&quot; of this track)
Definition: SRTrack.h:45
Matching information between a TPC Track and a CRT Hit.
Definition: SRCRTHitMatch.h:13
SRVector3D end
End point of track.
Definition: SRTrack.h:44
Representation of track scattering variables compare to interpolated start and end points...
Calorimetry information.
Definition: SRTrackCalo.h:32
SRTrackTruth truth
truth information
Definition: SRTrack.h:54
SRTrackCalo calo[3]
Per-plane Calorimetry information.
Definition: SRTrack.h:48
float len
track length [cm]
Definition: SRTrack.h:38
SRTrackStoppingChi2Fit stoppingChi2Fit
Fit results from Pol0 and Exp to dEdx vs res. range.
Definition: SRTrack.h:60
Representation of a Pol0 and Exp fit to dEdx vs res. range.
SRVector3D dir_end
Direction of track at end.
Definition: SRTrack.h:42
unsigned producer
Index of the producer that produced this object. In ICARUS, this is the same as the cryostat...
Definition: SRTrack.h:36
SRCRTHitMatch crthit
CRT Hit match.
Definition: SRTrack.h:55
SRTrkRange rangeP
Definition: SRTrack.h:52
Plane_t bestplane
Plane index with the most hits. -1 if no calorimetry.
Definition: SRTrack.h:49
Representation of a rb::PFParticle, with hierarchy and Pandora metadata.
Definition: SRPFP.h:13
Matching information between a TPC Track and a CRT Track.