All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CRTHisto.h
Go to the documentation of this file.
1 #ifndef _sbnanalysis_CRTHisto_hh
2 #define _sbnanalysis_CRTHisto_hh
3 
4 #include <vector>
5 #include <map>
6 
9 
10 #include "../Data/RecoEvent.h"
11 #include "HistoList.h"
12 
13 #include "TFile.h"
14 
15 class TH1D;
16 class TH2D;
17 
18 namespace ana {
19  namespace SBNOsc {
20 /**
21  * Histograms to be filled per track
22  */
23 struct CRTHistos : public HistoList {
24 
25  /**
26  * Initialize this set of histograms
27  * \param postfix The postfix to add to all histogram names
28  */
29  void Initialize(const std::string &postfix, const std::vector<double> &tagger_volume);
30 
31  /**
32  * Fill all of the histograms in this class with a track
33  * \param track The track to fill
34  * \param true_tracks The list of true particles in this event
35  */
36  void Fill(const numu::CRTHit &hit);
37 
38  void Fill(const sbn::crt::CRTHit &hit);
39  void Get(TFile &f, const std::string &postfix);
40 
41 public:
42  TH2D *crt_hits_xy;
43  TH2D *crt_hits_xz;
44  TH2D *crt_hits_yz;
45 };
46  } // namespace SBNOSc
47 } // namespace ana
48 
49 #endif
50 
void Fill(const numu::CRTHit &hit)
Definition: CRTHisto.cc:24
void Get(TFile &f, const std::string &postfix)
Definition: CRTHisto.cc:16
process_name hit
Definition: cheaterreco.fcl:51
process_name opflashCryoW ana
Provides a base class aware of world box coordinates.
void Initialize(const std::string &postfix, const std::vector< double > &tagger_volume)
Definition: CRTHisto.cc:6