1 #ifndef SINGLETOPTCHANNELLEPTONDQM 2 #define SINGLETOPTCHANNELLEPTONDQM 79 return label.substr(label.find(
':') + 1);
84 return label.substr(0, label.find(
':'));
89 const std::vector<std::string>
labels);
92 std::string channel,
const std::vector<std::string> labels)
const;
100 if (
booked(histName.c_str()))
105 if (
booked(histName.c_str()))
106 hists_.find(histName.c_str())->
second->Fill(xValue, yValue);
110 double zValue)
const {
111 if (
booked(histName.c_str()))
112 hists_.find(histName.c_str())->
second->Fill(xValue, yValue, zValue);
121 std::vector<edm::EDGetTokenT<edm::View<reco::MET> > >
mets_;
165 std::unique_ptr<StringCutObjectSelector<reco::Vertex> >
pvSelect_;
200 std::map<std::string, MonitorElement*>
hists_;
205 std::unique_ptr<StringCutObjectSelector<reco::PFCandidate, true> >
muonSelect;
206 std::unique_ptr<StringCutObjectSelector<reco::PFCandidate, true> >
muonIso;
209 std::unique_ptr<StringCutObjectSelector<reco::PFJet> >
jetSelectPF;
212 std::unique_ptr<StringCutObjectSelector<reco::PFCandidate, true> >
elecSelect;
213 std::unique_ptr<StringCutObjectSelector<reco::PFCandidate, true> >
elecIso;
220 for (
unsigned int idx = 0;
idx < labels.size(); ++
idx) {
221 hists_[(channel +
"Mon_").c_str()]
223 hists_[(channel +
"Eff_").c_str()]
224 ->setBinLabel(idx + 1,
"[" +
selectionPath(labels[idx]) +
"]|[" +
233 const std::vector<std::string>
labels)
const {
234 for (
unsigned int idx = 0;
idx < labels.size(); ++
idx) {
236 fill((channel +
"Mon_").c_str(), idx + 0.5);
238 int evts =
hists_.find((channel +
"Mon_").c_str())
239 ->second->getBinContent(idx + 1);
240 double value =
hists_.find((channel +
"Eff_").c_str())
241 ->second->getBinContent(idx + 1);
243 (channel +
"Eff_").c_str(), idx + 0.5,
317 return label.substr(0, label.find(
':'));
322 return label.substr(label.find(
':') + 1);
354 std::unique_ptr<SingleTopTChannelLepton::MonitorEnsemble> > >
357 std::unique_ptr<SelectionStep<reco::Muon> >
MuonStep;
358 std::unique_ptr<SelectionStep<reco::PFCandidate> >
PFMuonStep;
361 std::unique_ptr<SelectionStep<reco::Vertex> >
PvStep;
363 std::vector<std::unique_ptr<SelectionStep<reco::Jet> > >
JetSteps;
364 std::vector<std::unique_ptr<SelectionStep<reco::CaloJet> > >
CaloJetSteps;
365 std::vector<std::unique_ptr<SelectionStep<reco::PFJet> > >
PFJetSteps;
367 std::unique_ptr<SelectionStep<reco::MET> >
METStep;
368 std::vector<edm::ParameterSet>
sel;
std::vector< std::string > selectionOrder_
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetSelectPF
std::map< std::string, MonitorElement * > hists_
std::string objectType(const std::string &label)
~SingleTopTChannelLeptonDQM()
default destructor
edm::EDGetTokenT< reco::JetIDValueMap > jetIDLabel_
jetID as an extra selection type
std::unique_ptr< StringCutObjectSelector< reco::CaloJet > > jetSelectCalo
double btagEffWP_
btag working points
std::vector< std::string > triggerPaths_
trigger paths
Level verbosity_
verbosity level for booking
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate, true > > elecSelect
def analyze(function, filename, filter=None)
std::unique_ptr< SelectionStep< reco::Vertex > > PvStep
std::vector< ParameterSet > VParameterSet
int logged_
number of logged interesting events
std::vector< std::unique_ptr< SelectionStep< reco::CaloJet > > > CaloJetSteps
std::vector< std::unique_ptr< SelectionStep< reco::Jet > > > JetSteps
define MonitorEnsembple to be used
bool booked(const std::string histName) const
check if histogram was booked
edm::EDGetTokenT< reco::JetTagCollection > btagCombVtx_
def setup(process, global_tag, zero_tesla=False)
edm::EDGetTokenT< edm::TriggerResults > triggerTable__
trigger table
edm::InputTag beamspot_
beamspot
std::string muonIso_
extra isolation criterion on muon
std::vector< std::string > triggerPaths_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::string muonSelect_
extra selection on muons
edm::EDGetTokenT< edm::View< reco::PFCandidate > > muons_
void bookHistograms(fwlite::EventContainer &eventCont)
U second(std::pair< T, U > const &p)
edm::InputTag vertex_
primary vertex
std::string elecSelect_
extra selection on electrons
double lowerEdge_
mass window upper and lower edge
void triggerBinLabels(std::string channel, const std::vector< std::string > labels)
set configurable labels for trigger monitoring histograms
std::vector< edm::ParameterSet > sel
std::string monitorPath(const std::string &label) const
edm::EDGetTokenT< edm::View< reco::GsfElectron > > elecs_gsf_
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > pvSelect_
void fill(const std::string histName, double xValue, double yValue, double zValue) const
fill histogram if it had been booked before (2-dim version)
edm::EDGetTokenT< reco::JetTagCollection > btagPur_
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate, true > > muonIso
edm::EDGetTokenT< reco::JetTagCollection > btagEff_
btag discriminator labels
edm::EDConsumerBase tmpConsumerBase
std::unique_ptr< StringCutObjectSelector< reco::JetID > > jetIDSelect_
extra jetID selection on calo jets
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate, true > > elecIso
std::unique_ptr< SelectionStep< reco::PFCandidate > > PFElectronStep
std::string selectionPath(const std::string &label) const
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
std::string selectionStep(const std::string &label)
std::unique_ptr< SelectionStep< reco::GsfElectron > > ElectronStep
edm::EDGetTokenT< reco::JetTagCollection > btagVtx_
edm::EDGetTokenT< edm::View< reco::Vertex > > pvs_
edm::EDGetTokenT< edm::View< reco::PFCandidate > > elecs_
std::unique_ptr< SelectionStep< reco::MET > > METStep
std::vector< edm::EDGetTokenT< edm::View< reco::MET > > > mets_
considers a vector of METs
void fill(const edm::Event &event, const edm::EventSetup &setup)
fill monitor histograms with electronId and jetCorrections
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
input sources for monitoring
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > vertexSelect_
string cut selector
edm::EDGetTokenT< reco::Vertex > vertex__
MonitorEnsemble(const char *label, const edm::ParameterSet &cfg, const edm::VParameterSet &vcfg, edm::ConsumesCollector &&iC)
default contructor
void book(DQMStore::IBooker &ibooker)
book histograms in subdirectory directory
edm::EDGetTokenT< reco::BeamSpot > beamspot__
std::unique_ptr< StringCutObjectSelector< reco::BeamSpot > > beamspotSelect_
string cut selector
std::map< std::string, std::pair< edm::ParameterSet, std::unique_ptr< SingleTopTChannelLepton::MonitorEnsemble > > > selection_
std::string jetCorrector_
jetCorrector
~MonitorEnsemble()
default destructor
void fill(const std::string histName, double value) const
fill histogram if it had been booked before
std::vector< std::unique_ptr< SelectionStep< reco::PFJet > > > PFJetSteps
void fill(const std::string histName, double xValue, double yValue) const
fill histogram if it had been booked before (2-dim version)
std::unique_ptr< SelectionStep< reco::Muon > > MuonStep
Level
different verbosity levels
std::unique_ptr< SelectionStep< reco::PFCandidate > > PFMuonStep
std::string label_
instance label
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate, true > > muonSelect
std::string elecIso_
extra isolation criterion on electron
std::unique_ptr< StringCutObjectSelector< reco::Jet > > jetSelectJet