1 #ifndef SINGLETOPTCHANNELLEPTONDQM_MINIAOD 2 #define SINGLETOPTCHANNELLEPTONDQM_MINIAOD 59 const std::vector<std::string>
labels)
const;
71 hists_.find(histName)->second->Fill(xValue, yValue);
74 void fill(
const std::string histName,
double xValue,
double yValue,
double zValue)
const {
76 hists_.find(histName)->second->Fill(xValue, yValue, zValue);
85 std::vector<edm::EDGetTokenT<edm::View<pat::MET> > >
mets_;
104 std::unique_ptr<StringCutObjectSelector<pat::Electron> >
elecIso_;
106 std::unique_ptr<StringCutObjectSelector<pat::Electron> >
elecSelect_;
110 std::unique_ptr<StringCutObjectSelector<reco::Vertex> >
pvSelect_;
113 std::unique_ptr<StringCutObjectSelector<pat::Muon> >
muonIso_;
125 std::unique_ptr<StringCutObjectSelector<pat::Jet> >
jetSelect;
140 std::map<std::string, MonitorElement*>
hists_;
148 hists_[channel +
"Eff_"]->setBinLabel(
156 const std::vector<std::string>
labels)
const {
159 fill(channel +
"Mon_",
idx + 0.5);
161 int evts =
hists_.find(channel +
"Mon_")->second->getBinContent(
idx + 1);
162 double value =
hists_.find(channel +
"Eff_")->second->getBinContent(
idx + 1);
226 std::map<std::string, std::pair<edm::ParameterSet, std::unique_ptr<SingleTopTChannelLepton_miniAOD::MonitorEnsemble> > >
228 std::unique_ptr<SelectionStep<pat::Muon> >
MuonStep;
230 std::unique_ptr<SelectionStep<reco::Vertex> >
PvStep;
231 std::unique_ptr<SelectionStep<pat::MET> >
METStep;
232 std::vector<std::unique_ptr<SelectionStep<pat::Jet> > >
JetSteps;
234 std::vector<edm::ParameterSet>
sel_;
std::vector< std::string > selectionOrder_
~SingleTopTChannelLeptonDQM_miniAOD() override
default destructor
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
std::unique_ptr< SelectionStep< reco::Vertex > > PvStep
std::map< std::string, MonitorElement * > hists_
histogram container
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
std::vector< std::string > triggerPaths_
std::vector< std::unique_ptr< SelectionStep< pat::Jet > > > JetSteps
void fill(const std::string histName, double value) const
fill histogram if it had been booked before
std::unique_ptr< StringCutObjectSelector< reco::JetID > > jetIDSelect_
extra jetID selection on calo jets
void fill(const std::string histName, double xValue, double yValue) const
fill histogram if it had been booked before (2-dim version)
void triggerBinLabels(std::string channel, const std::vector< std::string > labels)
set configurable labels for trigger monitoring histograms
bool booked(const std::string histName) const
check if histogram was booked
edm::EDGetTokenT< edm::View< pat::Electron > > elecs_
Level verbosity_
verbosity level for booking
edm::EDGetTokenT< edm::View< reco::Vertex > > pvs_
Level
different verbosity levels
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::unique_ptr< StringCutObjectSelector< pat::Electron > > elecIso_
extra isolation criterion on electron
std::unique_ptr< StringCutObjectSelector< pat::Muon > > muonIso_
extra isolation criterion on muon
edm::EDGetTokenT< edm::View< pat::Jet > > jets_
input sources for monitoring
double lowerEdge_
mass window upper and lower edge
dqm::reco::DQMStore DQMStore
std::map< std::string, std::pair< edm::ParameterSet, std::unique_ptr< SingleTopTChannelLepton_miniAOD::MonitorEnsemble > > > selection_
std::unique_ptr< SelectionStep< pat::Muon > > MuonStep
void fill(const edm::Event &event, const edm::EventSetup &setup)
fill monitor histograms with electronId and jetCorrections
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
do this during the event loop
edm::EDGetTokenT< reco::JetTagCollection > btagCSV_
std::string selectionStep(const std::string &label)
std::string monitorPath(const std::string &label) const
edm::EDGetTokenT< edm::View< pat::Muon > > muons_
int logged_
number of logged interesting events
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > pvSelect_
std::string objectType(const std::string &label)
std::vector< edm::ParameterSet > sel_
edm::InputTag beamspot_
beamspot
double btagEffWP_
btag working points
edm::EDGetTokenT< reco::BeamSpot > beamspot__
edm::EDGetTokenT< reco::JetTagCollection > btagEff_
btag discriminator labels
std::unique_ptr< StringCutObjectSelector< pat::Electron > > elecSelect_
extra selection on electrons
edm::EDGetTokenT< reco::JetIDValueMap > jetIDLabel_
jetID as an extra selection type
std::vector< std::string > triggerPaths_
trigger paths
edm::EDGetTokenT< reco::JetTagCollection > btagPur_
void book(DQMStore::IBooker &ibooker)
book histograms in subdirectory directory
std::string selectionPath(const std::string &label) const
dqm::legacy::MonitorElement MonitorElement
~MonitorEnsemble()
default destructor
MonitorEnsemble(const char *label, const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
default contructor
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
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< pat::MET > > METStep
std::unique_ptr< StringCutObjectSelector< pat::Jet > > jetSelect
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > vertexSelect_
string cut selector
std::unique_ptr< StringCutObjectSelector< reco::BeamSpot > > beamspotSelect_
string cut selector
std::unique_ptr< StringCutObjectSelector< pat::Muon > > muonSelect_
extra selection on muons
std::string label_
instance label
std::vector< edm::EDGetTokenT< edm::View< pat::MET > > > mets_
considers a vector of METs
SingleTopTChannelLeptonDQM_miniAOD(const edm::ParameterSet &cfg)
default constructor
edm::EDGetTokenT< edm::TriggerResults > triggerTable__
trigger table
edm::EDGetTokenT< reco::JetTagCollection > btagVtx_
edm::EDConsumerBase tmpConsumerBase
std::unique_ptr< SelectionStep< pat::Electron > > ElectronStep