All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CosmicHisto.h
Go to the documentation of this file.
1 #ifndef _sbnanalysis_CosmicHisto_hh
2 #define _sbnanalysis_CosmicHisto_hh
3 
4 #include <string>
5 #include <vector>
6 #include <map>
7 
9 
10 #include "../Data/TrueParticle.h"
11 #include "../Data/Mode.h"
12 
13 #include "HistoList.h"
14 
15 class TH1D;
16 class TH2D;
17 namespace ana {
18  namespace SBNOsc {
19 
20 /**
21  * Histograms associated with neutrino interactions. Filled for the list of all true
22  * and reco vertices. These histograms are constructed per interaction mode per cut.
23  */
24 struct CosmicHistos : public HistoList {
25 
26  TH1D *momentum;
27  TH1D *enter_time;
29  TH1D *enter_y;
30  TH1D *enter_x;
31  TH1D *enter_z;
32 
33  /**
34  * Intialize the histograms
35  * \param prefix A prefix to be added to each histogram name
36  */
37  void Initialize(const std::string &prefix, const geo::BoxBoundedGeo &detector_volume);
38 
39  /**
40  * Fill the histograms with all cosmic muons in a single event
41  *
42  * \param true_particles The map of true particles in the event
43  */
44  void Fill(const std::map<size_t, numu::TrueParticle> &true_particles);
45 };
46 
47  } // namespace SBNOSc
48 } // namespace ana
49 #endif
process_name opflashCryoW ana
void Fill(const std::map< size_t, numu::TrueParticle > &true_particles)
Definition: CosmicHisto.cc:22
Provides a base class aware of world box coordinates.
void Initialize(const std::string &prefix, const geo::BoxBoundedGeo &detector_volume)
Definition: CosmicHisto.cc:9
A base class aware of world box coordinatesAn object describing a simple shape can inherit from this ...
Definition: BoxBoundedGeo.h:33