16 TH1F* h_h_p, TH1F* h_s_p, TH1F* h_c_p,
17 TH1F* h_h_l, TH1F* h_s_l, TH1F* h_c_l,
18 TH1F* h_h_t, TH1F* h_s_t, TH1F* h_c_t,
19 const unsigned int n_opdet,
24 fTree->SetName(
"ctree");
33 fHypHist_p->SetBins(n_opdet,-0.5,(
float)n_opdet - 0.5);
34 fSimHist_p->SetBins(n_opdet,-0.5,(
float)n_opdet - 0.5);
37 fHypHist_p->SetNameTitle(
"hHypHist_p",
"Hypothesis (Prompt);Opdet;PEs");
38 fSimHist_p->SetNameTitle(
"hSimHist_p",
"SimPhoton (Prompt);Opdet;PEs");
39 fCompareHist_p->SetNameTitle(
"hCompareHist_p",
"Comparison (Hyp - Sim) (Prompt);Opdet;PEs");
67 fHypHist_l->SetBins(n_opdet,-0.5,(
float)n_opdet - 0.5);
68 fSimHist_l->SetBins(n_opdet,-0.5,(
float)n_opdet - 0.5);
71 fHypHist_l->SetNameTitle(
"hHypHist_l",
"Hypothesis (Late);Opdet;PEs");
72 fSimHist_l->SetNameTitle(
"hSimHist_l",
"SimPhoton (Late);Opdet;PEs");
73 fCompareHist_l->SetNameTitle(
"hCompareHist_l",
"Comparison (Hyp - Sim) (Late);Opdet;PEs");
101 fHypHist_t->SetBins(n_opdet,-0.5,(
float)n_opdet - 0.5);
102 fSimHist_t->SetBins(n_opdet,-0.5,(
float)n_opdet - 0.5);
105 fHypHist_t->SetNameTitle(
"hHypHist_t",
"Hypothesis (Total);Opdet;PEs");
106 fSimHist_t->SetNameTitle(
"hSimHist_t",
"SimPhoton (Total);Opdet;PEs");
107 fCompareHist_t->SetNameTitle(
"hCompareHist_t",
"Comparison (Hyp - Sim) (Total);Opdet;PEs");
133 const unsigned int event,
136 const std::vector<float>& posY,
137 const std::vector<float>& posZ)
143 std::cout << (
unsigned int)
fHypHist_p->GetNbinsX() <<
" " << spc.
PromptPhotonVector().size() <<
" " << posY.size() <<
" " << posZ.size() << std::endl;
144 throw std::runtime_error(
"ERROR in FlashHypothesisComparison: Mismatch in vector sizes.");
157 const std::vector<float>& posY,
158 const std::vector<float>& posZ)
186 const std::vector<float>& posY,
187 const std::vector<float>& posZ)
215 std::vector<float> result_p,result_l,result_t;
220 for(
size_t i=0; i<result_p.size(); i++){
void FillSimPhotonCounterInfo(const SimPhotonCounter &, const std::vector< float > &, const std::vector< float > &)
float GetTotalPEsError() const
const FlashHypothesis & GetLateHypothesis() const
const std::vector< float > & PromptPhotonVector() const
void FillComparisonInfo(const FlashHypothesisCollection &, const SimPhotonCounter &)
float GetTotalPEs() const
std::vector< float > TotalPhotonVector() const
void GetPosition(const std::vector< float > &, const std::vector< float > &, float &, float &)
void fill(const art::PtrVector< recob::Hit > &hits, int only_plane)
const FlashHypothesis & GetPromptHypothesis() const
void SetOutputObjects(TTree *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, const unsigned int, bool fill=true)
float CompareByError(const FlashHypothesis &, const std::vector< float > &, std::vector< float > &)
const std::vector< float > & LatePhotonVector() const
float const & GetHypothesis(size_t i_opdet) const
float PromptPhotonTotal() const
void RunComparison(const unsigned int, const unsigned int, const FlashHypothesisCollection &, const SimPhotonCounter &, const std::vector< float > &, const std::vector< float > &)
const FlashHypothesis & GetTotalHypothesis() const
void FillFlashHypothesisInfo(const FlashHypothesisCollection &, const std::vector< float > &, const std::vector< float > &)
size_t GetVectorSize() const
size_t GetVectorSize() const
std::vector< float > const & GetHypothesisVector() const
float LatePhotonTotal() const
Event finding and building.