All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackHisto.h
Go to the documentation of this file.
1 #ifndef _sbnanalysis_TrackHisto_hh
2 #define _sbnanalysis_TrackHisto_hh
3 
4 #include <vector>
5 #include <map>
6 
8 
9 #include "../Data/RecoEvent.h"
10 #include "HistoList.h"
11 
12 class TH1D;
13 class TH2D;
14 
15 namespace ana {
16  namespace SBNOsc {
17 /**
18  * Histograms to be filled per track
19  */
20 struct TrackHistos : public HistoList {
25 
26  TH1D *chi2_proton;
27  TH1D *chi2_muon;
28  TH1D *chi2_pion;
29  TH1D *chi2_kaon;
30 
32 
33  TH1D *range_p;
34  TH1D *mcs_p;
35 
38 
42 
43 
44  TH1D *length;
45  TH1D *artlength;
46  TH1D *lengthdiff;
48  TH1D *is_contained;
49 
50  TH1D *completion;
51 
52  TH2D *range_p_diff;
53  TH2D *mcs_p_diff;
54 
55  TH2D *range_p_comp;
56  TH2D *mcs_p_comp;
57 
58  TH2D *dQdx_length;
59  TH1D *border_y;
60  TH1D *border_z;
61  TH1D *border_x;
64 
65  TH1D *wall_enter;
66  TH1D *wall_exit;
67 
72 
74 
78 
81 
83 
84  /**
85  * Initialize this set of histograms
86  * \param postfix The postfix to add to all histogram names
87  */
88  void Initialize(const std::string &postfix, const geo::BoxBoundedGeo &detector_volume, double max_length);
89 
90  /**
91  * Fill all of the histograms in this class with a track
92  * \param track The track to fill
93  * \param true_tracks The list of true particles in this event
94  */
95  void Fill(
96  const numu::RecoTrack &track,
97  const std::map<size_t, numu::TrueParticle> &true_particles);
98 
99 };
100  } // namespace SBNOSc
101 } // namespace ana
102 
103 #endif
104 
void Fill(const numu::RecoTrack &track, const std::map< size_t, numu::TrueParticle > &true_particles)
Definition: TrackHisto.cc:90
process_name use argoneut_mc_hitfinder track
void Initialize(const std::string &postfix, const geo::BoxBoundedGeo &detector_volume, double max_length)
Definition: TrackHisto.cc:11
process_name opflashCryoW ana
Provides a base class aware of world box coordinates.
TH2D * range_p_minus_truth_length
Definition: TrackHisto.h:40
A base class aware of world box coordinatesAn object describing a simple shape can inherit from this ...
Definition: BoxBoundedGeo.h:33