#include <FlashHypothesisComparison.h>
|
| FlashHypothesisComparison () |
|
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 > &) |
|
Definition at line 27 of file FlashHypothesisComparison.h.
opdet::FlashHypothesisComparison::FlashHypothesisComparison |
( |
| ) |
|
|
inline |
Definition at line 219 of file FlashHypothesisComparison.cxx.
222 std::vector<float> result_p,result_l,result_t;
227 for(
size_t i=0; i<result_p.size(); i++){
float CompareByError(const FlashHypothesis &, const std::vector< float > &, std::vector< float > &)
void opdet::FlashHypothesisComparison::FillFlashHypothesisInfo |
( |
const FlashHypothesisCollection & |
fhc, |
|
|
const std::vector< float > & |
posY, |
|
|
const std::vector< float > & |
posZ |
|
) |
| |
|
private |
Definition at line 163 of file FlashHypothesisComparison.cxx.
167 fHypPEs_p = fhc.GetPromptHypothesis().GetTotalPEs();
172 for(
size_t i=0; i<fhc.GetVectorSize(); i++)
173 fHypHist_p->SetBinContent(i+1,fhc.GetPromptHypothesis().GetHypothesis(i));
175 fHypPEs_l = fhc.GetLateHypothesis().GetTotalPEs();
180 for(
size_t i=0; i<fhc.GetVectorSize(); i++)
181 fHypHist_l->SetBinContent(i+1,fhc.GetLateHypothesis().GetHypothesis(i));
183 fHypPEs_t = fhc.GetTotalHypothesis().GetTotalPEs();
188 for(
size_t i=0; i<fhc.GetVectorSize(); i++)
189 fHypHist_t->SetBinContent(i+1,fhc.GetLateHypothesis().GetHypothesis(i));
void GetPosition(const std::vector< float > &, const std::vector< float > &, float &, float &)
void opdet::FlashHypothesisComparison::FillSimPhotonCounterInfo |
( |
const SimPhotonCounter & |
spc, |
|
|
const std::vector< float > & |
posY, |
|
|
const std::vector< float > & |
posZ |
|
) |
| |
|
private |
Definition at line 192 of file FlashHypothesisComparison.cxx.
200 for(
size_t i=0; i<spc.PromptPhotonVector().size(); i++)
201 fSimHist_p->SetBinContent(i+1,spc.PromptPhotonVector()[i]);
207 for(
size_t i=0; i<spc.LatePhotonVector().size(); i++)
208 fSimHist_l->SetBinContent(i+1,spc.LatePhotonVector()[i]);
214 for(
size_t i=0; i<spc.GetVectorSize(); i++)
215 fSimHist_t->SetBinContent(i+1,spc.TotalPhotonVector(i));
void GetPosition(const std::vector< float > &, const std::vector< float > &, float &, float &)
void opdet::FlashHypothesisComparison::RunComparison |
( |
const unsigned int |
run, |
|
|
const unsigned int |
event, |
|
|
const FlashHypothesisCollection & |
fhc, |
|
|
const SimPhotonCounter & |
spc, |
|
|
const std::vector< float > & |
posY, |
|
|
const std::vector< float > & |
posZ |
|
) |
| |
Definition at line 139 of file FlashHypothesisComparison.cxx.
146 if(fhc.GetVectorSize() != (
unsigned int)
fHypHist_p->GetNbinsX() ||
147 fhc.GetVectorSize() != spc.PromptPhotonVector().size() ||
148 fhc.GetVectorSize() != posY.size() ||
149 fhc.GetVectorSize() != posZ.size() ){
150 std::cout << (
unsigned int)
fHypHist_p->GetNbinsX() <<
" " << spc.PromptPhotonVector().size() <<
" " << posY.size() <<
" " << posZ.size() << std::endl;
151 throw std::runtime_error(
"ERROR in FlashHypothesisComparison: Mismatch in vector sizes.");
void FillSimPhotonCounterInfo(const SimPhotonCounter &, const std::vector< float > &, const std::vector< float > &)
void FillComparisonInfo(const FlashHypothesisCollection &, const SimPhotonCounter &)
void FillFlashHypothesisInfo(const FlashHypothesisCollection &, const std::vector< float > &, const std::vector< float > &)
BEGIN_PROLOG could also be cout
void opdet::FlashHypothesisComparison::SetOutputObjects |
( |
TTree * |
tree, |
|
|
TH1F * |
h_h_p, |
|
|
TH1F * |
h_s_p, |
|
|
TH1F * |
h_c_p, |
|
|
TH1F * |
h_h_l, |
|
|
TH1F * |
h_s_l, |
|
|
TH1F * |
h_c_l, |
|
|
TH1F * |
h_h_t, |
|
|
TH1F * |
h_s_t, |
|
|
TH1F * |
h_c_t, |
|
|
const unsigned int |
n_opdet, |
|
|
bool |
fill = true |
|
) |
| |
Title: FlashHypothesisComparison Class Author: Wes Ketchum (wketc.nosp@m.hum@.nosp@m.lanl..nosp@m.gov)
Description: Class for comparing a flash hypothesis to MC truth (via SimPhotonCounter). Needs a flash hypothesis and a SimPhotonCounter object as input. Outputs a Tree with relevent info.
Definition at line 22 of file FlashHypothesisComparison.cxx.
31 fTree->SetName(
"ctree");
40 fHypHist_p->SetBins(n_opdet,-0.5,(
float)n_opdet - 0.5);
41 fSimHist_p->SetBins(n_opdet,-0.5,(
float)n_opdet - 0.5);
44 fHypHist_p->SetNameTitle(
"hHypHist_p",
"Hypothesis (Prompt);Opdet;PEs");
45 fSimHist_p->SetNameTitle(
"hSimHist_p",
"SimPhoton (Prompt);Opdet;PEs");
46 fCompareHist_p->SetNameTitle(
"hCompareHist_p",
"Comparison (Hyp - Sim) (Prompt);Opdet;PEs");
74 fHypHist_l->SetBins(n_opdet,-0.5,(
float)n_opdet - 0.5);
75 fSimHist_l->SetBins(n_opdet,-0.5,(
float)n_opdet - 0.5);
78 fHypHist_l->SetNameTitle(
"hHypHist_l",
"Hypothesis (Late);Opdet;PEs");
79 fSimHist_l->SetNameTitle(
"hSimHist_l",
"SimPhoton (Late);Opdet;PEs");
80 fCompareHist_l->SetNameTitle(
"hCompareHist_l",
"Comparison (Hyp - Sim) (Late);Opdet;PEs");
108 fHypHist_t->SetBins(n_opdet,-0.5,(
float)n_opdet - 0.5);
109 fSimHist_t->SetBins(n_opdet,-0.5,(
float)n_opdet - 0.5);
112 fHypHist_t->SetNameTitle(
"hHypHist_t",
"Hypothesis (Total);Opdet;PEs");
113 fSimHist_t->SetNameTitle(
"hSimHist_t",
"SimPhoton (Total);Opdet;PEs");
114 fCompareHist_t->SetNameTitle(
"hCompareHist_t",
"Comparison (Hyp - Sim) (Total);Opdet;PEs");
void fill(const art::PtrVector< recob::Hit > &hits, int only_plane)
float opdet::FlashHypothesisComparison::fCompare_l |
|
private |
float opdet::FlashHypothesisComparison::fCompare_p |
|
private |
float opdet::FlashHypothesisComparison::fCompare_t |
|
private |
TH1F* opdet::FlashHypothesisComparison::fCompareHist_l |
|
private |
TH1F* opdet::FlashHypothesisComparison::fCompareHist_p |
|
private |
TH1F* opdet::FlashHypothesisComparison::fCompareHist_t |
|
private |
unsigned int opdet::FlashHypothesisComparison::fEvent |
|
private |
bool opdet::FlashHypothesisComparison::fFillTree |
|
private |
TH1F* opdet::FlashHypothesisComparison::fHypHist_l |
|
private |
TH1F* opdet::FlashHypothesisComparison::fHypHist_p |
|
private |
TH1F* opdet::FlashHypothesisComparison::fHypHist_t |
|
private |
float opdet::FlashHypothesisComparison::fHypPEs_l |
|
private |
float opdet::FlashHypothesisComparison::fHypPEs_p |
|
private |
float opdet::FlashHypothesisComparison::fHypPEs_t |
|
private |
float opdet::FlashHypothesisComparison::fHypPEsError_l |
|
private |
float opdet::FlashHypothesisComparison::fHypPEsError_p |
|
private |
float opdet::FlashHypothesisComparison::fHypPEsError_t |
|
private |
float opdet::FlashHypothesisComparison::fHypRMSY_l |
|
private |
float opdet::FlashHypothesisComparison::fHypRMSY_p |
|
private |
float opdet::FlashHypothesisComparison::fHypRMSY_t |
|
private |
float opdet::FlashHypothesisComparison::fHypRMSZ_l |
|
private |
float opdet::FlashHypothesisComparison::fHypRMSZ_p |
|
private |
float opdet::FlashHypothesisComparison::fHypRMSZ_t |
|
private |
float opdet::FlashHypothesisComparison::fHypY_l |
|
private |
float opdet::FlashHypothesisComparison::fHypY_p |
|
private |
float opdet::FlashHypothesisComparison::fHypY_t |
|
private |
float opdet::FlashHypothesisComparison::fHypZ_l |
|
private |
float opdet::FlashHypothesisComparison::fHypZ_p |
|
private |
float opdet::FlashHypothesisComparison::fHypZ_t |
|
private |
unsigned int opdet::FlashHypothesisComparison::fRun |
|
private |
TH1F* opdet::FlashHypothesisComparison::fSimHist_l |
|
private |
TH1F* opdet::FlashHypothesisComparison::fSimHist_p |
|
private |
TH1F* opdet::FlashHypothesisComparison::fSimHist_t |
|
private |
float opdet::FlashHypothesisComparison::fSimPEs_l |
|
private |
float opdet::FlashHypothesisComparison::fSimPEs_p |
|
private |
float opdet::FlashHypothesisComparison::fSimPEs_t |
|
private |
float opdet::FlashHypothesisComparison::fSimRMSY_l |
|
private |
float opdet::FlashHypothesisComparison::fSimRMSY_p |
|
private |
float opdet::FlashHypothesisComparison::fSimRMSY_t |
|
private |
float opdet::FlashHypothesisComparison::fSimRMSZ_l |
|
private |
float opdet::FlashHypothesisComparison::fSimRMSZ_p |
|
private |
float opdet::FlashHypothesisComparison::fSimRMSZ_t |
|
private |
float opdet::FlashHypothesisComparison::fSimY_l |
|
private |
float opdet::FlashHypothesisComparison::fSimY_p |
|
private |
float opdet::FlashHypothesisComparison::fSimY_t |
|
private |
float opdet::FlashHypothesisComparison::fSimZ_l |
|
private |
float opdet::FlashHypothesisComparison::fSimZ_p |
|
private |
float opdet::FlashHypothesisComparison::fSimZ_t |
|
private |
TTree* opdet::FlashHypothesisComparison::fTree |
|
private |
The documentation for this class was generated from the following files: