20 matchCandBench_(mode) {
22 setRange( 0.0, 10e10, -10.0, 10.0, -3.14, 3.14);
68 float etamin,
float etamax,
float phimin,
69 float phimax,
bool metSpHistos) {
73 setRange( ptmin, ptmax, etamin, etamax, phimin, phimax);
100 if (setPS.getParameter<
bool>(
"switchOn")) {
102 setPS.getParameter<int32_t>(
"nBin"),
103 setPS.getParameter<
double>(
"xMin"),
104 setPS.getParameter<
double>(
"xMax"));
106 if (dpxPS.getParameter<
bool>(
"switchOn")) {
108 dpxPS.getParameter<int32_t>(
"nBin"),
109 dpxPS.getParameter<
double>(
"xMin"),
110 dpxPS.getParameter<
double>(
"xMax"));
113 if (dpxPS.getParameter<
bool>(
"switchOn")) {
115 setPS.getParameter<int32_t>(
"nBin"),
116 setPS.getParameter<
double>(
"xMin"),
117 setPS.getParameter<
double>(
"xMax"),
118 dptPS.getParameter<int32_t>(
"nBin"),
119 dptPS.getParameter<
double>(
"xMin"),
120 dptPS.getParameter<
double>(
"xMax"));
122 if (dsetPS.getParameter<
bool>(
"switchOn")) {
124 setPS.getParameter<int32_t>(
"nBin"),
125 setPS.getParameter<
double>(
"xMin"),
126 setPS.getParameter<
double>(
"xMax"),
127 dsetPS.getParameter<int32_t>(
"nBin"),
128 dsetPS.getParameter<
double>(
"xMin"),
129 dsetPS.getParameter<
double>(
"xMax"));
131 if (setOvsetPS.getParameter<
bool>(
"switchOn")) {
133 setPS.getParameter<int32_t>(
"nBin"),
134 setPS.getParameter<
double>(
"xMin"),
135 setPS.getParameter<
double>(
"xMax"),
136 setOvsetPS.getParameter<int32_t>(
"nBin"),
137 setOvsetPS.getParameter<
double>(
"xMin"),
138 setOvsetPS.getParameter<
double>(
"xMax"));
141 if (dpxPS.getParameter<
bool>(
"switchOn")) {
143 setPS.getParameter<int32_t>(
"nBin"),
144 setPS.getParameter<
double>(
"xMin"),
145 setPS.getParameter<
double>(
"xMax"),
146 dptPS.getParameter<
double>(
"xMin"),
147 dptPS.getParameter<
double>(
"xMax"),
"" );
149 setPS.getParameter<int32_t>(
"nBin"),
150 setPS.getParameter<
double>(
"xMin"),
151 setPS.getParameter<
double>(
"xMax"),
152 dptPS.getParameter<
double>(
"xMin"),
153 dptPS.getParameter<
double>(
"xMax"),
"s" );
155 if (dsetPS.getParameter<
bool>(
"switchOn")) {
157 setPS.getParameter<int32_t>(
"nBin"),
158 setPS.getParameter<
double>(
"xMin"),
159 setPS.getParameter<
double>(
"xMax"),
160 dsetPS.getParameter<
double>(
"xMin"),
161 dsetPS.getParameter<
double>(
"xMax"),
"" );
163 setPS.getParameter<int32_t>(
"nBin"),
164 setPS.getParameter<
double>(
"xMin"),
165 setPS.getParameter<
double>(
"xMax"),
166 dsetPS.getParameter<
double>(
"xMin"),
167 dsetPS.getParameter<
double>(
"xMax"),
"s" );
169 if (setOvsetPS.getParameter<
bool>(
"switchOn")) {
171 setPS.getParameter<int32_t>(
"nBin"),
172 setPS.getParameter<
double>(
"xMin"),
173 setPS.getParameter<
double>(
"xMax"),
174 setOvsetPS.getParameter<
double>(
"xMin"),
175 setOvsetPS.getParameter<
double>(
"xMax"),
"" );
177 setPS.getParameter<int32_t>(
"nBin"),
178 setPS.getParameter<
double>(
"xMin"),
179 setPS.getParameter<
double>(
"xMax"),
180 setOvsetPS.getParameter<
double>(
"xMin"),
181 setOvsetPS.getParameter<
double>(
"xMax"),
"s" );
201 px_ =
book1D(
"px_",
"px_;p_{X} (GeV)", pxPS.
n, pxPS.
m, pxPS.
M);
203 sumEt_ =
book1D(
"sumEt_",
"sumEt_;#sumE_{T}", setPS.
n, setPS.
m, setPS.
M);
208 setPS.
n, setPS.
m, setPS.
M,
209 dpxPS.
n, dpxPS.
m, dpxPS.
M );
212 setPS.
n, setPS.
m, setPS.
M,
213 dsetPS.
n, dsetPS.
m, dsetPS.
M );
216 setPS.
n, setPS.
m, setPS.
M,
217 setOvsetPS.
n, setOvsetPS.
m, setOvsetPS.
M );
220 setPS.
n, setPS.
m, setPS.
M,
221 setOvsetPS.
m, setOvsetPS.
M,
"" );
224 setPS.
n, setPS.
m, setPS.
M,
225 setOvsetPS.
m, setOvsetPS.
M,
"" );
229 setPS.
n, setPS.
m, setPS.
M,
230 setOvsetPS.
m, setOvsetPS.
M,
"" );
233 setPS.
n, setPS.
m, setPS.
M,
234 setOvsetPS.
m, setOvsetPS.
M,
"s" );
237 setPS.
n, setPS.
m, setPS.
M,
238 setOvsetPS.
m, setOvsetPS.
M,
"s" );
242 setPS.
n, setPS.
m, setPS.
M,
243 setOvsetPS.
m, setOvsetPS.
M,
"s" );
256 const reco::MET& matchedMet,
float& minVal,
float& maxVal) {
289 float setRes = (met.
sumEt() - matchedMet.
sumEt()) / matchedMet.
sumEt();
290 if (setRes > maxVal) maxVal = setRes;
291 if (setRes < minVal) minVal = setRes;
TProfile * profile_delta_ex_VS_set_
T getParameter(std::string const &) const
void setParameters(Benchmark::Mode mode, float ptmin, float ptmax, float etamin, float etamax, float phimin, float phimax, bool metSpHistos)
set the parameters locally
void setDirectory(TDirectory *dir)
set directory (to use in ROOT)
TProfile * profileRMS_delta_set_VS_set_
TProfile * profile_delta_set_VS_set_
tuple met
____________________________________________________________________________||
void fillOne(const reco::Candidate &candidate, const reco::Candidate &matchedCandidate)
fill histograms with a given particle
virtual float pt() const
transverse momentum
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
void setup()
book histograms
virtual float phi() const
momentum azimuthal angle
void setup()
book histograms
virtual void setDirectory(TDirectory *dir)
TProfile * profileRMS_delta_set_Over_set_VS_set_
TProfile * profileRMS_delta_ex_VS_set_
TH2F * book2D(const char *histname, const char *title, int nbinsx, float xmin, float xmax, int nbinsy, float ymin, float ymax)
book a 2D histogram, either with DQM or plain root.
virtual float eta() const
momentum pseudorapidity
PFMETMonitor(Benchmark::Mode mode=Benchmark::DEFAULT)
void setParameters(Mode mode)
CandidateBenchmark candBench_
void fillOne(const reco::MET &met, const reco::MET &matchedMet, float &minVal, float &maxVal)
TH2F * delta_set_Over_set_VS_set_
virtual double px() const
x coordinate of momentum vector
bool createMETSpecificHistos_
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
TProfile * profile_delta_set_Over_set_VS_set_
void setup()
book histograms
bool isInRange(float pt, float eta, float phi) const
MatchCandidateBenchmark matchCandBench_
virtual double py() const
y coordinate of momentum vector
ParameterSet const & parameterSet(Provenance const &provenance)
TProfile * bookProfile(const char *histname, const char *title, int nbinsx, float xmin, float xmax, float ymin, float ymax, const char *option)
book a TProfile histogram, either with DQM or plain root.
TH1F * book1D(const char *histname, const char *title, int nbins, float xmin, float xmax)
book a 1D histogram, either with DQM or plain root.