All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 #include <vector>
22 
23 namespace opdet{
24 
25  class SimPhotonCounter;
26 
28 
29  public:
31 
32  void SetOutputObjects(TTree*,
33  TH1F*,TH1F*,TH1F*,
34  TH1F*,TH1F*,TH1F*,
35  TH1F*,TH1F*,TH1F*,
36  const unsigned int,
37  bool fill=true);
38 
39  void RunComparison(const unsigned int,
40  const unsigned int,
42  const SimPhotonCounter&,
43  const std::vector<float>&,
44  const std::vector<float>&);
45 
46  private:
47 
49 
51  const std::vector<float>&,
52  const std::vector<float>&);
53 
55  const std::vector<float>&,
56  const std::vector<float>&);
57 
59  const SimPhotonCounter&);
60 
61  bool fFillTree;
62  TTree* fTree;
63 
64  TH1F* fHypHist_p;
65  TH1F* fSimHist_p;
67  TH1F* fHypHist_l;
68  TH1F* fSimHist_l;
70  TH1F* fHypHist_t;
71  TH1F* fSimHist_t;
73 
74  unsigned int fRun;
75  unsigned int fEvent;
76 
77  float fHypPEs_p;
79  float fSimPEs_p;
80  float fHypY_p;
81  float fSimY_p;
82  float fHypRMSY_p;
83  float fSimRMSY_p;
84  float fHypZ_p;
85  float fSimZ_p;
86  float fHypRMSZ_p;
87  float fSimRMSZ_p;
88  float fCompare_p;
89 
90  float fHypPEs_l;
92  float fSimPEs_l;
93  float fHypY_l;
94  float fSimY_l;
95  float fHypRMSY_l;
96  float fSimRMSY_l;
97  float fHypZ_l;
98  float fSimZ_l;
99  float fHypRMSZ_l;
100  float fSimRMSZ_l;
101  float fCompare_l;
102 
103  float fHypPEs_t;
105  float fSimPEs_t;
106  float fHypY_t;
107  float fSimY_t;
108  float fHypRMSY_t;
109  float fSimRMSY_t;
110  float fHypZ_t;
111  float fSimZ_t;
112  float fHypRMSZ_t;
113  float fSimRMSZ_t;
114  float fCompare_t;
115  };
116 
117 }
118 
119 
120 #endif
Class def header for a class FlashHypothesis.
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 > &)