|
|
Go to the documentation of this file. 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_;
edm::EDGetTokenT< edm::View< reco::Vertex > > pvs_
std::string jetSelect_
extra selection on jets
std::vector< edm::ParameterSet > sel_
std::vector< std::unique_ptr< SelectionStep< reco::PFJet > > > PFJetSteps
edm::EDGetTokenT< reco::BeamSpot > beamspot__
void book(DQMStore::IBooker &ibooker)
book histograms in subdirectory directory
bool booked(const std::string histName) const
check if histogram was booked
std::string label_
instance label
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
do this during the event loop
std::unique_ptr< SelectionStep< reco::Vertex > > PvStep
Level
different verbosity levels
std::map< std::string, std::pair< edm::ParameterSet, std::unique_ptr< TopSingleLepton::MonitorEnsemble > > > selection_
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > pvSelect_
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetlooseSelection_
std::vector< std::unique_ptr< SelectionStep< reco::Jet > > > JetSteps
edm::EDGetTokenT< reco::JetTagCollection > btagVtx_
std::unique_ptr< SelectionStep< reco::PFCandidate > > ElectronStep
void triggerBinLabels(std::string channel, const std::vector< std::string > labels)
set configurable labels for trigger monitoring histograms
std::string jetCorrector_
jetCorrector
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
void fill(const std::string histName, double xValue, double yValue) const
fill histogram if it had been booked before (2-dim version)
void fill(const edm::Event &event, const edm::EventSetup &setup)
fill monitor histograms with electronId and jetCorrections
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
std::unique_ptr< StringCutObjectSelector< reco::BeamSpot > > beamspotSelect_
string cut selector
edm::EDGetTokenT< edm::TriggerResults > triggerTable__
trigger table
std::unique_ptr< SelectionStep< reco::MET > > METStep
double btagEffWP_
btag working points
MonitorEnsemble(const char *label, const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
default contructor
edm::EDGetTokenT< reco::JetTagCollection > btagEff_
btag discriminator labels
~TopSingleLeptonDQM() override
default destructor
define MonitorEnsembple to be used
std::vector< std::string > triggerPaths_
trigger paths
edm::EDGetTokenT< reco::JetIDValueMap > jetIDLabel_
jetID as an extra selection type
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > muonIso_
extra isolation criterion on muon
edm::EDGetTokenT< reco::JetTagCollection > btagPur_
std::string selectionStep(const std::string &label)
int logged_
number of logged interesting events
std::string objectType(const std::string &label)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
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)
std::unique_ptr< SelectionStep< reco::PFCandidate > > MuonStep
TopSingleLeptonDQM(const edm::ParameterSet &cfg)
default constructor
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > vertexSelect_
string cut selector
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > muonSelect_
extra selection on muons
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > elecSelect_
extra selection on electrons
std::vector< std::string > selectionOrder_
edm::InputTag beamspot_
beamspot
edm::EDGetTokenT< edm::View< reco::PFCandidate > > muons_
edm::EDGetTokenT< reco::JetTagCollection > btagCSV_
std::vector< std::string > triggerPaths_
std::vector< edm::EDGetTokenT< edm::View< reco::MET > > > mets_
considers a vector of METs
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
edm::EDConsumerBase tmpConsumerBase
std::unique_ptr< StringCutObjectSelector< reco::JetID > > jetIDSelect_
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
input sources for monitoring
double lowerEdge_
mass window upper and lower edge
dqm::reco::DQMStore DQMStore
std::string monitorPath(const std::string &label) const
dqm::legacy::MonitorElement MonitorElement
Level verbosity_
verbosity level for booking
edm::EDGetTokenT< reco::JetCorrector > mJetCorrector
void fill(const std::string histName, double value) const
fill histogram if it had been booked before
std::vector< std::unique_ptr< SelectionStep< reco::CaloJet > > > CaloJetSteps
std::string selectionPath(const std::string &label) const
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetSelection_
~MonitorEnsemble()
default destructor
edm::EDGetTokenT< edm::View< reco::PFCandidate > > elecs_