LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "FlashHypothesisComparison.h"
Public Member Functions | |
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 > &) |
Private Member Functions | |
void | FillFlashHypothesisInfo (const FlashHypothesisCollection &, const std::vector< float > &, const std::vector< float > &) |
void | FillSimPhotonCounterInfo (const SimPhotonCounter &, const std::vector< float > &, const std::vector< float > &) |
void | FillComparisonInfo (const FlashHypothesisCollection &, const SimPhotonCounter &) |
Private Attributes | |
FlashUtilities | fUtil |
bool | fFillTree |
TTree * | fTree |
TH1F * | fHypHist_p |
TH1F * | fSimHist_p |
TH1F * | fCompareHist_p |
TH1F * | fHypHist_l |
TH1F * | fSimHist_l |
TH1F * | fCompareHist_l |
TH1F * | fHypHist_t |
TH1F * | fSimHist_t |
TH1F * | fCompareHist_t |
unsigned int | fRun |
unsigned int | fEvent |
float | fHypPEs_p |
float | fHypPEsError_p |
float | fSimPEs_p |
float | fHypY_p |
float | fSimY_p |
float | fHypRMSY_p |
float | fSimRMSY_p |
float | fHypZ_p |
float | fSimZ_p |
float | fHypRMSZ_p |
float | fSimRMSZ_p |
float | fCompare_p |
float | fHypPEs_l |
float | fHypPEsError_l |
float | fSimPEs_l |
float | fHypY_l |
float | fSimY_l |
float | fHypRMSY_l |
float | fSimRMSY_l |
float | fHypZ_l |
float | fSimZ_l |
float | fHypRMSZ_l |
float | fSimRMSZ_l |
float | fCompare_l |
float | fHypPEs_t |
float | fHypPEsError_t |
float | fSimPEs_t |
float | fHypY_t |
float | fSimY_t |
float | fHypRMSY_t |
float | fSimRMSY_t |
float | fHypZ_t |
float | fSimZ_t |
float | fHypRMSZ_t |
float | fSimRMSZ_t |
float | fCompare_t |
Definition at line 23 of file FlashHypothesisComparison.h.
|
inline |
Definition at line 26 of file FlashHypothesisComparison.h.
References trkf::fill(), RunComparison(), and SetOutputObjects().
|
private |
Definition at line 212 of file FlashHypothesisComparison.cxx.
References opdet::FlashUtilities::CompareByError(), fCompare_l, fCompare_p, fCompare_t, fCompareHist_l, fCompareHist_p, fCompareHist_t, fUtil, opdet::FlashHypothesisCollection::GetLateHypothesis(), opdet::FlashHypothesisCollection::GetPromptHypothesis(), opdet::FlashHypothesisCollection::GetTotalHypothesis(), opdet::SimPhotonCounter::LatePhotonVector(), opdet::SimPhotonCounter::PromptPhotonVector(), and opdet::SimPhotonCounter::TotalPhotonVector().
Referenced by RunComparison().
|
private |
Definition at line 156 of file FlashHypothesisComparison.cxx.
References fHypHist_l, fHypHist_p, fHypHist_t, fHypPEs_l, fHypPEs_p, fHypPEs_t, fHypPEsError_l, fHypPEsError_p, fHypPEsError_t, fHypRMSY_l, fHypRMSY_p, fHypRMSY_t, fHypRMSZ_l, fHypRMSZ_p, fHypRMSZ_t, fHypY_l, fHypY_p, fHypY_t, fHypZ_l, fHypZ_p, fHypZ_t, fUtil, opdet::FlashHypothesis::GetHypothesis(), opdet::FlashHypothesis::GetHypothesisVector(), opdet::FlashHypothesisCollection::GetLateHypothesis(), opdet::FlashUtilities::GetPosition(), opdet::FlashHypothesisCollection::GetPromptHypothesis(), opdet::FlashHypothesisCollection::GetTotalHypothesis(), opdet::FlashHypothesis::GetTotalPEs(), opdet::FlashHypothesis::GetTotalPEsError(), and opdet::FlashHypothesisCollection::GetVectorSize().
Referenced by RunComparison().
|
private |
Definition at line 185 of file FlashHypothesisComparison.cxx.
References fSimHist_l, fSimHist_p, fSimHist_t, fSimPEs_l, fSimPEs_p, fSimPEs_t, fSimRMSY_l, fSimRMSY_p, fSimRMSY_t, fSimRMSZ_l, fSimRMSZ_p, fSimRMSZ_t, fSimY_l, fSimY_p, fSimY_t, fSimZ_l, fSimZ_p, fSimZ_t, fUtil, opdet::FlashUtilities::GetPosition(), opdet::SimPhotonCounter::GetVectorSize(), opdet::SimPhotonCounter::LatePhotonTotal(), opdet::SimPhotonCounter::LatePhotonVector(), opdet::SimPhotonCounter::PromptPhotonTotal(), opdet::SimPhotonCounter::PromptPhotonVector(), and opdet::SimPhotonCounter::TotalPhotonVector().
Referenced by RunComparison().
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 132 of file FlashHypothesisComparison.cxx.
References fEvent, fFillTree, fHypHist_p, FillComparisonInfo(), FillFlashHypothesisInfo(), FillSimPhotonCounterInfo(), fRun, fTree, opdet::FlashHypothesisCollection::GetVectorSize(), and opdet::SimPhotonCounter::PromptPhotonVector().
Referenced by FlashHypothesisComparison(), and opdet::FlashHypothesisAnaAlg::RunComparison().
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) hum@ lanl. 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 15 of file FlashHypothesisComparison.cxx.
References fCompare_l, fCompare_p, fCompare_t, fCompareHist_l, fCompareHist_p, fCompareHist_t, fEvent, fFillTree, fHypHist_l, fHypHist_p, fHypHist_t, fHypPEs_l, fHypPEs_p, fHypPEs_t, fHypPEsError_l, fHypPEsError_p, fHypPEsError_t, fHypRMSY_l, fHypRMSY_p, fHypRMSY_t, fHypRMSZ_l, fHypRMSZ_p, fHypRMSZ_t, fHypY_l, fHypY_p, fHypY_t, fHypZ_l, fHypZ_p, fHypZ_t, trkf::fill(), fRun, fSimHist_l, fSimHist_p, fSimHist_t, fSimPEs_l, fSimPEs_p, fSimPEs_t, fSimRMSY_l, fSimRMSY_p, fSimRMSY_t, fSimRMSZ_l, fSimRMSZ_p, fSimRMSZ_t, fSimY_l, fSimY_p, fSimY_t, fSimZ_l, fSimZ_p, fSimZ_t, and fTree.
Referenced by FlashHypothesisComparison(), and opdet::FlashHypothesisAnaAlg::SetOutputObjects().
|
private |
Definition at line 97 of file FlashHypothesisComparison.h.
Referenced by FillComparisonInfo(), and SetOutputObjects().
|
private |
Definition at line 84 of file FlashHypothesisComparison.h.
Referenced by FillComparisonInfo(), and SetOutputObjects().
|
private |
Definition at line 110 of file FlashHypothesisComparison.h.
Referenced by FillComparisonInfo(), and SetOutputObjects().
|
private |
Definition at line 65 of file FlashHypothesisComparison.h.
Referenced by FillComparisonInfo(), and SetOutputObjects().
|
private |
Definition at line 62 of file FlashHypothesisComparison.h.
Referenced by FillComparisonInfo(), and SetOutputObjects().
|
private |
Definition at line 68 of file FlashHypothesisComparison.h.
Referenced by FillComparisonInfo(), and SetOutputObjects().
|
private |
Definition at line 71 of file FlashHypothesisComparison.h.
Referenced by RunComparison(), and SetOutputObjects().
|
private |
Definition at line 57 of file FlashHypothesisComparison.h.
Referenced by RunComparison(), and SetOutputObjects().
|
private |
Definition at line 63 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 60 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), RunComparison(), and SetOutputObjects().
|
private |
Definition at line 66 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 86 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 73 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 99 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 87 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 74 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 100 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 91 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 78 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 104 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 95 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 82 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 108 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 89 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 76 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 102 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 93 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 80 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 106 of file FlashHypothesisComparison.h.
Referenced by FillFlashHypothesisInfo(), and SetOutputObjects().
|
private |
Definition at line 70 of file FlashHypothesisComparison.h.
Referenced by RunComparison(), and SetOutputObjects().
|
private |
Definition at line 64 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 61 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 67 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 88 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 75 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 101 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 92 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 79 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 105 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 96 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 83 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 109 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 90 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 77 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 103 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 94 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 81 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 107 of file FlashHypothesisComparison.h.
Referenced by FillSimPhotonCounterInfo(), and SetOutputObjects().
|
private |
Definition at line 58 of file FlashHypothesisComparison.h.
Referenced by RunComparison(), and SetOutputObjects().
|
private |
Definition at line 44 of file FlashHypothesisComparison.h.
Referenced by FillComparisonInfo(), FillFlashHypothesisInfo(), and FillSimPhotonCounterInfo().