32 const unsigned int n_opdet,
37 fTree->SetName(
"ctree");
46 fHypHist_p->SetBins(n_opdet, -0.5, (
float)n_opdet - 0.5);
47 fSimHist_p->SetBins(n_opdet, -0.5, (
float)n_opdet - 0.5);
50 fHypHist_p->SetNameTitle(
"hHypHist_p",
"Hypothesis (Prompt);Opdet;PEs");
51 fSimHist_p->SetNameTitle(
"hSimHist_p",
"SimPhoton (Prompt);Opdet;PEs");
52 fCompareHist_p->SetNameTitle(
"hCompareHist_p",
"Comparison (Hyp - Sim) (Prompt);Opdet;PEs");
80 fHypHist_l->SetBins(n_opdet, -0.5, (
float)n_opdet - 0.5);
81 fSimHist_l->SetBins(n_opdet, -0.5, (
float)n_opdet - 0.5);
84 fHypHist_l->SetNameTitle(
"hHypHist_l",
"Hypothesis (Late);Opdet;PEs");
85 fSimHist_l->SetNameTitle(
"hSimHist_l",
"SimPhoton (Late);Opdet;PEs");
86 fCompareHist_l->SetNameTitle(
"hCompareHist_l",
"Comparison (Hyp - Sim) (Late);Opdet;PEs");
114 fHypHist_t->SetBins(n_opdet, -0.5, (
float)n_opdet - 0.5);
115 fSimHist_t->SetBins(n_opdet, -0.5, (
float)n_opdet - 0.5);
118 fHypHist_t->SetNameTitle(
"hHypHist_t",
"Hypothesis (Total);Opdet;PEs");
119 fSimHist_t->SetNameTitle(
"hSimHist_t",
"SimPhoton (Total);Opdet;PEs");
120 fCompareHist_t->SetNameTitle(
"hCompareHist_t",
"Comparison (Hyp - Sim) (Total);Opdet;PEs");
146 const unsigned int event,
149 const std::vector<float>&
posY,
150 const std::vector<float>&
posZ)
156 <<
" " << posY.size() <<
" " << posZ.size() << std::endl;
157 throw std::runtime_error(
"ERROR in FlashHypothesisComparison: Mismatch in vector sizes.");
170 const std::vector<float>&
posY,
171 const std::vector<float>&
posZ)
199 const std::vector<float>&
posY,
200 const std::vector<float>&
posZ)
227 std::vector<float> result_p, result_l, result_t;
232 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.