CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
PFMETMonitor Class Reference

#include <PFMETMonitor.h>

Inheritance diagram for PFMETMonitor:
Benchmark

Public Member Functions

void fillOne (const reco::MET &met, const reco::MET &matchedMet, float &minVal, float &maxVal)
 
void fillOne (const reco::MET &met, const reco::MET &matchedMet, float &minVal, float &maxVal, const edm::ParameterSet &parameterSet)
 
 PFMETMonitor (Benchmark::Mode mode=Benchmark::DEFAULT)
 
void setDirectory (TDirectory *dir)
 set directory (to use in ROOT) More...
 
void setParameters (Benchmark::Mode mode, float ptmin, float ptmax, float etamin, float etamax, float phimin, float phimax, bool metSpHistos)
 set the parameters locally More...
 
void setParameters (const edm::ParameterSet &parameterSet)
 set the parameters accessing them from ParameterSet More...
 
void setup (DQMStore::IBooker &b)
 book histograms More...
 
void setup (DQMStore::IBooker &b, const edm::ParameterSet &parameterSet)
 
virtual ~PFMETMonitor ()
 
- Public Member Functions inherited from Benchmark
 Benchmark (Mode mode=DEFAULT)
 
bool isInRange (float pt, float eta, float phi) const
 
void setParameters (Mode mode)
 
