LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
FlashHypothesisComparison.h
Go to the documentation of this file.
1 #ifndef FLASHHYPOTHESISCOMPARISON_H
2 #define FLASHHYPOTHESISCOMPARISON_H
3 
14 #include "FlashHypothesis.h"
15 #include "FlashUtilities.h"
16 #include "SimPhotonCounter.h"
17 
18 class TTree;
19 class TH1F;
20 
21 #include <vector>
22 
23 namespace opdet {
24 
25  class SimPhotonCounter;
26 
28 
29  public:
31 
32  void SetOutputObjects(TTree*,
33  TH1F*,
34  TH1F*,
35  TH1F*,
36  TH1F*,
37  TH1F*,
38  TH1F*,
39  TH1F*,
40  TH1F*,
41  TH1F*,
42  const unsigned int,
43  bool fill = true);
44 
45  void RunComparison(const unsigned int,
46  const unsigned int,
48  const SimPhotonCounter&,
49  const std::vector<float>&,
50  const std::vector<float>&);
51 
52  private:
54 
56  const std::vector<float>&,
57  const std::vector<float>&);
58 
60  const std::vector<float>&,
61  const std::vector<float>&);
62 
64 
65  bool fFillTree;
66  TTree* fTree;
67 
68  TH1F* fHypHist_p;
69  TH1F* fSimHist_p;
71  TH1F* fHypHist_l;
72  TH1F* fSimHist_l;
74  TH1F* fHypHist_t;
75  TH1F* fSimHist_t;
77 
78  unsigned int fRun;
79  unsigned int fEvent;
80 
81  float fHypPEs_p;
83  float fSimPEs_p;
84  float fHypY_p;
85  float fSimY_p;
86  float fHypRMSY_p;
87  float fSimRMSY_p;
88  float fHypZ_p;
89  float fSimZ_p;
90  float fHypRMSZ_p;
91  float fSimRMSZ_p;
92  float fCompare_p;
93 
94  float fHypPEs_l;
96  float fSimPEs_l;
97  float fHypY_l;
98  float fSimY_l;
99  float fHypRMSY_l;
100  float fSimRMSY_l;
101  float fHypZ_l;
102  float fSimZ_l;
103  float fHypRMSZ_l;
104  float fSimRMSZ_l;
105  float fCompare_l;
106 
107  float fHypPEs_t;
109  float fSimPEs_t;
110  float fHypY_t;
111  float fSimY_t;
112  float fHypRMSY_t;
113  float fSimRMSY_t;
114  float fHypZ_t;
115  float fSimZ_t;
116  float fHypRMSZ_t;
117  float fSimRMSZ_t;
118  float fCompare_t;
119  };
120 
121 }
122 
123 #endif
void FillSimPhotonCounterInfo(const SimPhotonCounter &, const std::vector< float > &, const std::vector< float > &)
void FillComparisonInfo(const FlashHypothesisCollection &, const SimPhotonCounter &)
void fill(const art::PtrVector< recob::Hit > &hits, int only_plane)
void SetOutputObjects(TTree *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, const unsigned int, bool fill=true)
void RunComparison(const unsigned int, const unsigned int, const FlashHypothesisCollection &, const SimPhotonCounter &, const std::vector< float > &, const std::vector< float > &)
void FillFlashHypothesisInfo(const FlashHypothesisCollection &, const std::vector< float > &, const std::vector< float > &)