|
|
Go to the documentation of this file. 1 #ifndef TOPDILEPTONOFFLINEDQM
2 #define TOPDILEPTONOFFLINEDQM
83 const std::vector<const reco::PFCandidate*>&
elecs)
const;
93 const std::vector<std::string>
labels)
const;
105 hists_.find(histName)->second->Fill(xValue, yValue);
108 void fill(
const std::string histName,
double xValue,
double yValue,
double zValue)
const {
110 hists_.find(histName)->second->Fill(xValue, yValue, zValue);
124 std::vector<edm::EDGetTokenT<edm::View<reco::MET> > >
mets_;
151 std::unique_ptr<StringCutObjectSelector<reco::PFCandidate> >
elecIso_;
153 std::unique_ptr<StringCutObjectSelector<reco::PFCandidate> >
elecSelect_;
156 std::unique_ptr<StringCutObjectSelector<reco::PFCandidate, true> >
muonIso_;
159 std::unique_ptr<StringCutObjectSelector<reco::PFCandidate, true> >
muonSelect_;
177 std::map<std::string, MonitorElement*>
hists_;
188 hists_[
hist]->setBinLabel(6,
"pt_{L2L3}(jet1)", 1);
189 hists_[
hist]->setBinLabel(7,
"pt_{L2L3}(jet2)", 1);
190 hists_[
hist]->setBinLabel(8,
"MET_{Calo}", 1);
193 if (
hist ==
"diMuonLogger_") {
197 if (
hist ==
"diElecLogger_") {
201 if (
hist ==
"elecMuLogger_") {
210 hists_[channel +
"Eff_"]->setBinLabel(
218 const std::vector<std::string>
labels)
const {
221 fill(channel +
"Mon_",
idx + 0.5);
223 int evts =
hists_.find(channel +
"Mon_")->second->getBinContent(
idx + 1);
224 double value =
hists_.find(channel +
"Eff_")->second->getBinContent(
idx + 1);
232 const std::vector<const reco::PFCandidate*>&
muons,
const std::vector<const reco::PFCandidate*>&
elecs)
const {
234 if (
muons.size() > 1) {
236 }
else if (
elecs.size() > 1) {
238 }
else if (!
elecs.empty() && !
muons.empty()) {
340 std::map<std::string, std::pair<edm::ParameterSet, std::unique_ptr<TopDiLeptonOffline::MonitorEnsemble> > >
selection_;
341 std::unique_ptr<SelectionStep<reco::PFCandidate> >
MuonStep;
343 std::unique_ptr<SelectionStep<reco::Vertex> >
PvStep;
344 std::unique_ptr<SelectionStep<reco::MET> >
METStep;
345 std::vector<std::unique_ptr<SelectionStep<reco::Jet> > >
JetSteps;
346 std::vector<std::unique_ptr<SelectionStep<reco::CaloJet> > >
CaloJetSteps;
347 std::vector<std::unique_ptr<SelectionStep<reco::PFJet> > >
PFJetSteps;
349 std::vector<edm::ParameterSet>
sel_;
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
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)
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > vertexSelect_
string cut selector
Level
different verbosity levels
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > elecSelect_
extra selection on electrons
std::vector< edm::EDGetTokenT< edm::View< reco::MET > > > mets_
considers a vector of METs
define MonitorEnsembple to be used
void fill(const std::string histName, double value) const
fill histogram if it had been booked before
std::vector< std::string > diMuonPaths_
trigger paths for di muon channel
reco::LeafCandidate::LorentzVector LorentzVector
TopDiLeptonOfflineDQM(const edm::ParameterSet &cfg)
default constructor
DecayChannel decayChannel(const std::vector< const reco::PFCandidate * > &muons, const std::vector< const reco::PFCandidate * > &elecs) const
determine dileptonic decay channel
std::vector< std::string > selectionOrder_
std::string objectType(const std::string &label)
void loggerBinLabels(std::string hist)
set labels for event logging histograms
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::JetIDValueMap > jetIDLabel_
jetID as an extra selection type
std::vector< std::unique_ptr< SelectionStep< reco::Jet > > > JetSteps
edm::EDGetTokenT< edm::View< reco::PFCandidate > > muons_
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
std::unique_ptr< StringCutObjectSelector< reco::JetID > > jetIDSelect_
extra jetID selection on calo jets
std::unique_ptr< SelectionStep< reco::Vertex > > PvStep
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
void triggerBinLabels(std::string channel, const std::vector< std::string > labels)
set configurable labels for trigger monitoring histograms
edm::ESGetToken< JetCorrector, JetCorrectionsRecord > jetCorrector_
jetCorrector
std::vector< std::string > elecMuPaths_
DecayChannel
different decay channels
~TopDiLeptonOfflineDQM() override
default destructor
std::string label_
instance label
double lowerEdge_
mass window upper and lower edge
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
std::vector< std::unique_ptr< SelectionStep< reco::PFJet > > > PFJetSteps
std::unique_ptr< SelectionStep< reco::PFCandidate > > ElectronStep
edm::EDGetTokenT< std::vector< reco::Vertex > > vertex_
primary vertex
std::string selectionStep(const std::string &label)
int elecMuLogged_
number of logged interesting events
std::unique_ptr< SelectionStep< reco::MET > > METStep
edm::EDGetTokenT< reco::BeamSpot > beamspot_
beamspot
std::string monitorPath(const std::string &label) const
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > elecIso_
extra isolation criterion on electron
~MonitorEnsemble()
default destructor
void book(DQMStore::IBooker &ibooker)
book histograms in subdirectory directory
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate, true > > muonSelect_
extra selection on muons
std::unique_ptr< SelectionStep< reco::PFCandidate > > MuonStep
std::vector< std::unique_ptr< SelectionStep< reco::CaloJet > > > CaloJetSteps
dqm::reco::DQMStore DQMStore
std::vector< std::string > triggerPaths_
trigger paths
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
dqm::legacy::MonitorElement MonitorElement
edm::EDGetTokenT< edm::View< reco::PFCandidate > > elecs_
std::map< std::string, std::pair< edm::ParameterSet, std::unique_ptr< TopDiLeptonOffline::MonitorEnsemble > > > selection_
bool booked(const std::string histName) const
check if histogram was booked
Level verbosity_
verbosity level for booking
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
input sources for monitoring
MonitorEnsemble(const char *label, const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate, true > > muonIso_
extra isolation criterion on muon
std::map< std::string, MonitorElement * > hists_
void fill(const edm::Event &event, const edm::EventSetup &setup)
fill monitor histograms with electronId and jetCorrections
math::XYZTLorentzVector LorentzVector
Lorentz vector.
std::string selectionPath(const std::string &label) const