8 folderName_ ( iConfig.getParameter<
std::
string>(
"FolderName") )
11 , jetE_variable_binning_ ( iConfig.getParameter<
edm::
ParameterSet>(
"histoPSet").getParameter<
std::vector<double> >(
"jetEBinning") )
15 , muonPt_variable_binning_ ( iConfig.getParameter<
edm::
ParameterSet>(
"histoPSet").getParameter<
std::vector<double> >(
"muonPtBinning") )
23 , jetSelection_ ( iConfig.getParameter<
std::
string>(
"jetSelection") )
24 , muonSelection_ ( iConfig.getParameter<
std::
string>(
"muonSelection") )
25 , njets_ ( iConfig.getParameter<unsigned
int>(
"njets" ) )
26 , nmuons_ ( iConfig.getParameter<unsigned
int>(
"nmuons" ) )
95 me.
numerator = ibooker.
book1D(histname+
"_numerator", histtitle+
" (numerator)", nbins, min, max);
96 me.
denominator = ibooker.
book1D(histname+
"_denominator", histtitle+
" (denominator)", nbins, min, max);
100 int nbins = binning.size()-1;
101 std::vector<float> fbinning(binning.begin(),binning.end());
102 float* arr = &fbinning[0];
103 me.
numerator = ibooker.
book1D(histname+
"_numerator", histtitle+
" (numerator)", nbins, arr);
104 me.
denominator = ibooker.
book1D(histname+
"_denominator", histtitle+
" (denominator)", nbins, arr);
108 me.
numerator = ibooker.
bookProfile(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, xmin, xmax, ymin, ymax);
109 if(bookDen) me.
denominator = ibooker.
bookProfile(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, xmin, xmax, ymin, ymax);
113 me.
numerator = ibooker.
book2D(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
114 me.
denominator = ibooker.
book2D(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
118 int nbinsX = binningX.size()-1;
119 std::vector<float> fbinningX(binningX.begin(),binningX.end());
120 float* arrX = &fbinningX[0];
121 int nbinsY = binningY.size()-1;
122 std::vector<float> fbinningY(binningY.begin(),binningY.end());
123 float* arrY = &fbinningY[0];
125 me.
numerator = ibooker.
book2D(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, arrX, nbinsY, arrY);
126 me.
denominator = ibooker.
book2D(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, arrX, nbinsY, arrY);
140 histname =
"jetE"; histtitle =
"jetE";
145 histname =
"jetE_variable"; histtitle =
"jetE";
150 histname =
"jetEVsLS"; histtitle =
"jetE vs LS";
155 histname =
"jetEVsBX"; histtitle =
"jetE vs BX";
160 histname =
"jetEta"; histtitle =
"jetEta";
165 histname =
"jetEtaVsLS"; histtitle =
"jetEta vs LS";
170 histname =
"jetEtaVsBX"; histtitle =
"jetEta vs BX";
175 histname =
"jetPhi"; histtitle =
"jetPhi";
180 histname =
"jetPhiVsLS"; histtitle =
"jetPhi vs LS";
185 histname =
"jetPhiVsBX"; histtitle =
"jetPhi vs BX";
190 histname =
"muonPt"; histtitle =
"muonPt";
195 histname =
"muonPt_variable"; histtitle =
"muonPt";
200 histname =
"muonPtVsLS"; histtitle =
"muonPt vs LS";
205 histname =
"muonPtVsBX"; histtitle =
"muonPt vs BX";
210 histname =
"muonEta"; histtitle =
"muonEta";
215 histname =
"muonEtaVsLS"; histtitle =
"muonEta vs LS";
220 histname =
"muonEtaVsBX"; histtitle =
"muonEta vs BX";
225 histname =
"muonPhi"; histtitle =
"muonPhi";
230 histname =
"muonPhiVsLS"; histtitle =
"muonPhi vs LS";
235 histname =
"muonPhiVsBX"; histtitle =
"muonPhi vs BX";
256 std::vector<reco::CaloJet>
jets;
257 if ((
unsigned int)(jetHandle->size()) <
njets_ )
return;
258 for (
auto const & j : *jetHandle ) {
261 if ((
unsigned int)(jets.size()) <
njets_ )
return;
266 jetE = jets[0].energy();
267 jetEta = jets[0].eta();
268 jetPhi = jets[0].phi();
273 if ((
unsigned int)(DSAHandle->size()) <
nmuons_ )
return;
274 std::vector<reco::Track>
muons;
275 for (
auto const &
m : *DSAHandle ) {
278 if ((
unsigned int)(muons.size()) <
nmuons_ )
return;
283 muonPt = muons[0].pt();
284 muonEta = muons[0].eta();
285 muonPhi = muons[0].phi();
326 pset.
add<
unsigned int> (
"nbins", 200);
327 pset.
add<
double>(
"xmin", -0.5 );
328 pset.
add<
double>(
"xmax", 19999.5 );
333 pset.
add<
unsigned int> (
"nbins", 2000);
345 desc.
add<
unsigned int>(
"njets", 0);
346 desc.
add<
unsigned int>(
"nmuons", 0);
349 genericTriggerEventPSet.
add<
bool>(
"andOr");
351 genericTriggerEventPSet.add<std::vector<int> >(
"dcsPartitions",{});
352 genericTriggerEventPSet.add<
bool>(
"andOrDcs",
false);
353 genericTriggerEventPSet.add<
bool>(
"errorReplyDcs",
true);
354 genericTriggerEventPSet.add<
std::string>(
"dbLabel",
"");
355 genericTriggerEventPSet.add<
bool>(
"andOrHlt",
true);
357 genericTriggerEventPSet.add<std::vector<std::string> >(
"hltPaths",{});
358 genericTriggerEventPSet.add<
std::string>(
"hltDBKey",
"");
359 genericTriggerEventPSet.add<
bool>(
"errorReplyHlt",
false);
360 genericTriggerEventPSet.add<
unsigned int>(
"verbosityLevel",1);
390 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.};
391 histoPSet.add<std::vector<double> >(
"jetEBinning",
bins);
392 histoPSet.add<std::vector<double> >(
"muonPtBinning",
bins);
396 descriptions.
add(
"NoBPTXMonitoring", desc);
static NoBPTXbinning getHistoPSet(const edm::ParameterSet &pset)
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::TrackCollection > muonToken_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
MonitorElement * bookProfile(Args &&...args)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
NoBPTXbinning jetE_binning_
std::vector< Track > TrackCollection
collection of Tracks
edm::EDGetTokenT< reco::CaloJetCollection > jetToken_
int bunchCrossing() const
StringCutObjectSelector< reco::CaloJet, true > jetSelection_
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_
StringCutObjectSelector< reco::Track, true > muonSelection_
NoBPTXME muonPtNoBPTX_variableBinning_
#define DEFINE_FWK_MODULE(type)
void setCurrentFolder(std::string const &fullpath)
MonitorElement * numerator
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * book1D(Args &&...args)
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)
MonitorElement * book2D(Args &&...args)
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
NoBPTXbinning muonPhi_binning_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
NoBPTXbinning muonEta_binning_
NoBPTXbinning jetPhi_binning_
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
NoBPTXbinning ls_binning_
NoBPTXMonitor(const edm::ParameterSet &)
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
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