FlashHypothesisComparison.h
Go to the documentation of this file.
1 #ifndef FLASHHYPOTHESISCOMPARISON_H
2 #define FLASHHYPOTHESISCOMPARISON_H
3 
4 /*!
5  * Title: FlashHypothesisComparison Class
6  * Author: Wes Ketchum (wketchum@lanl.gov)
7  *
8  * Description:
9  * Class for comparing a flash hypothesis to MC truth (via SimPhotonCounter).
10  * Needs a flash hypothesis and a SimPhotonCounter object as input.
11  * Outputs a Tree with relevent info.
12  */
13 
14 #include "FlashHypothesis.h"
15 #include "SimPhotonCounter.h"
16 #include "FlashUtilities.h"
17 
18 class TTree;
19 class TH1F;
20 
21 namespace opdet{
22 
23  class SimPhotonCounter;
24 
26 
27  public:
29 
30  void SetOutputObjects(TTree*,
31  TH1F*,TH1F*,TH1F*,
32  TH1F*,TH1F*,TH1F*,
33  TH1F*,TH1F*,TH1F*,
34  const unsigned int,
35  bool fill=true);
36 
37  void RunComparison(const unsigned int,
38  const unsigned int,
40  const SimPhotonCounter&,
41  const std::vector<float>&,
42  const std::vector<float>&);
43 
44  private:
45 
47 
49  const std::vector<float>&,
50  const std::vector<float>&);
51 
53  const std::vector<float>&,
54  const std::vector<float>&);
55 
57  const SimPhotonCounter&);
58 
59  bool fFillTree;
60  TTree* fTree;
61 
62  TH1F* fHypHist_p;
63  TH1F* fSimHist_p;
65  TH1F* fHypHist_l;
66  TH1F* fSimHist_l;
68  TH1F* fHypHist_t;
69  TH1F* fSimHist_t;
71 
72  unsigned int fRun;
73  unsigned int fEvent;
74 
75  float fHypPEs_p;
77  float fSimPEs_p;
78  float fHypY_p;
79  float fSimY_p;
80  float fHypRMSY_p;
81  float fSimRMSY_p;
82  float fHypZ_p;
83  float fSimZ_p;
84  float fHypRMSZ_p;
85  float fSimRMSZ_p;
86  float fCompare_p;
87 
88  float fHypPEs_l;
90  float fSimPEs_l;
91  float fHypY_l;
92  float fSimY_l;
93  float fHypRMSY_l;
94  float fSimRMSY_l;
95  float fHypZ_l;
96  float fSimZ_l;
97  float fHypRMSZ_l;
98  float fSimRMSZ_l;
99  float fCompare_l;
100 
101  float fHypPEs_t;
103  float fSimPEs_t;
104  float fHypY_t;
105  float fSimY_t;
106  float fHypRMSY_t;
107  float fSimRMSY_t;
108  float fHypZ_t;
109  float fSimZ_t;
110  float fHypRMSZ_t;
111  float fSimRMSZ_t;
112  float fCompare_t;
113  };
114 
115 }
116 
117 
118 #endif
void FillSimPhotonCounterInfo(const SimPhotonCounter &, const std::vector< float > &, const std::vector< float > &)
void FillComparisonInfo(const FlashHypothesisCollection &, const SimPhotonCounter &)
void SetOutputObjects(TTree *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, const unsigned int, bool fill=true)
def fill(s)
Definition: translator.py:93
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 > &)