13 folderName_ ( iConfig.getParameter<
std::
string>(
"FolderName") )
15 , bsToken_ ( mayConsume<
reco::
BeamSpot> (iConfig.getParameter<
edm::InputTag>(
"beamSpot")))
23 , muoSelection_ ( iConfig.getParameter<
std::
string>(
"muoSelection") )
24 , muoSelection_ref ( iConfig.getParameter<
std::
string>(
"muoSelection_ref") )
25 , nmuons_ ( iConfig.getParameter<
int>(
"nmuons" ) )
75 me.
numerator = ibooker.
book1D(histname+
"_numerator", histtitle+
" (numerator)", nbins, min, max);
76 me.
denominator = ibooker.
book1D(histname+
"_denominator", histtitle+
" (denominator)", nbins, min, max);
80 int nbins = binning.size()-1;
81 std::vector<float> fbinning(binning.begin(),binning.end());
82 float* arr = &fbinning[0];
83 me.
numerator = ibooker.
book1D(histname+
"_numerator", histtitle+
" (numerator)", nbins, arr);
84 me.
denominator = ibooker.
book1D(histname+
"_denominator", histtitle+
" (denominator)", nbins, arr);
88 me.
numerator = ibooker.
bookProfile(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, xmin, xmax, ymin, ymax);
89 me.
denominator = ibooker.
bookProfile(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, xmin, xmax, ymin, ymax);
93 me.
numerator = ibooker.
book2D(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
94 me.
denominator = ibooker.
book2D(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
98 int nbinsX = binningX.size()-1;
99 std::vector<float> fbinningX(binningX.begin(),binningX.end());
100 float* arrX = &fbinningX[0];
101 int nbinsY = binningY.size()-1;
102 std::vector<float> fbinningY(binningY.begin(),binningY.end());
103 float* arrY = &fbinningY[0];
105 me.
numerator = ibooker.
book2D(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, arrX, nbinsY, arrY);
106 me.
denominator = ibooker.
book2D(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, arrX, nbinsY, arrY);
119 histname =
"muPt"; histtitle =
"mu_P_{t}";
123 histname =
"muPhi"; histtitle =
"muPhi";
127 histname =
"muEta"; histtitle =
"mu_Eta";
131 histname =
"mu_d0"; histtitle =
"mu_d0";
135 histname =
"mu_z0"; histtitle =
"mu_z0";
161 for (
auto const &
m : *muoHandle) {
167 if (
m.isTrackerMuon()) track = & *
m.innerTrack();
168 else if (
m.isStandAloneMuon()) track = & *
m.outerTrack();
178 for (
auto const &
m : *muoHandle) {
184 if (
m.isTrackerMuon()) track = & *
m.innerTrack();
185 else if (
m.isStandAloneMuon()) track = & *
m.outerTrack();
200 pset.
add<
int> (
"nbins");
201 pset.
add<
double>(
"xmin" );
202 pset.
add<
double>(
"xmax" );
207 pset.
add<
int> (
"nbins", 2500);
219 desc.
add<
std::string>(
"muoSelection",
"abs(eta)<1.4 & isPFMuon & isGlobalMuon & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0");
220 desc.
add<
std::string>(
"muoSelection_ref",
"isPFMuon & isGlobalMuon & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0");
221 desc.
add<
int>(
"nmuons", 1);
224 genericTriggerEventPSet.
add<
bool>(
"andOr");
226 genericTriggerEventPSet.add<std::vector<int> >(
"dcsPartitions",{});
227 genericTriggerEventPSet.add<
bool>(
"andOrDcs",
false);
228 genericTriggerEventPSet.add<
bool>(
"errorReplyDcs",
true);
229 genericTriggerEventPSet.add<
std::string>(
"dbLabel",
"");
230 genericTriggerEventPSet.add<
bool>(
"andOrHlt",
true);
232 genericTriggerEventPSet.add<std::vector<std::string> >(
"hltPaths",{});
233 genericTriggerEventPSet.add<
std::string>(
"hltDBKey",
"");
234 genericTriggerEventPSet.add<
bool>(
"errorReplyHlt",
false);
235 genericTriggerEventPSet.add<
unsigned int>(
"verbosityLevel",0);
258 descriptions.
add(
"bphMonitoring", desc);
MonitorElement * numerator
T getParameter(std::string const &) const
MonitorElement * bookProfile(Args &&...args)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::MuonCollection > muoToken_
void bookME(DQMStore::IBooker &, METME &me, std::string &histname, std::string &histtitle, int &nbins, double &xmin, double &xmax)
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
std::vector< Muon > MuonCollection
collection of Muon objects
static MEbinning getHistoLSPSet(const edm::ParameterSet &pset)
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
GenericTriggerEventFlag * den_genTriggerEventFlag_
BPHMonitor(const edm::ParameterSet &)
MonitorElement * book1D(Args &&...args)
MonitorElement * denominator
void setMETitle(METME &me, const std::string &titleX, const std::string &titleY)
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
StringCutObjectSelector< reco::Muon, true > muoSelection_
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< reco::BeamSpot > bsToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void setCurrentFolder(const std::string &fullpath)
StringCutObjectSelector< reco::Muon, true > muoSelection_ref
MonitorElement * book2D(Args &&...args)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const Point & position() const
position
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
GenericTriggerEventFlag * num_genTriggerEventFlag_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
static MEbinning getHistoPSet(const edm::ParameterSet &pset)