LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 "SimPhotonCounter.h"
16 #include "FlashUtilities.h"
17 
18 class TTree;
19 class TH1F;
20 
21 namespace opdet{
22 
24 
25  public:
27 
28  void SetOutputObjects(TTree*,
29  TH1F*,TH1F*,TH1F*,
30  TH1F*,TH1F*,TH1F*,
31  TH1F*,TH1F*,TH1F*,
32  const unsigned int,
33  bool fill=true);
34 
35  void RunComparison(const unsigned int,
36  const unsigned int,
38  const SimPhotonCounter&,
39  const std::vector<float>&,
40  const std::vector<float>&);
41 
42  private:
43 
45 
47  const std::vector<float>&,
48  const std::vector<float>&);
49 
51  const std::vector<float>&,
52  const std::vector<float>&);
53 
55  const SimPhotonCounter&);
56 
57  bool fFillTree;
58  TTree* fTree;
59 
60  TH1F* fHypHist_p;
61  TH1F* fSimHist_p;
63  TH1F* fHypHist_l;
64  TH1F* fSimHist_l;
66  TH1F* fHypHist_t;
67  TH1F* fSimHist_t;
69 
70  unsigned int fRun;
71  unsigned int fEvent;
72 
73  float fHypPEs_p;
75  float fSimPEs_p;
76  float fHypY_p;
77  float fSimY_p;
78  float fHypRMSY_p;
79  float fSimRMSY_p;
80  float fHypZ_p;
81  float fSimZ_p;
82  float fHypRMSZ_p;
83  float fSimRMSZ_p;
84  float fCompare_p;
85 
86  float fHypPEs_l;
88  float fSimPEs_l;
89  float fHypY_l;
90  float fSimY_l;
91  float fHypRMSY_l;
92  float fSimRMSY_l;
93  float fHypZ_l;
94  float fSimZ_l;
95  float fHypRMSZ_l;
96  float fSimRMSZ_l;
97  float fCompare_l;
98 
99  float fHypPEs_t;
101  float fSimPEs_t;
102  float fHypY_t;
103  float fSimY_t;
104  float fHypRMSY_t;
105  float fSimRMSY_t;
106  float fHypZ_t;
107  float fSimZ_t;
108  float fHypRMSZ_t;
109  float fSimRMSZ_t;
110  float fCompare_t;
111  };
112 
113 }
114 
115 
116 #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 > &)