6 #include "../NumuReco/TrackAlgo.h"
12 #define TRACK_HISTO(name, n_bins, lo, hi) name = new TH1D((#name + postfix).c_str(), #name, n_bins, lo, hi); StoreHisto(name)
13 #define TRACK_2DHISTO(name, binx, lo_x, hi_x, biny, lo_y, hi_y) name = new TH2D((#name + postfix).c_str(), #name, binx, lo_x, hi_x, biny, lo_y, hi_y); StoreHisto(name)
68 double min_matchtime_t = -1640;
69 double max_matchtime_t = 3280;
70 int n_matchtime_bins = 1000;
72 double min_comptime = -0.5;
73 double max_comptime = 0.5;
74 int n_comptime_bins = 1000;
92 const std::map<size_t, numu::TrueParticle> &true_particles) {
112 if (is_proton_true || is_muon_true) {
TH1D * chi2_proton_m_muon
Track track
CRT Track match.
TVector3 start_momentum
Particle directional momentum for first trajectory point inside TPC AV [GeV].
bool is_contained
is it contained in the "containment volume"?
float chi2_muon
Chi2 of dE/dx to muon hypotheis. Combined agaisnt all planes.
float chi2_kaon
Chi2 of dE/dx to kaon hypotheis. Combined against all planes.
float distance
//!< Distance from projected track to CRT Hit. Nonsense if present is false.
CRTMatch crt_match
CRTMatch.
bool present
Whether this CRTMatch has a matching track.
TH1D * stopping_chisq_start
#define TRACK_2DHISTO(name, binx, lo_x, hi_x, biny, lo_y, hi_y)
int mcparticle_id
MCParticle ID of the particle this track matches to (same as the ID of the RecoTrack of that particle...
float min_chi2
Minimum chi2 value across all hypotheses.
double MinX() const
Returns the world x coordinate of the start of the box.
TH2D * mcs_p_minus_truth_length
void Fill(const numu::RecoTrack &track, const std::map< size_t, numu::TrueParticle > &true_particles)
double MaxX() const
Returns the world x coordinate of the end of the box.
process_name use argoneut_mc_hitfinder track
void Initialize(const std::string &postfix, const geo::BoxBoundedGeo &detector_volume, double max_length)
process_name opflashCryoW ana
float length
Length of track contained in any TPC active volume [cm].
float stopping_chisq_finish
Chi2 fraction of stopping vs. not-stopping hypotheis to track end point.
float TrackMomentum(const numu::RecoTrack &track)
float RangeMomentum(const numu::RecoTrack &track)
TVector3 start
start position of track
TH2D * lengh_munus_truth_length
float chi2_pion
Chi2 of dE/dx to pion hypotheis. Combined against all planes.
float length
Length of track.
float MCSMomentum(const numu::RecoTrack &track)
double MinZ() const
Returns the world z coordinate of the start of the box.
bool present
Whether this CRTMatch has a matching hit.
float completion
Fraction of energy deposits by true particle matched by this track.
TH1D * stopping_chisq_finish
float stopping_chisq_start
Chi2 fraction of stopping vs. not-stopping hypothesis to track start points.
bool has_match
Whether a track match exists.
#define TRACK_HISTO(name, n_bins, lo, hi)
double MaxY() const
Returns the world y coordinate of the end of the box.
TH2D * range_p_minus_truth_length
TrackTruthMatch match
Truth matching information.
int pid_n_dof
Number of d.o.f. in chi2 fit.
TH1D * has_crt_track_match
A base class aware of world box coordinatesAn object describing a simple shape can inherit from this ...
TH1D * true_start_time_zoom
double MaxZ() const
Returns the world z coordinate of the end of the box.
float angle
Angle between TPC track and CRT track.
TVector3 end
end position of track
TH1D * range_p_minus_truth
int match_pdg
PDG of the MCParticle this track matches to.
Wall wall_enter
the face of the TPC that the particle crosses on enter
Wall wall_exit
the face of the TPC that the particle crosses on exit
double MinY() const
Returns the world y coordinate of the start of the box.
HitMatch hit_match
CRT Hit match.
float start_time
start time of track
float time
Matching time [us] of track. T==0 is set to beam spill start time.
float chi2_proton
Chi2 of dE/dx to proton hypothesis. Combined against all planes.