65 me.
numerator = ibooker.
book1D(histname+
"_numerator", histtitle+
" (numerator)", nbins, min, max);
66 me.
denominator = ibooker.
book1D(histname+
"_denominator", histtitle+
" (denominator)", nbins, min, max);
70 int nbins = binning.size()-1;
71 std::vector<float> fbinning(binning.begin(),binning.end());
72 float* arr = &fbinning[0];
73 me.
numerator = ibooker.
book1D(histname+
"_numerator", histtitle+
" (numerator)", nbins, arr);
74 me.
denominator = ibooker.
book1D(histname+
"_denominator", histtitle+
" (denominator)", nbins, arr);
78 me.
numerator = ibooker.
bookProfile(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, xmin, xmax, ymin, ymax);
79 me.
denominator = ibooker.
bookProfile(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, xmin, xmax, ymin, ymax);
83 me.
numerator = ibooker.
book2D(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
84 me.
denominator = ibooker.
book2D(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
88 int nbinsX = binningX.size()-1;
89 std::vector<float> fbinningX(binningX.begin(),binningX.end());
90 float* arrX = &fbinningX[0];
91 int nbinsY = binningY.size()-1;
92 std::vector<float> fbinningY(binningY.begin(),binningY.end());
93 float* arrY = &fbinningY[0];
95 me.
numerator = ibooker.
book2D(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, arrX, nbinsY, arrY);
96 me.
denominator = ibooker.
book2D(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, arrX, nbinsY, arrY);
110 if (
isPFJetTrig) {hist_obtag =
"pfjet"; histtitle_obtag =
"PFJet";}
111 else if (
isCaloJetTrig) {hist_obtag =
"calojet"; histtitle_obtag =
"CaloJet"; }
112 else {hist_obtag =
"pfjet"; histtitle_obtag =
"PFJet"; }
124 histname = hist_obtag +
"AbsEtaVsPhi_HEP17"; histtitle = histtitle_obtag +
" |eta| Vs phi (HEP17) ";
128 histname = hist_obtag +
"AbsEtaVsPhi_HEM17"; histtitle = histtitle_obtag +
" |eta| Vs phi (HEM17) ";
132 histname = hist_obtag +
"abseta_HEP17"; histtitle = histtitle_obtag +
" |#eta| (HEP17) ";
136 histname = hist_obtag +
"abseta_HEM17"; histtitle = histtitle_obtag +
" |eta| (HEM17) ";
173 if (ijet->pt()<
ptcut_) {
continue;}
180 if (
v_jetpt.size() < 1) {
return;}
185 FillME(
a_ME,jetpt_,jetphi_,jeteta_,ls,
"denominator");
204 if (
isHEP17( jeteta_, jetphi_ ) )
210 if (
isHEM17( jeteta_, jetphi_ ) )
216 if (
isHEP18( jeteta_, jetphi_ ) )
222 FillME(
a_ME,jetpt_,jetphi_,jeteta_,ls,
"numerator");
242 if (
isHEP17( jeteta_, jetphi_ ) )
248 if (
isHEM17( jeteta_, jetphi_ ) )
254 if (
isHEP18( jeteta_, jetphi_ ) )
263 pset.
add<
unsigned int> (
"nbins");
264 pset.
add<
double>(
"xmin" );
265 pset.
add<
double>(
"xmax" );
270 pset.
add<
unsigned int> (
"nbins", 2500);
284 desc.
add<
int>(
"njets", 0);
285 desc.
add<
int>(
"nelectrons", 0);
286 desc.
add<
double>(
"ptcut", 20);
287 desc.
add<
bool>(
"ispfjettrg",
true);
288 desc.
add<
bool>(
"iscalojettrg",
false);
291 genericTriggerEventPSet.
add<
bool>(
"andOr");
293 genericTriggerEventPSet.add<std::vector<int> >(
"dcsPartitions",{});
294 genericTriggerEventPSet.add<
bool>(
"andOrDcs",
false);
295 genericTriggerEventPSet.add<
bool>(
"errorReplyDcs",
true);
296 genericTriggerEventPSet.add<
std::string>(
"dbLabel",
"");
297 genericTriggerEventPSet.add<
bool>(
"andOrHlt",
true);
299 genericTriggerEventPSet.add<std::vector<std::string> >(
"hltPaths",{});
301 genericTriggerEventPSet.add<
bool>(
"errorReplyHlt",
false);
302 genericTriggerEventPSet.add<
unsigned int>(
"verbosityLevel",1);
314 std::vector<double>
bins = {0.,20.,40.,60.,80.,90.,100.,110.,120.,130.,140.,150.,160.,170.,180.,190.,200.,220.,240.,260.,280.,300.,350.,400.,450.,1000.};
315 histoPSet.add<std::vector<double> >(
"jetptBinning",
bins);
323 descriptions.
add(
"jetMonitoring", desc);
328 if (fabs(eta)<=1.3) output=
true;
335 if (fabs(eta) <= 3.0 && fabs(eta) > 1.3 && (eta < 0) ) output=
true;
342 if (fabs(eta) <= 3.0 && fabs(eta) > 1.3 && (eta > 0) ) output=
true;
348 if (fabs(eta)>3.0) output=
true;
355 if (fabs(eta) <= 3.0 && fabs(eta) > 1.3 && (eta > 0) &&
356 phi > -0.87 && phi <= -0.52 ) {output=
true;}
362 if (fabs(eta) <= 3.0 && fabs(eta) > 1.3 && (eta < 0) &&
363 phi > -0.87 && phi <= -0.52 ) {output=
true;}
370 if (fabs(eta) <= 3.0 && fabs(eta) > 1.3 && (eta > 0) &&
371 phi > -0.52 && phi <= -0.17 ) {output=
true;}
388 if (DenoOrNume ==
"denominator")
400 else if (DenoOrNume ==
"numerator")
411 edm::LogWarning(
"JetMonitor") <<
"CHECK OUT denu option in FillME !!! DenoOrNume ? : " << DenoOrNume << std::endl;
429 if (h_subOptName !=
""){
430 hSubN =
"_"+h_subOptName;
433 if (h_subOptName ==
"HEP17") {
443 if (h_subOptName ==
"HEM17") {
453 if (h_subOptName ==
"HEP18") {
463 hName = h_Name+
"pT"+hSubN;
464 hTitle = h_Title+
" pT " + hSubT;
466 setMETitle(a_me[0], h_Title +
" pT [GeV]",
"events / [GeV]");
468 hName = h_Name+
"pT_pTThresh" + hSubN;
469 hTitle = h_Title+
" pT " + hSubT;
471 setMETitle(a_me[1],h_Title +
"pT [GeV]",
"events / [GeV]");
473 hName = h_Name +
"pTVsLS" + hSubN;
474 hTitle = h_Title+
" vs LS " + hSubT;
476 setMETitle(a_me[2],
"LS",h_Title +
"pT [GeV]");
478 hName = h_Name +
"phi" + hSubN;
479 hTitle = h_Title+
" phi " + hSubT;
480 bookME(Ibooker,a_me[3],hName,hTitle, nbin_phi, minbin_phi,maxbin_phi );
481 setMETitle(a_me[3],h_Title +
" #phi",
"events / 0.1 rad");
483 hName = h_Name +
"eta"+ hSubN;
484 hTitle = h_Title+
" eta " + hSubT;
485 bookME(Ibooker,a_me[4],hName,hTitle, nbin_eta, minbin_eta, maxbin_eta);
486 setMETitle(a_me[4],h_Title +
" #eta",
"events / #eta");
488 hName = h_Name +
"EtaVsPhi"+hSubN;
489 hTitle = h_Title+
" eta Vs phi " + hSubT;
490 bookME(Ibooker,a_me[5],hName,hTitle, nbin_eta, minbin_eta, maxbin_eta, nbin_phi, minbin_phi, maxbin_phi);
493 hName = h_Name +
"EtaVspT"+hSubN;
494 hTitle = h_Title+
" eta Vs pT " + hSubT;
496 setMETitle(a_me[6],h_Title +
" #eta",
"Leading Jet pT [GeV]");
T getParameter(std::string const &) const
JetME jetHEM17_AbsEtaVsPhi_
bool isBarrel(double eta)
bool isHEP17(double eta, double phi)
For Hcal HEP17 Area.
MEbinning eta_binning_hem17_
MEbinning phi_binning_hep17_
JetMonitor(const edm::ParameterSet &)
MonitorElement * bookProfile(Args &&...args)
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
JetME jetHEP17_AbsEtaVsPhi_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
#define DEFINE_FWK_MODULE(type)
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
void bookME(DQMStore::IBooker &, JetME &me, std::string &histname, std::string &histtitle, unsigned int nbins, double xmin, double xmax)
LuminosityBlockNumber_t luminosityBlock() const
MEbinning eta_binning_hep17_
MEbinning phi_binning_hep18_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
MEbinning jet_phi_binning_
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
bool isEndCapM(double eta)
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
MonitorElement * book1D(Args &&...args)
std::vector< double > jetpT_variable_binning_
Abs< T >::type abs(const T &t)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
bool isHEM17(double eta, double phi)
For Hcal HEM17 Area.
MEbinning jetptThr_binning_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< edm::View< reco::Jet > > jetSrc_
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
void FillME(JetME *a_me, double pt_, double phi_, double eta_, int ls_, const std::string &denu)
std::vector< double > v_jetpt
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
std::vector< double > v_jeteta
void bookMESub(DQMStore::IBooker &, JetME *a_me, const int len_, const std::string &h_Name, const std::string &h_Title, const std::string &h_subOptName, std::string h_subOptTitle)
MonitorElement * denominator
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
bool isForward(double eta)
For Hcal Forward Plus Area.
std::vector< double > v_jetphi
MEbinning jet_eta_binning_
static MEbinning getHistoLSPSet(const edm::ParameterSet &pset)
void setMETitle(JetME &me, const std::string &titleX, const std::string &titleY)
MonitorElement * numerator
bool isHEP18(double eta, double phi)
For Hcal HEP18 Area.
bool isEndCapP(double eta)
For Hcal Endcap Plus Area.