Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
larana
larana
OpticalDetector
FlashHypothesisComparison.h
Go to the documentation of this file.
1
#ifndef FLASHHYPOTHESISCOMPARISON_H
2
#define FLASHHYPOTHESISCOMPARISON_H
3
4
/*!
5
* Title: FlashHypothesisComparison Class
6
* Author: Wes Ketchum (wketchum@lanl.gov)
7
*
8
* Description:
9
* Class for comparing a flash hypothesis to MC truth (via SimPhotonCounter).
10
* Needs a flash hypothesis and a SimPhotonCounter object as input.
11
* Outputs a Tree with relevent info.
12
*/
13
14
#include "
FlashHypothesis.h
"
15
#include "
SimPhotonCounter.h
"
16
#include "
FlashUtilities.h
"
17
18
class
TTree;
19
class
TH1F;
20
21
#include <vector>
22
23
namespace
opdet{
24
25
class
SimPhotonCounter;
26
27
class
FlashHypothesisComparison
{
28
29
public
:
30
FlashHypothesisComparison
(){}
31
32
void
SetOutputObjects
(TTree*,
33
TH1F*,TH1F*,TH1F*,
34
TH1F*,TH1F*,TH1F*,
35
TH1F*,TH1F*,TH1F*,
36
const
unsigned
int
,
37
bool
fill
=
true
);
38
39
void
RunComparison
(
const
unsigned
int
,
40
const
unsigned
int
,
41
const
FlashHypothesisCollection
&,
42
const
SimPhotonCounter
&,
43
const
std::vector<float>&,
44
const
std::vector<float>&);
45
46
private
:
47
48
FlashUtilities
fUtil
;
49
50
void
FillFlashHypothesisInfo
(
const
FlashHypothesisCollection
&,
51
const
std::vector<float>&,
52
const
std::vector<float>&);
53
54
void
FillSimPhotonCounterInfo
(
const
SimPhotonCounter
&,
55
const
std::vector<float>&,
56
const
std::vector<float>&);
57
58
void
FillComparisonInfo
(
const
FlashHypothesisCollection
&,
59
const
SimPhotonCounter
&);
60
61
bool
fFillTree
;
62
TTree*
fTree
;
63
64
TH1F*
fHypHist_p
;
65
TH1F*
fSimHist_p
;
66
TH1F*
fCompareHist_p
;
67
TH1F*
fHypHist_l
;
68
TH1F*
fSimHist_l
;
69
TH1F*
fCompareHist_l
;
70
TH1F*
fHypHist_t
;
71
TH1F*
fSimHist_t
;
72
TH1F*
fCompareHist_t
;
73
74
unsigned
int
fRun
;
75
unsigned
int
fEvent
;
76
77
float
fHypPEs_p
;
78
float
fHypPEsError_p
;
79
float
fSimPEs_p
;
80
float
fHypY_p
;
81
float
fSimY_p
;
82
float
fHypRMSY_p
;
83
float
fSimRMSY_p
;
84
float
fHypZ_p
;
85
float
fSimZ_p
;
86
float
fHypRMSZ_p
;
87
float
fSimRMSZ_p
;
88
float
fCompare_p
;
89
90
float
fHypPEs_l
;
91
float
fHypPEsError_l
;
92
float
fSimPEs_l
;
93
float
fHypY_l
;
94
float
fSimY_l
;
95
float
fHypRMSY_l
;
96
float
fSimRMSY_l
;
97
float
fHypZ_l
;
98
float
fSimZ_l
;
99
float
fHypRMSZ_l
;
100
float
fSimRMSZ_l
;
101
float
fCompare_l
;
102
103
float
fHypPEs_t
;
104
float
fHypPEsError_t
;
105
float
fSimPEs_t
;
106
float
fHypY_t
;
107
float
fSimY_t
;
108
float
fHypRMSY_t
;
109
float
fSimRMSY_t
;
110
float
fHypZ_t
;
111
float
fSimZ_t
;
112
float
fHypRMSZ_t
;
113
float
fSimRMSZ_t
;
114
float
fCompare_t
;
115
};
116
117
}
118
119
120
#endif
opdet::FlashHypothesisComparison::fSimHist_t
TH1F * fSimHist_t
Definition:
FlashHypothesisComparison.h:71
opdet::FlashHypothesisComparison::fCompare_p
float fCompare_p
Definition:
FlashHypothesisComparison.h:88
FlashHypothesis.h
Class def header for a class FlashHypothesis.
opdet::FlashHypothesisComparison::fHypZ_l
float fHypZ_l
Definition:
FlashHypothesisComparison.h:97
opdet::FlashHypothesisComparison::fSimZ_t
float fSimZ_t
Definition:
FlashHypothesisComparison.h:111
opdet::FlashHypothesisComparison::fSimHist_l
TH1F * fSimHist_l
Definition:
FlashHypothesisComparison.h:68
opdet::FlashHypothesisComparison::fSimRMSY_l
float fSimRMSY_l
Definition:
FlashHypothesisComparison.h:96
opdet::FlashHypothesisComparison::fHypPEsError_p
float fHypPEsError_p
Definition:
FlashHypothesisComparison.h:78
opdet::FlashHypothesisComparison::fHypPEsError_t
float fHypPEsError_t
Definition:
FlashHypothesisComparison.h:104
opdet::FlashHypothesisComparison::fSimZ_l
float fSimZ_l
Definition:
FlashHypothesisComparison.h:98
opdet::FlashHypothesisComparison::fSimRMSZ_p
float fSimRMSZ_p
Definition:
FlashHypothesisComparison.h:87
opdet::FlashHypothesisComparison::fHypRMSZ_t
float fHypRMSZ_t
Definition:
FlashHypothesisComparison.h:112
opdet::FlashHypothesisComparison::fRun
unsigned int fRun
Definition:
FlashHypothesisComparison.h:74
opdet::FlashHypothesisComparison::FillSimPhotonCounterInfo
void FillSimPhotonCounterInfo(const SimPhotonCounter &, const std::vector< float > &, const std::vector< float > &)
Definition:
FlashHypothesisComparison.cxx:192
opdet::FlashHypothesisComparison::fSimZ_p
float fSimZ_p
Definition:
FlashHypothesisComparison.h:85
opdet::FlashHypothesisComparison::fSimRMSZ_t
float fSimRMSZ_t
Definition:
FlashHypothesisComparison.h:113
opdet::FlashHypothesisComparison::fSimY_t
float fSimY_t
Definition:
FlashHypothesisComparison.h:107
opdet::FlashHypothesisComparison::fSimHist_p
TH1F * fSimHist_p
Definition:
FlashHypothesisComparison.h:65
opdet::FlashHypothesisComparison::FillComparisonInfo
void FillComparisonInfo(const FlashHypothesisCollection &, const SimPhotonCounter &)
Definition:
FlashHypothesisComparison.cxx:219
opdet::FlashHypothesisComparison::fSimRMSY_t
float fSimRMSY_t
Definition:
FlashHypothesisComparison.h:109
opdet::FlashUtilities
Definition:
FlashUtilities.h:22
opdet::FlashHypothesisComparison::fHypY_p
float fHypY_p
Definition:
FlashHypothesisComparison.h:80
opdet::FlashHypothesisComparison::fSimPEs_p
float fSimPEs_p
Definition:
FlashHypothesisComparison.h:79
opdet::FlashHypothesisComparison::fSimY_l
float fSimY_l
Definition:
FlashHypothesisComparison.h:94
opdet::FlashHypothesisComparison::fHypRMSY_t
float fHypRMSY_t
Definition:
FlashHypothesisComparison.h:108
opdet::FlashHypothesisComparison::fSimPEs_t
float fSimPEs_t
Definition:
FlashHypothesisComparison.h:105
SimPhotonCounter.h
opdet::FlashHypothesisComparison::fSimPEs_l
float fSimPEs_l
Definition:
FlashHypothesisComparison.h:92
opdet::FlashHypothesisComparison::fHypY_t
float fHypY_t
Definition:
FlashHypothesisComparison.h:106
opdet::FlashHypothesisComparison::fHypPEs_l
float fHypPEs_l
Definition:
FlashHypothesisComparison.h:90
trkf::fill
void fill(const art::PtrVector< recob::Hit > &hits, int only_plane)
Definition:
KHitContainer.cxx:18
FlashUtilities.h
opdet::FlashHypothesisComparison::fHypPEsError_l
float fHypPEsError_l
Definition:
FlashHypothesisComparison.h:91
opdet::FlashHypothesisComparison::fEvent
unsigned int fEvent
Definition:
FlashHypothesisComparison.h:75
opdet::FlashHypothesisComparison::fTree
TTree * fTree
Definition:
FlashHypothesisComparison.h:62
opdet::FlashHypothesisCollection
Definition:
FlashHypothesis.h:73
opdet::FlashHypothesisComparison::SetOutputObjects
void SetOutputObjects(TTree *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, const unsigned int, bool fill=true)
Definition:
FlashHypothesisComparison.cxx:22
opdet::FlashHypothesisComparison::fCompareHist_t
TH1F * fCompareHist_t
Definition:
FlashHypothesisComparison.h:72
opdet::FlashHypothesisComparison::fCompare_t
float fCompare_t
Definition:
FlashHypothesisComparison.h:114
opdet::FlashHypothesisComparison::fCompareHist_l
TH1F * fCompareHist_l
Definition:
FlashHypothesisComparison.h:69
opdet::FlashHypothesisComparison::fHypRMSY_l
float fHypRMSY_l
Definition:
FlashHypothesisComparison.h:95
opdet::FlashHypothesisComparison::fHypHist_l
TH1F * fHypHist_l
Definition:
FlashHypothesisComparison.h:67
opdet::FlashHypothesisComparison::fSimY_p
float fSimY_p
Definition:
FlashHypothesisComparison.h:81
opdet::FlashHypothesisComparison::fHypPEs_p
float fHypPEs_p
Definition:
FlashHypothesisComparison.h:77
opdet::FlashHypothesisComparison::FlashHypothesisComparison
FlashHypothesisComparison()
Definition:
FlashHypothesisComparison.h:30
opdet::FlashHypothesisComparison::fCompareHist_p
TH1F * fCompareHist_p
Definition:
FlashHypothesisComparison.h:66
opdet::FlashHypothesisComparison::fHypRMSY_p
float fHypRMSY_p
Definition:
FlashHypothesisComparison.h:82
opdet::FlashHypothesisComparison::fHypY_l
float fHypY_l
Definition:
FlashHypothesisComparison.h:93
opdet::SimPhotonCounter
Definition:
SimPhotonCounter.h:22
opdet::FlashHypothesisComparison::fCompare_l
float fCompare_l
Definition:
FlashHypothesisComparison.h:101
opdet::FlashHypothesisComparison::fHypZ_t
float fHypZ_t
Definition:
FlashHypothesisComparison.h:110
opdet::FlashHypothesisComparison::RunComparison
void RunComparison(const unsigned int, const unsigned int, const FlashHypothesisCollection &, const SimPhotonCounter &, const std::vector< float > &, const std::vector< float > &)
Definition:
FlashHypothesisComparison.cxx:139
opdet::FlashHypothesisComparison::fUtil
FlashUtilities fUtil
Definition:
FlashHypothesisComparison.h:48
opdet::FlashHypothesisComparison::fFillTree
bool fFillTree
Definition:
FlashHypothesisComparison.h:61
opdet::FlashHypothesisComparison::fSimRMSZ_l
float fSimRMSZ_l
Definition:
FlashHypothesisComparison.h:100
opdet::FlashHypothesisComparison::FillFlashHypothesisInfo
void FillFlashHypothesisInfo(const FlashHypothesisCollection &, const std::vector< float > &, const std::vector< float > &)
Definition:
FlashHypothesisComparison.cxx:163
opdet::FlashHypothesisComparison::fHypHist_p
TH1F * fHypHist_p
Definition:
FlashHypothesisComparison.h:64
opdet::FlashHypothesisComparison::fHypPEs_t
float fHypPEs_t
Definition:
FlashHypothesisComparison.h:103
opdet::FlashHypothesisComparison
Definition:
FlashHypothesisComparison.h:27
opdet::FlashHypothesisComparison::fSimRMSY_p
float fSimRMSY_p
Definition:
FlashHypothesisComparison.h:83
opdet::FlashHypothesisComparison::fHypHist_t
TH1F * fHypHist_t
Definition:
FlashHypothesisComparison.h:70
opdet::FlashHypothesisComparison::fHypZ_p
float fHypZ_p
Definition:
FlashHypothesisComparison.h:84
opdet::FlashHypothesisComparison::fHypRMSZ_l
float fHypRMSZ_l
Definition:
FlashHypothesisComparison.h:99
opdet::FlashHypothesisComparison::fHypRMSZ_p
float fHypRMSZ_p
Definition:
FlashHypothesisComparison.h:86
Generated by
1.8.5