82 requireValidHLTPaths_(
iConfig.getParameter<
bool>("requireValidHLTPaths")),
83 hltPathsAreValid_(
false),
86 jetE_variable_binning_(
94 muonPt_variable_binning_(
110 jetSelection_(
iConfig.getParameter<std::
string>("jetSelection")),
113 nmuons_(
iConfig.getParameter<
unsigned int>("nmuons")) {}
154 histname =
"jetE_variable";
159 histname =
"jetEVsLS";
160 histtitle =
"jetE vs LS";
172 histname =
"jetEVsBX";
173 histtitle =
"jetE vs BX";
187 histtitle =
"jetEta";
192 histname =
"jetEtaVsLS";
193 histtitle =
"jetEta vs LS";
206 histname =
"jetEtaVsBX";
207 histtitle =
"jetEta vs BX";
221 histtitle =
"jetPhi";
226 histname =
"jetPhiVsLS";
227 histtitle =
"jetPhi vs LS";
240 histname =
"jetPhiVsBX";
241 histtitle =
"jetPhi vs BX";
255 histtitle =
"muonPt";
260 histname =
"muonPt_variable";
261 histtitle =
"muonPt";
265 histname =
"muonPtVsLS";
266 histtitle =
"muonPt vs LS";
279 histname =
"muonPtVsBX";
280 histtitle =
"muonPt vs BX";
293 histname =
"muonEta";
294 histtitle =
"muonEta";
304 histname =
"muonEtaVsLS";
305 histtitle =
"muonEta vs LS";
318 histname =
"muonEtaVsBX";
319 histtitle =
"muonEta vs BX";
332 histname =
"muonPhi";
333 histtitle =
"muonPhi";
343 histname =
"muonPhiVsLS";
344 histtitle =
"muonPhi vs LS";
357 histname =
"muonPhiVsBX";
358 histtitle =
"muonPhi vs BX";
390 if ((
unsigned int)(jetHandle->size()) <
njets_)
393 std::vector<reco::CaloJet>
jets;
394 for (
auto const&
j : *jetHandle) {
399 if ((
unsigned int)(jets.size()) <
njets_)
406 jetE = jets[0].energy();
407 jetEta = jets[0].eta();
408 jetPhi = jets[0].phi();
414 if ((
unsigned int)(DSAHandle->size()) <
nmuons_)
417 std::vector<reco::Track>
muons;
418 for (
auto const&
m : *DSAHandle) {
423 if ((
unsigned int)(muons.size()) <
nmuons_)
429 if (!muons.empty()) {
430 muonPt = muons[0].pt();
431 muonEta = muons[0].eta();
432 muonPhi = muons[0].phi();
468 desc.
add<
bool>(
"requireValidHLTPaths",
true);
474 desc.
add<
unsigned int>(
"njets", 0);
475 desc.
add<
unsigned int>(
"nmuons", 0);
507 std::vector<double> bins = {0., 20., 40., 60., 80., 90., 100., 110., 120., 130., 140., 150., 160.,
508 170., 180., 190., 200., 220., 240., 260., 280., 300., 350., 400., 450., 1000.};
509 histoPSet.
add<std::vector<double> >(
"jetEBinning", bins);
510 histoPSet.add<std::vector<double> >(
"muonPtBinning", bins);
514 descriptions.
add(
"NoBPTXMonitoring", desc);
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)
ObjME muonPtNoBPTX_variableBinning_
const bool requireValidHLTPaths_
virtual void setCurrentFolder(std::string const &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< Track > TrackCollection
collection of Tracks
edm::EDGetTokenT< reco::CaloJetCollection > jetToken_
int bunchCrossing() const
static MEbinning getHistoLSPSet(const edm::ParameterSet &pset)
dqm::reco::DQMStore DQMStore
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
~NoBPTXMonitor() override
MEbinning muonEta_binning_
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
std::vector< double > jetE_variable_binning_
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
LuminosityBlockNumber_t luminosityBlock() const
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const std::string folderName_
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
#define override(base_class)
MonitorElement * numerator
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
dqm::reco::MonitorElement MonitorElement
void fill(const bool pass_num, Args...args)
MEbinning jetEta_binning_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
MEbinning muonPt_binning_
StringCutObjectSelector< reco::Track, true > muonSelection_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void bookME(DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbins, const double xmin, const double xmax, const bool bookDen=true)
tuple numGenericTriggerEventPSet
MEbinning jetPhi_binning_
tuple denGenericTriggerEventPSet
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
MEbinning muonPhi_binning_
NoBPTXMonitor(const edm::ParameterSet &)
static void fillPSetDescription(edm::ParameterSetDescription &desc)
ObjME jetENoBPTX_variableBinning_
std::vector< double > muonPt_variable_binning_
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects