50 static constexpr
int N_PHI = 64;
54 static constexpr
int N_dxy = 50;
58 static constexpr
int N_ETA = 68;
96 : folderName_(iConfig.getParameter<
std::
string>(
"FolderName")),
97 requireValidHLTPaths_(iConfig.getParameter<
bool>(
"requireValidHLTPaths")),
98 hltPathsAreValid_(
false),
103 muon_variable_binning_(
105 muoneta_variable_binning_(
107 muon_binning_(getHistoPSet(
111 muPt_variable_binning_2D_(
113 elePt_variable_binning_2D_(
115 muEta_variable_binning_2D_(
117 eleEta_variable_binning_2D_(
120 iConfig.getParameter<
edm::
ParameterSet>(
"numGenericTriggerEventPSet"), consumesCollector(), *this)),
122 iConfig.getParameter<
edm::
ParameterSet>(
"denGenericTriggerEventPSet"), consumesCollector(), *this)),
123 metSelection_(iConfig.getParameter<
std::
string>(
"metSelection")),
124 muonSelection_(iConfig.getParameter<
std::
string>(
"muonSelection")),
125 eleSelection_(iConfig.getParameter<
std::
string>(
"eleSelection")),
126 nmuons_(iConfig.getParameter<unsigned
int>(
"nmuons")),
127 nelectrons_(iConfig.getParameter<unsigned
int>(
"nelectrons")) {}
162 histname =
"muon_pt";
163 histtitle =
"muon PT";
167 histname =
"muon_pt_variable";
168 histtitle =
"muon PT";
172 histname =
"muonVsLS";
173 histtitle =
"muon pt vs LS";
185 histname =
"muon_phi";
186 histtitle =
"Muon phi";
190 histname =
"muon_eta";
191 histtitle =
"Muon eta";
195 histname =
"muon_eta_variablebinning";
196 histtitle =
"Muon eta";
200 histname =
"muon_dxy";
201 histtitle =
"Muon dxy";
205 histname =
"muon_dz";
206 histtitle =
"Muon dz";
210 histname =
"muon_etaphi";
211 histtitle =
"Muon eta-phi";
224 histname =
"electron_pt_variable";
225 histtitle =
"electron PT";
229 histname =
"electron_eta";
230 histtitle =
"electron eta";
234 histname =
"elePt_muPt";
235 histtitle =
"electron pt vs muon pt";
239 histname =
"eleEta_muEta";
240 histtitle =
"electron #eta vs muon #eta";
269 if (not
v.isFake()) {
270 pv.SetXYZ(
v.x(),
v.y(),
v.z());
277 std::vector<reco::Muon>
muons;
278 if (muonHandle->size() <
nmuons_)
280 for (
auto const&
p : *muonHandle) {
289 std::vector<reco::GsfElectron>
electrons;
292 for (
auto const&
e : *eleHandle) {
300 const int ls =
iEvent.id().luminosityBlock();
302 if (!
muons.empty()) {
324 if (!
muons.empty()) {
345 desc.add<
bool>(
"requireValidHLTPaths",
true);
354 desc.add<
unsigned int>(
"nmuons", 0);
355 desc.add<
unsigned int>(
"nelectrons", 0);
366 std::vector<double>
bins = {0., 20., 40., 60., 80., 90., 100., 110., 120., 130., 140., 150., 160.,
367 170., 180., 190., 200., 220., 240., 260., 280., 300., 350., 400., 450., 1000.};
370 std::vector<double>
etabins = {-3., -2.5, -2., -1.5, -1., -.5, 0., .5, 1., 1.5, 2., 2.5, 3.};
373 std::vector<double> bins_2D = {0., 40., 80., 100., 120., 140., 160., 180., 200., 240., 280., 350., 450., 1000.};
374 std::vector<double> eta_bins_2D = {-3., -2., -1., 0., 1., 2., 3.};
375 std::vector<double> phi_bins_2D = {
376 -3.1415, -2.5132, -1.8849, -1.2566, -0.6283, 0, 0.6283, 1.2566, 1.8849, 2.5132, 3.1415};
377 histoPSet.add<std::vector<double>>(
"elePtBinning2D", bins_2D);
378 histoPSet.add<std::vector<double>>(
"muPtBinning2D", bins_2D);
379 histoPSet.add<std::vector<double>>(
"eleEtaBinning2D", eta_bins_2D);
380 histoPSet.add<std::vector<double>>(
"muEtaBinning2D", eta_bins_2D);
388 descriptions.
add(
"muonMonitoring",
desc);
static constexpr double MAX_PHI
std::vector< double > muPt_variable_binning_2D_
StringCutObjectSelector< reco::MET, true > metSelection_
dqm::reco::DQMStore DQMStore
static constexpr double MAX_dxy
edm::EDGetTokenT< reco::PFMETCollection > metToken_
ObjME muonEtaME_variableBinning_
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
virtual void setCurrentFolder(std::string const &fullpath)
const bool requireValidHLTPaths_
MuonMonitor(const edm::ParameterSet &)
std::vector< double > muoneta_variable_binning_
const MEbinning dxy_binning_
static constexpr int N_ETA
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
edm::EDGetTokenT< reco::VertexCollection > vtxToken_
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
ObjME eleME_variableBinning_
std::vector< Vertex > VertexCollection
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
const MEbinning phi_binning_
std::vector< double > muEta_variable_binning_2D_
std::vector< Muon > MuonCollection
collection of Muon objects
StringCutObjectSelector< reco::GsfElectron, true > eleSelection_
ObjME muonME_variableBinning_
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
edm::EDGetTokenT< edm::View< reco::GsfElectron > > eleToken_
static constexpr int N_dxy
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
static constexpr double MAX_ETA
const std::string folderName_
MonitorElement * denominator
MonitorElement * numerator
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::MuonCollection > muonToken_
std::vector< double > elePt_variable_binning_2D_
std::vector< double > muon_variable_binning_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
XYZPointD XYZPoint
point in space with cartesian internal representation
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)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
dqm::reco::MonitorElement MonitorElement
static constexpr int N_PHI
const MEbinning eta_binning_
static void fillPSetDescription(edm::ParameterSetDescription &desc)
std::vector< double > eleEta_variable_binning_2D_
StringCutObjectSelector< reco::Muon, true > muonSelection_