8 : folderName_(iConfig.getParameter<
std::
string>(
"FolderName")),
11 jetE_variable_binning_(
12 iConfig.getParameter<
edm::
ParameterSet>(
"histoPSet").getParameter<
std::vector<double> >(
"jetEBinning")),
13 jetE_binning_(getHistoPSet(
15 jetEta_binning_(getHistoPSet(
17 jetPhi_binning_(getHistoPSet(
19 muonPt_variable_binning_(
20 iConfig.getParameter<
edm::
ParameterSet>(
"histoPSet").getParameter<
std::vector<double> >(
"muonPtBinning")),
21 muonPt_binning_(getHistoPSet(
23 muonEta_binning_(getHistoPSet(
25 muonPhi_binning_(getHistoPSet(
29 bx_binning_(getHistoLSPSet(
32 iConfig.getParameter<
edm::
ParameterSet>(
"numGenericTriggerEventPSet"), consumesCollector(), *this)),
34 iConfig.getParameter<
edm::
ParameterSet>(
"denGenericTriggerEventPSet"), consumesCollector(), *this)),
35 jetSelection_(iConfig.getParameter<
std::
string>(
"jetSelection")),
36 muonSelection_(iConfig.getParameter<
std::
string>(
"muonSelection")),
37 njets_(iConfig.getParameter<unsigned
int>(
"njets")),
38 nmuons_(iConfig.getParameter<unsigned
int>(
"nmuons")) {
101 me.
numerator = ibooker.
book1D(histname +
"_numerator", histtitle +
" (numerator)", nbins, min, max);
102 me.
denominator = ibooker.
book1D(histname +
"_denominator", histtitle +
" (denominator)", nbins, min, max);
108 const std::vector<double>&
binning) {
109 int nbins = binning.size() - 1;
110 std::vector<float> fbinning(binning.begin(), binning.end());
111 float* arr = &fbinning[0];
112 me.
numerator = ibooker.
book1D(histname +
"_numerator", histtitle +
" (numerator)", nbins, arr);
113 me.
denominator = ibooker.
book1D(histname +
"_denominator", histtitle +
" (denominator)", nbins, arr);
126 ibooker.
bookProfile(histname +
"_numerator", histtitle +
" (numerator)", nbinsX, xmin, xmax, ymin, ymax);
129 ibooker.
bookProfile(histname +
"_denominator", histtitle +
" (denominator)", nbinsX, xmin, xmax, ymin, ymax);
142 ibooker.
book2D(histname +
"_numerator", histtitle +
" (numerator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
144 ibooker.
book2D(histname +
"_denominator", histtitle +
" (denominator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
150 const std::vector<double>& binningX,
151 const std::vector<double>& binningY) {
152 int nbinsX = binningX.size() - 1;
153 std::vector<float> fbinningX(binningX.begin(), binningX.end());
154 float* arrX = &fbinningX[0];
155 int nbinsY = binningY.size() - 1;
156 std::vector<float> fbinningY(binningY.begin(), binningY.end());
157 float* arrY = &fbinningY[0];
159 me.
numerator = ibooker.
book2D(histname +
"_numerator", histtitle +
" (numerator)", nbinsX, arrX, nbinsY, arrY);
160 me.
denominator = ibooker.
book2D(histname +
"_denominator", histtitle +
" (denominator)", nbinsX, arrX, nbinsY, arrY);
176 histname =
"jetE_variable";
182 histname =
"jetEVsLS";
183 histtitle =
"jetE vs LS";
197 histname =
"jetEVsBX";
198 histtitle =
"jetE vs BX";
213 histtitle =
"jetEta";
219 histname =
"jetEtaVsLS";
220 histtitle =
"jetEta vs LS";
234 histname =
"jetEtaVsBX";
235 histtitle =
"jetEta vs BX";
250 histtitle =
"jetPhi";
256 histname =
"jetPhiVsLS";
257 histtitle =
"jetPhi vs LS";
271 histname =
"jetPhiVsBX";
272 histtitle =
"jetPhi vs BX";
287 histtitle =
"muonPt";
293 histname =
"muonPt_variable";
294 histtitle =
"muonPt";
299 histname =
"muonPtVsLS";
300 histtitle =
"muonPt vs LS";
314 histname =
"muonPtVsBX";
315 histtitle =
"muonPt vs BX";
329 histname =
"muonEta";
330 histtitle =
"muonEta";
341 histname =
"muonEtaVsLS";
342 histtitle =
"muonEta vs LS";
356 histname =
"muonEtaVsBX";
357 histtitle =
"muonEta vs BX";
371 histname =
"muonPhi";
372 histtitle =
"muonPhi";
383 histname =
"muonPhiVsLS";
384 histtitle =
"muonPhi vs LS";
398 histname =
"muonPhiVsBX";
399 histtitle =
"muonPhi vs BX";
430 std::vector<reco::CaloJet>
jets;
431 if ((
unsigned int)(jetHandle->size()) <
njets_)
433 for (
auto const&
j : *jetHandle) {
437 if ((
unsigned int)(jets.size()) <
njets_)
443 jetE = jets[0].energy();
444 jetEta = jets[0].eta();
445 jetPhi = jets[0].phi();
450 if ((
unsigned int)(DSAHandle->size()) <
nmuons_)
452 std::vector<reco::Track>
muons;
453 for (
auto const&
m : *DSAHandle) {
457 if ((
unsigned int)(muons.size()) <
nmuons_)
462 if (!muons.empty()) {
463 muonPt = muons[0].pt();
464 muonEta = muons[0].eta();
465 muonPhi = muons[0].phi();
505 pset.
add<
unsigned int>(
"nbins", 200);
506 pset.
add<
double>(
"xmin", -0.5);
507 pset.
add<
double>(
"xmax", 19999.5);
511 pset.
add<
unsigned int>(
"nbins", 2000);
522 desc.
add<
unsigned int>(
"njets", 0);
523 desc.
add<
unsigned int>(
"nmuons", 0);
526 genericTriggerEventPSet.add<
bool>(
"andOr");
528 genericTriggerEventPSet.add<std::vector<int> >(
"dcsPartitions", {});
529 genericTriggerEventPSet.add<
bool>(
"andOrDcs",
false);
530 genericTriggerEventPSet.add<
bool>(
"errorReplyDcs",
true);
531 genericTriggerEventPSet.add<
std::string>(
"dbLabel",
"");
532 genericTriggerEventPSet.add<
bool>(
"andOrHlt",
true);
534 genericTriggerEventPSet.add<std::vector<std::string> >(
"hltPaths", {});
535 genericTriggerEventPSet.add<
std::string>(
"hltDBKey",
"");
536 genericTriggerEventPSet.add<
bool>(
"errorReplyHlt",
false);
537 genericTriggerEventPSet.add<
unsigned int>(
"verbosityLevel", 1);
567 std::vector<double>
bins = {0., 20., 40., 60., 80., 90., 100., 110., 120., 130., 140., 150., 160.,
568 170., 180., 190., 200., 220., 240., 260., 280., 300., 350., 400., 450., 1000.};
569 histoPSet.add<std::vector<double> >(
"jetEBinning",
bins);
570 histoPSet.add<std::vector<double> >(
"muonPtBinning",
bins);
574 descriptions.
add(
"NoBPTXMonitoring", desc);
static NoBPTXbinning getHistoPSet(const edm::ParameterSet &pset)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::TrackCollection > muonToken_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
StringCutObjectSelector< reco::CaloJet, true > jetSelection_
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
NoBPTXbinning jetE_binning_
void setCurrentFolder(std::string const &fullpath)
std::vector< Track > TrackCollection
collection of Tracks
edm::EDGetTokenT< reco::CaloJetCollection > jetToken_
int bunchCrossing() const
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
~NoBPTXMonitor() override
std::vector< double > jetE_variable_binning_
MonitorElement * denominator
LuminosityBlockNumber_t luminosityBlock() const
NoBPTXbinning muonPt_binning_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void bookNoBPTX(DQMStore::IBooker &, NoBPTXME &me, const std::string &histname, const std::string &histtitle, int nbins, double xmin, double xmax)
NoBPTXbinning bx_binning_
NoBPTXME muonPtNoBPTX_variableBinning_
#define DEFINE_FWK_MODULE(type)
MonitorElement * numerator
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, char const *option="s")
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
NoBPTXbinning jetEta_binning_
NoBPTXME jetENoBPTX_variableBinning_
static NoBPTXbinning getHistoLSPSet(const edm::ParameterSet &pset)
StringCutObjectSelector< reco::Track, true > muonSelection_
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
NoBPTXbinning muonPhi_binning_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
NoBPTXbinning muonEta_binning_
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
NoBPTXbinning jetPhi_binning_
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
NoBPTXbinning ls_binning_
NoBPTXMonitor(const edm::ParameterSet &)
void setNoBPTXTitle(NoBPTXME &me, const std::string &titleX, const std::string &titleY, bool bookDen)
std::vector< double > muonPt_variable_binning_
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)