void setRange (float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
 
void write ()
 write to the TFile, in plain ROOT mode. No need to call this function in DQM mode More...
 
virtual ~Benchmark ()
 

Protected Attributes

CandidateBenchmark candBench_
 
bool createMETSpecificHistos_
 
TH1F * delta_ex_
 
TH2F * delta_ex_VS_set_
 
TH2F * delta_set_Over_set_VS_set_
 
TH2F * delta_set_VS_set_
 
bool histogramBooked_
 
MatchCandidateBenchmark matchCandBench_
 
TProfile * profile_delta_ex_VS_set_
 
TProfile * profile_delta_set_Over_set_VS_set_
 
TProfile * profile_delta_set_VS_set_
 
TProfile * profileRMS_delta_ex_VS_set_
 
TProfile * profileRMS_delta_set_Over_set_VS_set_
 
TProfile * profileRMS_delta_set_VS_set_
 
TH1F * px_
 
TH1F * sumEt_
 
- Protected Attributes inherited from Benchmark
TDirectory * dir_
 
float etaMax_
 
float etaMin_
 
Mode mode_
 
float phiMax_
 
float phiMin_
 
float ptMax_
 
float ptMin_
 

Additional Inherited Members

- Public Types inherited from Benchmark
enum  Mode { DEFAULT, DQMOFFLINE, VALIDATION }
 
- Protected Member Functions inherited from Benchmark
TH1F * book1D (DQMStore::IBooker &b, const char *histname, const char *title, int nbins, float xmin, float xmax)
 book a 1D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not. More...
 
TH2F * book2D (DQMStore::IBooker &b, 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 depending if DQM_ has been initialized in a child analyzer or not. More...
 
TH2F * book2D (DQMStore::IBooker &b, const char *histname, const char *title, int nbinsx, float *xbins, int nbinsy, float ymin, float ymax)
 book a 2D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not. More...
 
TProfile * bookProfile (DQMStore::IBooker &b, 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 depending if DQM_ has been initialized in a child analyzer or not. More...
 
TProfile * bookProfile (DQMStore::IBooker &b, const char *histname, const char *title, int nbinsx, float *xbins, float ymin, float ymax, const char *option)
 book a TProfile histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not. More...
 

Detailed Description

Definition at line 11 of file PFMETMonitor.h.

Constructor & Destructor Documentation

PFMETMonitor::PFMETMonitor ( Benchmark::Mode  mode = Benchmark::DEFAULT)

Definition at line 18 of file PFMETMonitor.cc.

References createMETSpecificHistos_, delta_ex_, delta_ex_VS_set_, delta_set_Over_set_VS_set_, delta_set_VS_set_, histogramBooked_, profile_delta_ex_VS_set_, profile_delta_set_Over_set_VS_set_, profile_delta_set_VS_set_, profileRMS_delta_ex_VS_set_, profileRMS_delta_set_Over_set_VS_set_, profileRMS_delta_set_VS_set_, px_, Benchmark::setRange(), and sumEt_.

18  :
19  Benchmark(mode),
20  candBench_(mode),
22 
23  setRange( 0.0, 10e10, -10.0, 10.0, -3.14, 3.14);
24 
25  px_ = 0;
26  sumEt_ = 0;
27  delta_ex_ = 0;
28  delta_ex_VS_set_ = 0;
31 
38 
40  histogramBooked_ = false;
41 }
TH1F * sumEt_
Definition: PFMETMonitor.h:42
TProfile * profile_delta_ex_VS_set_
Definition: PFMETMonitor.h:48
TProfile * profileRMS_delta_set_VS_set_
Definition: PFMETMonitor.h:53
TProfile * profile_delta_set_VS_set_
Definition: PFMETMonitor.h:49
TH2F * delta_ex_VS_set_
Definition: PFMETMonitor.h:44
TH2F * delta_set_VS_set_
Definition: PFMETMonitor.h:45
bool histogramBooked_
Definition: PFMETMonitor.h:61
TH1F * delta_ex_
Definition: PFMETMonitor.h:43
TProfile * profileRMS_delta_set_Over_set_VS_set_
Definition: PFMETMonitor.h:54
TProfile * profileRMS_delta_ex_VS_set_
Definition: PFMETMonitor.h:52
Benchmark(Mode mode=DEFAULT)
Definition: Benchmark.h:41
CandidateBenchmark candBench_
Definition: PFMETMonitor.h:57
TH2F * delta_set_Over_set_VS_set_
Definition: PFMETMonitor.h:46
bool createMETSpecificHistos_
Definition: PFMETMonitor.h:60
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
Definition: Benchmark.h:51
TProfile * profile_delta_set_Over_set_VS_set_
Definition: PFMETMonitor.h:50
MatchCandidateBenchmark matchCandBench_
Definition: PFMETMonitor.h:58
PFMETMonitor::~PFMETMonitor ( )
virtual

Definition at line 47 of file PFMETMonitor.cc.

47 {}

Member Function Documentation

void PFMETMonitor::fillOne ( const reco::MET met,
const reco::MET matchedMet,
float &  minVal,
float &  maxVal 
)

Definition at line 265 of file PFMETMonitor.cc.

References candBench_, createMETSpecificHistos_, delta_ex_, delta_ex_VS_set_, delta_set_Over_set_VS_set_, delta_set_VS_set_, reco::LeafCandidate::eta(), MatchCandidateBenchmark::fillOne(), CandidateBenchmark::fillOne(), histogramBooked_, Benchmark::isInRange(), matchCandBench_, reco::LeafCandidate::phi(), profile_delta_ex_VS_set_, profile_delta_set_Over_set_VS_set_, profile_delta_set_VS_set_, profileRMS_delta_ex_VS_set_, profileRMS_delta_set_Over_set_VS_set_, profileRMS_delta_set_VS_set_, reco::LeafCandidate::pt(), reco::LeafCandidate::px(), px_, reco::LeafCandidate::py(), reco::MET::sumEt(), and sumEt_.

Referenced by PFMETDQMAnalyzer::analyze().

266  {
267 
268  candBench_.fillOne(met); //std::cout <<"\nfillone MET candBench" <<std::endl;
269  matchCandBench_.fillOne(met, matchedMet); //std::cout <<"\nfillone MET MatchCandBench done" <<std::endl;
270 
272  if( !isInRange(met.pt(), met.eta(), met.phi() ) ) return;
273 
274  if (px_) px_->Fill(met.px());
275  if (delta_ex_) {
276  delta_ex_->Fill( met.px() - matchedMet.px() );
277  delta_ex_->Fill( met.py() - matchedMet.py() );
278  }
279  if (sumEt_) sumEt_->Fill( met.sumEt() );
280 
281  if (delta_ex_VS_set_) {
282  delta_ex_VS_set_->Fill( matchedMet.sumEt(), met.px() - matchedMet.px() );
283  delta_ex_VS_set_->Fill( matchedMet.sumEt(), met.py() - matchedMet.py() );
284  profile_delta_ex_VS_set_->Fill( matchedMet.sumEt(), met.px() - matchedMet.px() );
285  profile_delta_ex_VS_set_->Fill( matchedMet.sumEt(), met.py() - matchedMet.py() );
286  profileRMS_delta_ex_VS_set_->Fill( matchedMet.sumEt(), met.px() - matchedMet.px() );
287  profileRMS_delta_ex_VS_set_->Fill( matchedMet.sumEt(), met.py() - matchedMet.py() );
288  }
289  if (delta_set_VS_set_) {
290  delta_set_VS_set_->Fill( matchedMet.sumEt(), met.sumEt() - matchedMet.sumEt() );
291  profile_delta_set_VS_set_->Fill( matchedMet.sumEt(), met.sumEt() - matchedMet.sumEt() );
292  profileRMS_delta_set_VS_set_->Fill( matchedMet.sumEt(), met.sumEt() - matchedMet.sumEt() );
293  }
294  if (delta_set_Over_set_VS_set_ && matchedMet.sumEt()>0.001 ) {
295  float setRes = (met.sumEt() - matchedMet.sumEt()) / matchedMet.sumEt();
296  if (setRes > maxVal) maxVal = setRes;
297  if (setRes < minVal) minVal = setRes;
298  delta_set_Over_set_VS_set_->Fill( matchedMet.sumEt(), setRes );
299  profile_delta_set_Over_set_VS_set_->Fill( matchedMet.sumEt(), setRes );
300  profileRMS_delta_set_Over_set_VS_set_->Fill( matchedMet.sumEt(), setRes );
301  }
302  }
303 }
TH1F * sumEt_
Definition: PFMETMonitor.h:42
TProfile * profile_delta_ex_VS_set_
Definition: PFMETMonitor.h:48
TProfile * profileRMS_delta_set_VS_set_
Definition: PFMETMonitor.h:53
TProfile * profile_delta_set_VS_set_
Definition: PFMETMonitor.h:49
void fillOne(const reco::Candidate &candidate, const reco::Candidate &matchedCandidate)
fill histograms with a given particle
TH2F * delta_ex_VS_set_
Definition: PFMETMonitor.h:44
TH2F * delta_set_VS_set_
Definition: PFMETMonitor.h:45
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
bool histogramBooked_
Definition: PFMETMonitor.h:61
virtual double phi() const final
momentum azimuthal angle
TH1F * delta_ex_
Definition: PFMETMonitor.h:43
TProfile * profileRMS_delta_set_Over_set_VS_set_
Definition: PFMETMonitor.h:54
TProfile * profileRMS_delta_ex_VS_set_
Definition: PFMETMonitor.h:52
double sumEt() const
Definition: MET.h:56
virtual double py() const final
y coordinate of momentum vector
CandidateBenchmark candBench_
Definition: PFMETMonitor.h:57
TH2F * delta_set_Over_set_VS_set_
Definition: PFMETMonitor.h:46
bool createMETSpecificHistos_
Definition: PFMETMonitor.h:60
TProfile * profile_delta_set_Over_set_VS_set_
Definition: PFMETMonitor.h:50
virtual double px() const final
x coordinate of momentum vector
virtual double eta() const final
momentum pseudorapidity
bool isInRange(float pt, float eta, float phi) const
Definition: Benchmark.h:58
MatchCandidateBenchmark matchCandBench_
Definition: PFMETMonitor.h:58
virtual double pt() const final
transverse momentum
void PFMETMonitor::fillOne ( const reco::MET met,
const reco::MET matchedMet,
float &  minVal,
float &  maxVal,
const edm::ParameterSet parameterSet 
)
void PFMETMonitor::setDirectory ( TDirectory *  dir)
virtual

set directory (to use in ROOT)

Reimplemented from Benchmark.

Definition at line 257 of file PFMETMonitor.cc.

References candBench_, matchCandBench_, and Benchmark::setDirectory().

257  {
259 
262 }
virtual void setDirectory(TDirectory *dir)
Definition: Benchmark.cc:18
CandidateBenchmark candBench_
Definition: PFMETMonitor.h:57
dbl *** dir
Definition: mlp_gen.cc:35
MatchCandidateBenchmark matchCandBench_
Definition: PFMETMonitor.h:58
void PFMETMonitor::setParameters ( Benchmark::Mode  mode,
float  ptmin,
float  ptmax,
float  etamin,
float  etamax,
float  phimin,
float  phimax,
bool  metSpHistos 
)

set the parameters locally

Definition at line 73 of file PFMETMonitor.cc.

References candBench_, createMETSpecificHistos_, matchCandBench_, alignBH_cfg::mode, Benchmark::mode_, Benchmark::setParameters(), and Benchmark::setRange().

Referenced by PFMETDQMAnalyzer::PFMETDQMAnalyzer().

75  {
76  mode_ = mode;
77  createMETSpecificHistos_ = metSpHistos;
78 
79  setRange( ptmin, ptmax, etamin, etamax, phimin, phimax);
80 
83 }
void setParameters(Mode mode)
Definition: Benchmark.h:49
CandidateBenchmark candBench_
Definition: PFMETMonitor.h:57
bool createMETSpecificHistos_
Definition: PFMETMonitor.h:60
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
Definition: Benchmark.h:51
double ptmin
Definition: HydjetWrapper.h:90
Mode mode_
Definition: Benchmark.h:105
MatchCandidateBenchmark matchCandBench_
Definition: PFMETMonitor.h:58
void PFMETMonitor::setParameters ( const edm::ParameterSet parameterSet)

set the parameters accessing them from ParameterSet

Definition at line 53 of file PFMETMonitor.cc.

References candBench_, createMETSpecificHistos_, edm::ParameterSet::getParameter(), matchCandBench_, Benchmark::mode_, Benchmark::setParameters(), and Benchmark::setRange().

53  {
54 
55  mode_ = (Benchmark::Mode) parameterSet.getParameter<int>( "mode" );
56  createMETSpecificHistos_ = parameterSet.getParameter<bool>( "CreateMETSpecificHistos" );
57  setRange( parameterSet.getParameter<double>("ptMin"),
58  parameterSet.getParameter<double>("ptMax"),
59  parameterSet.getParameter<double>("etaMin"),
60  parameterSet.getParameter<double>("etaMax"),
61  parameterSet.getParameter<double>("phiMin"),
62  parameterSet.getParameter<double>("phiMax") );
63 
64 
67 }
T getParameter(std::string const &) const
void setParameters(Mode mode)
Definition: Benchmark.h:49
CandidateBenchmark candBench_
Definition: PFMETMonitor.h:57
bool createMETSpecificHistos_
Definition: PFMETMonitor.h:60
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
Definition: Benchmark.h:51
Mode mode_
Definition: Benchmark.h:105
MatchCandidateBenchmark matchCandBench_
Definition: PFMETMonitor.h:58
void PFMETMonitor::setup ( DQMStore::IBooker b)

book histograms

Definition at line 200 of file PFMETMonitor.cc.

References Benchmark::book1D(), Benchmark::book2D(), Benchmark::bookProfile(), candBench_, createMETSpecificHistos_, delta_ex_, delta_ex_VS_set_, delta_set_Over_set_VS_set_, delta_set_VS_set_, histogramBooked_, Benchmark::PhaseSpace::m, Benchmark::PhaseSpace::M, matchCandBench_, Benchmark::PhaseSpace::n, profile_delta_ex_VS_set_, profile_delta_set_Over_set_VS_set_, profile_delta_set_VS_set_, profileRMS_delta_ex_VS_set_, profileRMS_delta_set_Over_set_VS_set_, profileRMS_delta_set_VS_set_, px_, CandidateBenchmark::setup(), MatchCandidateBenchmark::setup(), and sumEt_.

Referenced by PFMETDQMAnalyzer::bookHistograms().

200  {
201  candBench_.setup(b);
203 
205 
206  PhaseSpace pxPS = PhaseSpace( 50, 0, 200);
207  PhaseSpace dpxPS = PhaseSpace( 50, -500, 500);
208  PhaseSpace setPS = PhaseSpace( 50, 0.0, 3000);
209  PhaseSpace dsetPS = PhaseSpace( 50, -1000.0, 1000);
210  PhaseSpace setOvsetPS = PhaseSpace( 100,0., 2.);
211 
212  px_ = book1D(b, "px_", "px_;p_{X} (GeV)", pxPS.n, pxPS.m, pxPS.M);
213  sumEt_ = book1D(b, "sumEt_", "sumEt_;#sumE_{T}", setPS.n, setPS.m, setPS.M);
214  delta_ex_ = book1D(b, "delta_ex_", "#DeltaME_{X}", dpxPS.n, dpxPS.m, dpxPS.M);
215  delta_ex_VS_set_ = book2D(b, "delta_ex_VS_set_", ";SE_{T, true} (GeV);#DeltaE_{X}",
216  setPS.n, setPS.m, setPS.M,
217  dpxPS.n, dpxPS.m, dpxPS.M );
218  delta_set_VS_set_ = book2D(b, "delta_set_VS_set_", ";SE_{T, true} (GeV);#DeltaSE_{T}",
219  setPS.n, setPS.m, setPS.M,
220  dsetPS.n, dsetPS.m, dsetPS.M );
221 
222  delta_set_Over_set_VS_set_ = book2D(b, "delta_set_Over_set_VS_set_", ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
223  setPS.n, setPS.m, setPS.M,
224  setOvsetPS.n, setOvsetPS.m, setOvsetPS.M );
225 
226  // TProfile
227  profile_delta_ex_VS_set_ = bookProfile(b, "profile_delta_ex_VS_set_", ";SE_{T, true} (GeV);#DeltaE_{X}",
228  setPS.n, setPS.m, setPS.M,
229  setOvsetPS.m, setOvsetPS.M, "" );
230 
231  profile_delta_set_VS_set_ = bookProfile(b, "profile_delta_set_VS_set_", ";SE_{T, true} (GeV);#DeltaSE_{T}",
232  setPS.n, setPS.m, setPS.M,
233  setOvsetPS.m, setOvsetPS.M, "" );
234 
235  profile_delta_set_Over_set_VS_set_ = bookProfile(b, "profile_delta_set_Over_set_VS_set_", ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
236  setPS.n, setPS.m, setPS.M,
237  setOvsetPS.m, setOvsetPS.M, "" );
238 
239  // TProfile RMS
240  profileRMS_delta_ex_VS_set_ = bookProfile(b, "profileRMS_delta_ex_VS_set_", ";SE_{T, true} (GeV);#DeltaE_{X}",
241  setPS.n, setPS.m, setPS.M,
242  setOvsetPS.m, setOvsetPS.M, "s" );
243 
244  profileRMS_delta_set_VS_set_ = bookProfile(b, "profileRMS_delta_set_VS_set_", ";SE_{T, true} (GeV);#DeltaSE_{T}",
245  setPS.n, setPS.m, setPS.M,
246  setOvsetPS.m, setOvsetPS.M, "s" );
247 
248 
249  profileRMS_delta_set_Over_set_VS_set_ = bookProfile(b, "profileRMS_delta_set_Over_set_VS_set_", ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
250  setPS.n, setPS.m, setPS.M,
251  setOvsetPS.m, setOvsetPS.M, "s" );
252  histogramBooked_ = true;
253  }
254 }
TH1F * sumEt_
Definition: PFMETMonitor.h:42
TProfile * profile_delta_ex_VS_set_
Definition: PFMETMonitor.h:48
TH1F * book1D(DQMStore::IBooker &b, const char *histname, const char *title, int nbins, float xmin, float xmax)
book a 1D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child ...
Definition: Benchmark.cc:23
TProfile * profileRMS_delta_set_VS_set_
Definition: PFMETMonitor.h:53
TProfile * profile_delta_set_VS_set_
Definition: PFMETMonitor.h:49
TH2F * delta_ex_VS_set_
Definition: PFMETMonitor.h:44
TH2F * delta_set_VS_set_
Definition: PFMETMonitor.h:45
void setup(DQMStore::IBooker &b)
book histograms
bool histogramBooked_
Definition: PFMETMonitor.h:61
TH1F * delta_ex_
Definition: PFMETMonitor.h:43
TProfile * profileRMS_delta_set_Over_set_VS_set_
Definition: PFMETMonitor.h:54
TProfile * profileRMS_delta_ex_VS_set_
Definition: PFMETMonitor.h:52
TH2F * book2D(DQMStore::IBooker &b, 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 depending if DQM_ has been initialized in a child ...
Definition: Benchmark.cc:32
CandidateBenchmark candBench_
Definition: PFMETMonitor.h:57
TH2F * delta_set_Over_set_VS_set_
Definition: PFMETMonitor.h:46
bool createMETSpecificHistos_
Definition: PFMETMonitor.h:60
TProfile * profile_delta_set_Over_set_VS_set_
Definition: PFMETMonitor.h:50
void setup(DQMStore::IBooker &b)
book histograms
MatchCandidateBenchmark matchCandBench_
Definition: PFMETMonitor.h:58
TProfile * bookProfile(DQMStore::IBooker &b, 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 depending if DQM_ has been initialized in a ...
Definition: Benchmark.cc:60
void PFMETMonitor::setup ( DQMStore::IBooker b,
const edm::ParameterSet parameterSet 
)

Definition at line 89 of file PFMETMonitor.cc.

References Benchmark::book1D(), Benchmark::book2D(), Benchmark::bookProfile(), candBench_, createMETSpecificHistos_, delta_ex_, delta_ex_VS_set_, delta_set_Over_set_VS_set_, delta_set_VS_set_, edm::ParameterSet::getParameter(), histogramBooked_, matchCandBench_, profile_delta_ex_VS_set_, profile_delta_set_Over_set_VS_set_, profile_delta_set_VS_set_, profileRMS_delta_ex_VS_set_, profileRMS_delta_set_Over_set_VS_set_, profileRMS_delta_set_VS_set_, px_, CandidateBenchmark::setup(), MatchCandidateBenchmark::setup(), and sumEt_.

89  {
90  candBench_.setup(b, parameterSet);
91  matchCandBench_.setup(b, parameterSet);
92 
94 
95  edm::ParameterSet pxPS = parameterSet.getParameter<edm::ParameterSet>("DeltaPxHistoParameter");
96  edm::ParameterSet dpxPS = parameterSet.getParameter<edm::ParameterSet>("DeltaPxHistoParameter");
97  edm::ParameterSet dptPS = parameterSet.getParameter<edm::ParameterSet>("DeltaPtHistoParameter");
98  edm::ParameterSet setPS = parameterSet.getParameter<edm::ParameterSet>("SumEtHistoParameter");
99  edm::ParameterSet dsetPS = parameterSet.getParameter<edm::ParameterSet>("DeltaSumEtHistoParameter");
100  edm::ParameterSet setOvsetPS = parameterSet.getParameter<edm::ParameterSet>("DeltaSumEtOvSumEtHistoParameter");
101 
102  if (pxPS.getParameter<bool>("switchOn")) {
103  px_ = book1D(b, "px_", "px_;p_{X} (GeV)",
104  pxPS.getParameter<int32_t>("nBin"),
105  pxPS.getParameter<double>("xMin"),
106  pxPS.getParameter<double>("xMax"));
107  }
108  if (setPS.getParameter<bool>("switchOn")) {
109  sumEt_ = book1D(b, "sumEt_", "sumEt_;#sumE_{T}",
110  setPS.getParameter<int32_t>("nBin"),
111  setPS.getParameter<double>("xMin"),
112  setPS.getParameter<double>("xMax"));
113  }
114  if (dpxPS.getParameter<bool>("switchOn")) {
115  delta_ex_ = book1D(b, "delta_ex_", "#DeltaME_{X}",
116  dpxPS.getParameter<int32_t>("nBin"),
117  dpxPS.getParameter<double>("xMin"),
118  dpxPS.getParameter<double>("xMax"));
119  }
120 
121  if (dpxPS.getParameter<bool>("switchOn")) {
122  delta_ex_VS_set_ = book2D(b, "delta_ex_VS_set_", ";SE_{T, true} (GeV);#DeltaE_{X}",
123  setPS.getParameter<int32_t>("nBin"),
124  setPS.getParameter<double>("xMin"),
125  setPS.getParameter<double>("xMax"),
126  dptPS.getParameter<int32_t>("nBin"),
127  dptPS.getParameter<double>("xMin"),
128  dptPS.getParameter<double>("xMax"));
129  }
130  if (dsetPS.getParameter<bool>("switchOn")) {
131  delta_set_VS_set_ = book2D(b, "delta_set_VS_set_", ";SE_{T, true} (GeV);#DeltaSE_{T}",
132  setPS.getParameter<int32_t>("nBin"),
133  setPS.getParameter<double>("xMin"),
134  setPS.getParameter<double>("xMax"),
135  dsetPS.getParameter<int32_t>("nBin"),
136  dsetPS.getParameter<double>("xMin"),
137  dsetPS.getParameter<double>("xMax"));
138  }
139  if (setOvsetPS.getParameter<bool>("switchOn")) {
140  delta_set_Over_set_VS_set_ = book2D(b, "delta_set_Over_set_VS_set_", ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
141  setPS.getParameter<int32_t>("nBin"),
142  setPS.getParameter<double>("xMin"),
143  setPS.getParameter<double>("xMax"),
144  setOvsetPS.getParameter<int32_t>("nBin"),
145  setOvsetPS.getParameter<double>("xMin"),
146  setOvsetPS.getParameter<double>("xMax"));
147  }
148 
149  // TProfile
150  if (dpxPS.getParameter<bool>("switchOn")) {
151  profile_delta_ex_VS_set_ = bookProfile(b, "profile_delta_ex_VS_set_", ";SE_{T, true} (GeV);#DeltaE_{X}",
152  setPS.getParameter<int32_t>("nBin"),
153  setPS.getParameter<double>("xMin"),
154  setPS.getParameter<double>("xMax"),
155  dptPS.getParameter<double>("xMin"),
156  dptPS.getParameter<double>("xMax"), "" );
157  profileRMS_delta_ex_VS_set_ = bookProfile(b, "profileRMS_delta_ex_VS_set_", ";SE_{T, true} (GeV);#DeltaE_{X}",
158  setPS.getParameter<int32_t>("nBin"),
159  setPS.getParameter<double>("xMin"),
160  setPS.getParameter<double>("xMax"),
161  dptPS.getParameter<double>("xMin"),
162  dptPS.getParameter<double>("xMax"), "s" );
163  }
164  if (dsetPS.getParameter<bool>("switchOn")) {
165  profile_delta_set_VS_set_ = bookProfile(b, "profile_delta_set_VS_set_", ";SE_{T, true} (GeV);#DeltaSE_{T}",
166  setPS.getParameter<int32_t>("nBin"),
167  setPS.getParameter<double>("xMin"),
168  setPS.getParameter<double>("xMax"),
169  dsetPS.getParameter<double>("xMin"),
170  dsetPS.getParameter<double>("xMax"), "" );
171  profileRMS_delta_set_VS_set_ = bookProfile(b, "profileRMS_delta_set_VS_set_", ";SE_{T, true} (GeV);#DeltaSE_{T}",
172  setPS.getParameter<int32_t>("nBin"),
173  setPS.getParameter<double>("xMin"),
174  setPS.getParameter<double>("xMax"),
175  dsetPS.getParameter<double>("xMin"),
176  dsetPS.getParameter<double>("xMax"), "s" );
177  }
178  if (setOvsetPS.getParameter<bool>("switchOn")) {
179  profile_delta_set_Over_set_VS_set_ = bookProfile(b, "profile_delta_set_Over_set_VS_set_", ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
180  setPS.getParameter<int32_t>("nBin"),
181  setPS.getParameter<double>("xMin"),
182  setPS.getParameter<double>("xMax"),
183  setOvsetPS.getParameter<double>("xMin"),
184  setOvsetPS.getParameter<double>("xMax"), "" );
185  profileRMS_delta_set_Over_set_VS_set_ = bookProfile(b, "profileRMS_delta_set_Over_set_VS_set_", ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
186  setPS.getParameter<int32_t>("nBin"),
187  setPS.getParameter<double>("xMin"),
188  setPS.getParameter<double>("xMax"),
189  setOvsetPS.getParameter<double>("xMin"),
190  setOvsetPS.getParameter<double>("xMax"), "s" );
191  }
192  histogramBooked_ = true;
193  }
194 }
TH1F * sumEt_
Definition: PFMETMonitor.h:42
TProfile * profile_delta_ex_VS_set_
Definition: PFMETMonitor.h:48
T getParameter(std::string const &) const
TH1F * book1D(DQMStore::IBooker &b, const char *histname, const char *title, int nbins, float xmin, float xmax)
book a 1D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child ...
Definition: Benchmark.cc:23
TProfile * profileRMS_delta_set_VS_set_
Definition: PFMETMonitor.h:53
TProfile * profile_delta_set_VS_set_
Definition: PFMETMonitor.h:49
TH2F * delta_ex_VS_set_
Definition: PFMETMonitor.h:44
TH2F * delta_set_VS_set_
Definition: PFMETMonitor.h:45
void setup(DQMStore::IBooker &b)
book histograms
bool histogramBooked_
Definition: PFMETMonitor.h:61
TH1F * delta_ex_
Definition: PFMETMonitor.h:43
TProfile * profileRMS_delta_set_Over_set_VS_set_
Definition: PFMETMonitor.h:54
TProfile * profileRMS_delta_ex_VS_set_
Definition: PFMETMonitor.h:52
TH2F * book2D(DQMStore::IBooker &b, 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 depending if DQM_ has been initialized in a child ...
Definition: Benchmark.cc:32
CandidateBenchmark candBench_
Definition: PFMETMonitor.h:57
TH2F * delta_set_Over_set_VS_set_
Definition: PFMETMonitor.h:46
bool createMETSpecificHistos_
Definition: PFMETMonitor.h:60
TProfile * profile_delta_set_Over_set_VS_set_
Definition: PFMETMonitor.h:50
void setup(DQMStore::IBooker &b)
book histograms
MatchCandidateBenchmark matchCandBench_
Definition: PFMETMonitor.h:58
TProfile * bookProfile(DQMStore::IBooker &b, 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 depending if DQM_ has been initialized in a ...
Definition: Benchmark.cc:60

Member Data Documentation

CandidateBenchmark PFMETMonitor::candBench_
protected

Definition at line 57 of file PFMETMonitor.h.

Referenced by fillOne(), setDirectory(), setParameters(), and setup().

bool PFMETMonitor::createMETSpecificHistos_
protected

Definition at line 60 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), setParameters(), and setup().

TH1F* PFMETMonitor::delta_ex_
protected

Definition at line 43 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), and setup().

TH2F* PFMETMonitor::delta_ex_VS_set_
protected

Definition at line 44 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), and setup().

