1 #ifndef TOPSINGLELEPTONDQM 2 #define TOPSINGLELEPTONDQM 83 const std::vector<std::string>
labels)
const;
95 hists_.find(histName)->second->Fill(xValue, yValue);
98 void fill(
const std::string histName,
double xValue,
double yValue,
double zValue)
const {
100 hists_.find(histName)->second->Fill(xValue, yValue, zValue);
109 std::vector<edm::EDGetTokenT<edm::View<reco::MET> > >
mets_;
145 std::unique_ptr<StringCutObjectSelector<reco::PFCandidate> >
elecSelect_;
149 std::unique_ptr<StringCutObjectSelector<reco::Vertex> >
pvSelect_;
152 std::unique_ptr<StringCutObjectSelector<reco::PFCandidate> >
muonIso_;
155 std::unique_ptr<StringCutObjectSelector<reco::PFCandidate> >
muonSelect_;
182 std::map<std::string, MonitorElement*>
hists_;
191 hists_[channel +
"Eff_"]->setBinLabel(
199 const std::vector<std::string>
labels)
const {
202 fill(channel +
"Mon_",
idx + 0.5);
204 int evts =
hists_.find(channel +
"Mon_")->second->getBinContent(
idx + 1);
205 double value =
hists_.find(channel +
"Eff_")->second->getBinContent(
idx + 1);
310 std::map<std::string, std::pair<edm::ParameterSet, std::unique_ptr<TopSingleLepton::MonitorEnsemble> > >
selection_;
311 std::unique_ptr<SelectionStep<reco::PFCandidate> >
MuonStep;
313 std::unique_ptr<SelectionStep<reco::Vertex> >
PvStep;
314 std::unique_ptr<SelectionStep<reco::MET> >
METStep;
315 std::vector<std::unique_ptr<SelectionStep<reco::Jet> > >
JetSteps;
316 std::vector<std::unique_ptr<SelectionStep<reco::CaloJet> > >
CaloJetSteps;
317 std::vector<std::unique_ptr<SelectionStep<reco::PFJet> > >
PFJetSteps;
319 std::vector<edm::ParameterSet>
sel_;
std::map< std::string, MonitorElement * > hists_
histogram container
void fill(const std::string histName, double xValue, double yValue, double zValue) const
fill histogram if it had been booked before (2-dim version)
int logged_
number of logged interesting events
edm::EDGetTokenT< reco::JetIDValueMap > jetIDLabel_
jetID as an extra selection type
double btagEffWP_
btag working points
MonitorEnsemble(const char *label, const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
default contructor
edm::EDGetTokenT< edm::View< reco::PFCandidate > > muons_
std::unique_ptr< SelectionStep< reco::PFCandidate > > ElectronStep
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
do this during the event loop
std::unique_ptr< StringCutObjectSelector< reco::BeamSpot > > beamspotSelect_
string cut selector
edm::EDConsumerBase tmpConsumerBase
std::vector< std::string > triggerPaths_
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
std::unique_ptr< StringCutObjectSelector< reco::JetID > > jetIDSelect_
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > muonSelect_
extra selection on muons
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > elecSelect_
extra selection on electrons
define MonitorEnsembple to be used
TopSingleLeptonDQM(const edm::ParameterSet &cfg)
default constructor
edm::EDGetTokenT< reco::BeamSpot > beamspot__
std::map< std::string, std::pair< edm::ParameterSet, std::unique_ptr< TopSingleLepton::MonitorEnsemble > > > selection_
edm::EDGetTokenT< reco::JetTagCollection > btagCSV_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::vector< std::string > triggerPaths_
trigger paths
std::vector< std::string > selectionOrder_
edm::EDGetTokenT< reco::JetCorrector > mJetCorrector
std::vector< edm::EDGetTokenT< edm::View< reco::MET > > > mets_
considers a vector of METs
std::string selectionStep(const std::string &label)
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
input sources for monitoring
std::string monitorPath(const std::string &label) const
Level verbosity_
verbosity level for booking
dqm::reco::DQMStore DQMStore
double lowerEdge_
mass window upper and lower edge
std::vector< std::unique_ptr< SelectionStep< reco::Jet > > > JetSteps
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetSelection_
std::string selectionPath(const std::string &label) const
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > vertexSelect_
string cut selector
std::string jetSelect_
extra selection on jets
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::InputTag beamspot_
beamspot
void fill(const std::string histName, double value) const
fill histogram if it had been booked before
~MonitorEnsemble()
default destructor
edm::EDGetTokenT< edm::View< reco::Vertex > > pvs_
edm::EDGetTokenT< edm::View< reco::PFCandidate > > elecs_
void book(DQMStore::IBooker &ibooker)
book histograms in subdirectory directory
bool booked(const std::string histName) const
check if histogram was booked
edm::ESGetToken< JetCorrector, JetCorrectionsRecord > jetCorrector_
jetCorrector
edm::EDGetTokenT< edm::TriggerResults > triggerTable__
trigger table
std::unique_ptr< SelectionStep< reco::PFCandidate > > MuonStep
std::unique_ptr< SelectionStep< reco::MET > > METStep
dqm::legacy::MonitorElement MonitorElement
std::string label_
instance label
edm::EDGetTokenT< reco::JetTagCollection > btagVtx_
~TopSingleLeptonDQM() override
default destructor
Level
different verbosity levels
std::string objectType(const std::string &label)
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > pvSelect_
void fill(const edm::Event &event, const edm::EventSetup &setup)
fill monitor histograms with electronId and jetCorrections
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetlooseSelection_
std::vector< edm::ParameterSet > sel_
void fill(const std::string histName, double xValue, double yValue) const
fill histogram if it had been booked before (2-dim version)
edm::EDGetTokenT< reco::JetTagCollection > btagEff_
btag discriminator labels
void triggerBinLabels(std::string channel, const std::vector< std::string > labels)
set configurable labels for trigger monitoring histograms
std::vector< std::unique_ptr< SelectionStep< reco::PFJet > > > PFJetSteps
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
std::unique_ptr< SelectionStep< reco::Vertex > > PvStep
edm::EDGetTokenT< reco::JetTagCollection > btagPur_
std::vector< std::unique_ptr< SelectionStep< reco::CaloJet > > > CaloJetSteps
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > muonIso_
extra isolation criterion on muon