All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RecoTrack.h
Go to the documentation of this file.
1 #ifndef _sbnumurecodata_RecoTrack_hh
2 #define _sbnumurecodata_RecoTrack_hh
3 
4 #include <vector>
5 
6 #include "TVector3.h"
7 
10 
11 namespace numu {
12 
13 struct MCSFitResult {
14  float fwd_mcs_momentum; //!< MCS momentum calculation under hypothesis track is forward
15  float fwd_mcs_momentum_err; //!< MCS momentum calculation fit error under hypothesis track is forward
16  float bwd_mcs_momentum; //!< MCS momentum calculation under hypothesis track is backward
17  float bwd_mcs_momentum_err; //!< MCS momentum calculation fit error under hypothesis track is backward
18  bool mcs_is_backward; //!< Whether the MCS fit calculation believes the track is backwards
19 
21  fwd_mcs_momentum(-1),
23  bwd_mcs_momentum(-1),
26  {}
27 };
28 
29 /**
30 * Information of TPC track objects
31 */
32 struct RecoTrack {
33  float range_momentum_muon; //!< Range momentum calculation of the track using range under the assumption it is a muon [GeV].
34  float range_momentum_proton; //!< Range momentum calculation of track using range using the assumption it is a proton [GeV].
35  MCSFitResult mcs_muon; //!< MCS calculation result for Muon PID hypothesis
36  MCSFitResult mcs_pion; //!< MCS calculation result for Pion PID hypothesis
37  MCSFitResult mcs_proton; //!< MCS calculation result for Proton PID hypothesis
38  MCSFitResult mcs_kaon; //!< MCS calculation result for Kaon PID hypothesis
39 
40  float chi2_proton; //!< Chi2 of dE/dx to proton hypothesis. Combined against all planes.
41  float chi2_kaon; //!< Chi2 of dE/dx to kaon hypotheis. Combined against all planes.
42  float chi2_pion; //!< Chi2 of dE/dx to pion hypotheis. Combined against all planes.
43  float chi2_muon; //!< Chi2 of dE/dx to muon hypotheis. Combined agaisnt all planes.
44  float min_chi2; //!< Minimum chi2 value across all hypotheses
45  int pid_n_dof; //!< Number of d.o.f. in chi2 fit
46  int pdgid; //!< Particle ID that minimizes chi2
47 
48  float length; //!< Length of track
49  float costh; //!< cosine of angle to z axis
50 
51  bool crosses_tpc; //!< does it cross a tpc?
52  bool is_contained; //!< is it contained in the "containment volume"?
53 
54  TVector3 start; //!< start position of track
55  TVector3 end; //!< end position of track
56 
57  TrackTruthMatch match; //!< Truth matching information
58 
59  CRTMatch crt_match; //!< CRTMatch
60 
61  int ID; //!< ID/index of this track. Does not necessarily correspond to the Pandora index
62 
63  float stopping_chisq_start; //!< Chi2 fraction of stopping vs. not-stopping hypothesis to track start points
64  float stopping_chisq_finish; //!< Chi2 fraction of stopping vs. not-stopping hypotheis to track end point.
65 
69  chi2_proton(-1),
70  chi2_kaon(-1),
71  chi2_pion(-1),
72  chi2_muon(-1),
73  min_chi2(-1.5),
74  pid_n_dof(-1),
75  pdgid(-1),
76  length(-1),
77  costh(-999),
80  start(-999, -999, -999),
81  end(-999, -999, -999),
82  crt_match({}),
83  ID(-1),
86  {}
87 };
88 } // namespace numu
89 #endif
int pdgid
Particle ID that minimizes chi2.
Definition: RecoTrack.h:46
bool is_contained
is it contained in the &quot;containment volume&quot;?
Definition: RecoTrack.h:52
float chi2_muon
Chi2 of dE/dx to muon hypotheis. Combined agaisnt all planes.
Definition: RecoTrack.h:43
float chi2_kaon
Chi2 of dE/dx to kaon hypotheis. Combined against all planes.
Definition: RecoTrack.h:41
float bwd_mcs_momentum_err
MCS momentum calculation fit error under hypothesis track is backward.
Definition: RecoTrack.h:17
MCSFitResult mcs_proton
MCS calculation result for Proton PID hypothesis.
Definition: RecoTrack.h:37
MCSFitResult mcs_pion
MCS calculation result for Pion PID hypothesis.
Definition: RecoTrack.h:36
CRTMatch crt_match
CRTMatch.
Definition: RecoTrack.h:59
float min_chi2
Minimum chi2 value across all hypotheses.
Definition: RecoTrack.h:44
bool mcs_is_backward
Whether the MCS fit calculation believes the track is backwards.
Definition: RecoTrack.h:18
float stopping_chisq_finish
Chi2 fraction of stopping vs. not-stopping hypotheis to track end point.
Definition: RecoTrack.h:64
float bwd_mcs_momentum
MCS momentum calculation under hypothesis track is backward.
Definition: RecoTrack.h:16
MCSFitResult mcs_kaon
MCS calculation result for Kaon PID hypothesis.
Definition: RecoTrack.h:38
TVector3 start
start position of track
Definition: RecoTrack.h:54
float range_momentum_muon
Range momentum calculation of the track using range under the assumption it is a muon [GeV]...
Definition: RecoTrack.h:33
stopping_chisq_finish(-1)
Definition: RecoTrack.h:85
float chi2_pion
Chi2 of dE/dx to pion hypotheis. Combined against all planes.
Definition: RecoTrack.h:42
float length
Length of track.
Definition: RecoTrack.h:48
float fwd_mcs_momentum
MCS momentum calculation under hypothesis track is forward.
Definition: RecoTrack.h:14
float stopping_chisq_start
Chi2 fraction of stopping vs. not-stopping hypothesis to track start points.
Definition: RecoTrack.h:63
bool crosses_tpc
does it cross a tpc?
Definition: RecoTrack.h:51
TrackTruthMatch match
Truth matching information.
Definition: RecoTrack.h:57
int pid_n_dof
Number of d.o.f. in chi2 fit.
Definition: RecoTrack.h:45
float range_momentum_proton
Range momentum calculation of track using range using the assumption it is a proton [GeV]...
Definition: RecoTrack.h:34
TVector3 end
end position of track
Definition: RecoTrack.h:55
MCSFitResult mcs_muon
MCS calculation result for Muon PID hypothesis.
Definition: RecoTrack.h:35
int ID
ID/index of this track. Does not necessarily correspond to the Pandora index.
Definition: RecoTrack.h:61
float fwd_mcs_momentum_err
MCS momentum calculation fit error under hypothesis track is forward.
Definition: RecoTrack.h:15
float costh
cosine of angle to z axis
Definition: RecoTrack.h:49
float chi2_proton
Chi2 of dE/dx to proton hypothesis. Combined against all planes.
Definition: RecoTrack.h:40