TH2F* PFMETMonitor::delta_set_Over_set_VS_set_
protected

Definition at line 46 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), and setup().

TH2F* PFMETMonitor::delta_set_VS_set_
protected

Definition at line 45 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), and setup().

bool PFMETMonitor::histogramBooked_
protected

Definition at line 61 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), and setup().

MatchCandidateBenchmark PFMETMonitor::matchCandBench_
protected

Definition at line 58 of file PFMETMonitor.h.

Referenced by fillOne(), setDirectory(), setParameters(), and setup().

TProfile* PFMETMonitor::profile_delta_ex_VS_set_
protected

Definition at line 48 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), and setup().

TProfile* PFMETMonitor::profile_delta_set_Over_set_VS_set_
protected

Definition at line 50 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), and setup().

TProfile* PFMETMonitor::profile_delta_set_VS_set_
protected

Definition at line 49 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), and setup().

TProfile* PFMETMonitor::profileRMS_delta_ex_VS_set_
protected

Definition at line 52 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), and setup().

TProfile* PFMETMonitor::profileRMS_delta_set_Over_set_VS_set_
protected

Definition at line 54 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), and setup().

TProfile* PFMETMonitor::profileRMS_delta_set_VS_set_
protected

Definition at line 53 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), and setup().

TH1F* PFMETMonitor::px_
protected

Definition at line 41 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), and setup().

TH1F* PFMETMonitor::sumEt_
protected

Definition at line 42 of file PFMETMonitor.h.

Referenced by fillOne(), PFMETMonitor(), and setup().