#include <TopDiLeptonOfflineDQM.h>
Public Types | |
enum | DecayChannel { NONE, DIMUON, DIELEC, ELECMU } |
different decay channels More... | |
enum | Level { STANDARD, VERBOSE, DEBUG } |
different verbosity levels More... | |
typedef reco::LeafCandidate::LorentzVector | LorentzVector |
Public Member Functions | |
void | book (DQMStore::IBooker &ibooker) |
book histograms in subdirectory directory More... | |
void | fill (const edm::Event &event, const edm::EventSetup &setup) |
fill monitor histograms with electronId and jetCorrections More... | |
MonitorEnsemble (const char *label, const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC) | |
~MonitorEnsemble () | |
default destructor More... | |
Private Member Functions | |
bool | booked (const std::string histName) const |
check if histogram was booked More... | |
DecayChannel | decayChannel (const std::vector< const reco::PFCandidate * > &muons, const std::vector< const reco::PFCandidate * > &elecs) const |
determine dileptonic decay channel More... | |
void | fill (const edm::Event &event, const edm::TriggerResults &triggerTable, std::string channel, const std::vector< std::string > labels) const |
fill trigger monitoring histograms More... | |
void | fill (const std::string histName, double value) const |
fill histogram if it had been booked before More... | |
void | fill (const std::string histName, double xValue, double yValue) const |
fill histogram if it had been booked before (2-dim version) More... | |
void | fill (const std::string histName, double xValue, double yValue, double zValue) const |
fill histogram if it had been booked before (2-dim version) More... | |
void | loggerBinLabels (std::string hist) |
set labels for event logging histograms More... | |
std::string | monitorPath (const std::string &label) const |
std::string | selectionPath (const std::string &label) const |
void | triggerBinLabels (std::string channel, const std::vector< std::string > labels) |
set configurable labels for trigger monitoring histograms More... | |
Private Attributes | |
int | diElecLogged_ |
int | diMuonLogged_ |
std::vector< std::string > | diMuonPaths_ |
trigger paths for di muon channel More... | |
std::string | directory_ |
double | eidCutValue_ |
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > | elecIso_ |
extra isolation criterion on electron More... | |
int | elecMuLogged_ |
number of logged interesting events More... | |
std::vector< std::string > | elecMuPaths_ |
edm::EDGetTokenT< edm::View< reco::PFCandidate > > | elecs_ |
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > | elecSelect_ |
extra selection on electrons More... | |
edm::EDGetTokenT< edm::ValueMap< float > > | electronId_ |
electronId label More... | |
std::map< std::string, MonitorElement * > | hists_ |
std::string | jetCorrector_ |
jetCorrector More... | |
edm::EDGetTokenT< reco::JetIDValueMap > | jetIDLabel_ |
jetID as an extra selection type More... | |
std::unique_ptr< StringCutObjectSelector< reco::JetID > > | jetIDSelect_ |
extra jetID selection on calo jets More... | |
edm::EDGetTokenT< edm::View< reco::Jet > > | jets_ |
input sources for monitoring More... | |
std::string | jetSelect_ |
std::string | label_ |
instance label More... | |
double | lowerEdge_ |
mass window upper and lower edge More... | |
std::vector< edm::EDGetTokenT< edm::View< reco::MET > > > | mets_ |
considers a vector of METs More... | |
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate, true > > | muonIso_ |
extra isolation criterion on muon More... | |
edm::EDGetTokenT< edm::View< reco::PFCandidate > > | muons_ |
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate, true > > | muonSelect_ |
extra selection on muons More... | |
edm::EDGetTokenT< edm::TriggerResults > | triggerTable_ |
trigger table More... | |
double | upperEdge_ |
Level | verbosity_ |
verbosity level for booking More... | |
Definition at line 53 of file TopDiLeptonOfflineDQM.h.
make clear which LorentzVector to use for jet, electrons and muon buffering
Definition at line 59 of file TopDiLeptonOfflineDQM.h.
different decay channels
Enumerator | |
---|---|
NONE | |
DIMUON | |
DIELEC | |
ELECMU |
Definition at line 61 of file TopDiLeptonOfflineDQM.h.
different verbosity levels
Enumerator | |
---|---|
STANDARD | |
VERBOSE | |
DEBUG |
Definition at line 56 of file TopDiLeptonOfflineDQM.h.
MonitorEnsemble::MonitorEnsemble | ( | const char * | label, |
const edm::ParameterSet & | cfg, | ||
edm::ConsumesCollector && | iC | ||
) |
default contructor MonitorEnsemble(const char* label, const edm::ParameterSet& cfg);
Definition at line 14 of file TopDiLeptonOfflineDQM.cc.
References DEBUG, diMuonPaths_, directory_, eidCutValue_, singleTopDQM_cfi::elecExtras, elecIso_, elecMuPaths_, elecs_, elecSelect_, electronId_, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), jetCorrector_, singleTopDQM_cfi::jetExtras, singleTopDQM_cfi::jetID, jetIDLabel_, jetIDSelect_, jets_, jetSelect_, lowerEdge_, singleTopDQM_cfi::massExtras, mets_, singleTopDQM_cfi::monitoring, singleTopDQM_cfi::muonExtras, muonIso_, muons_, muonSelect_, CalibrationSummaryClient_cfi::sources, STANDARD, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, singleTopDQM_cfi::triggerExtras, triggerTable_, upperEdge_, VERBOSE, and verbosity_.
|
inline |
default destructor
Definition at line 68 of file TopDiLeptonOfflineDQM.h.
References book(), fill(), and singleTopDQM_cfi::setup.
void MonitorEnsemble::book | ( | DQMStore::IBooker & | ibooker | ) |
book histograms in subdirectory directory
Definition at line 130 of file TopDiLeptonOfflineDQM.cc.
References diMuonPaths_, directory_, vertexPlots::e4, elecMuPaths_, hists_, label_, loggerBinLabels(), STANDARD, AlCaHLTBitMon_QueryRunRegistry::string, triggerBinLabels(), VERBOSE, and verbosity_.
Referenced by ~MonitorEnsemble().
|
inlineprivate |
check if histogram was booked
Definition at line 97 of file TopDiLeptonOfflineDQM.h.
References hists_.
Referenced by fill().
|
inlineprivate |
determine dileptonic decay channel
Definition at line 232 of file TopDiLeptonOfflineDQM.h.
References DIELEC, DIMUON, ELECMU, and NONE.
Referenced by fill(), and selectionPath().
void MonitorEnsemble::fill | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
fill monitor histograms with electronId and jetCorrections
Definition at line 285 of file TopDiLeptonOfflineDQM.cc.
References slimmedMETs_cfi::caloMET, ALCARECOTkAlJpsiMuMu_cff::charge, mitigatedMETSequence_cff::corrector, decayChannel(), reco::deltaPhi(), reco::deltaR(), DIELEC, diElecLogged_, DIMUON, diMuonLogged_, diMuonPaths_, eidCutValue_, elecIso_, ELECMU, elecMuLogged_, elecMuPaths_, singleTopDQM_cfi::elecs, elecs_, elecSelect_, topSingleLeptonDQM_PU_cfi::electronId, electronId_, reco::LeafCandidate::et(), PVValHelper::eta, edm::EventAuxiliary::event(), edm::Event::eventAuxiliary(), edm::EventSetup::find(), edm::Event::getByToken(), JetCorrector::getJetCorrector(), hists_, training_settings::idx, edm::Ref< C, T, F >::isNull(), edm::EDGetTokenT< T >::isUninitialized(), metsig::jet, jetCorrector_, singleTopDQM_cfi::jetID, jetIDLabel_, jetIDSelect_, singleTopDQM_cfi::jets, jets_, jetSelect_, lowerEdge_, edm::EventAuxiliary::luminosityBlock(), EgHLTOffHistBins_cfi::mass, SiStripPI::max, BTaggingMonitor_cfi::met, mets_, VarParsing::mult, muonIso_, PDWG_BPHSkim_cff::muons, muons_, muonSelect_, goodZToMuMu_cfi::overlap, DiDispStaMuonMonitor_cfi::pt, reco::LeafCandidate::pt(), edm::EventAuxiliary::run(), reco::Jet::scaleEnergy(), EgammaValidation_Wenu_cff::sel, triggerTable_, and upperEdge_.
Referenced by fill(), selectionPath(), and ~MonitorEnsemble().
|
inlineprivate |
fill trigger monitoring histograms
Definition at line 216 of file TopDiLeptonOfflineDQM.h.
References accept(), fill(), hists_, training_settings::idx, monitorPath(), and selectionPath().
|
inlineprivate |
fill histogram if it had been booked before
Definition at line 99 of file TopDiLeptonOfflineDQM.h.
References booked(), and hists_.
|
inlineprivate |
fill histogram if it had been booked before (2-dim version)
Definition at line 104 of file TopDiLeptonOfflineDQM.h.
References booked(), and hists_.
|
inlineprivate |
fill histogram if it had been booked before (2-dim version)
Definition at line 109 of file TopDiLeptonOfflineDQM.h.
References booked(), and hists_.
|
inlineprivate |
set labels for event logging histograms
Definition at line 183 of file TopDiLeptonOfflineDQM.h.
References compare::hist, and hists_.
Referenced by book(), and selectionPath().
|
inlineprivate |
deduce monitorPath from label, the label is expected to be of type 'selectionPath:monitorPath'
Definition at line 78 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and triggerBinLabels().
|
inlineprivate |
deduce selectionPath from label, the label is expected to be of type 'selectionPath:monitorPath'
Definition at line 81 of file TopDiLeptonOfflineDQM.h.
References decayChannel(), singleTopDQM_cfi::elecs, fill(), compare::hist, SummaryClient_cfi::labels, loggerBinLabels(), PDWG_BPHSkim_cff::muons, AlCaHLTBitMon_QueryRunRegistry::string, and triggerBinLabels().
Referenced by fill(), and triggerBinLabels().
|
inlineprivate |
set configurable labels for trigger monitoring histograms
Definition at line 208 of file TopDiLeptonOfflineDQM.h.
References hists_, training_settings::idx, monitorPath(), and selectionPath().
Referenced by book(), and selectionPath().
|
private |
Definition at line 175 of file TopDiLeptonOfflineDQM.h.
Referenced by fill().
|
private |
Definition at line 175 of file TopDiLeptonOfflineDQM.h.
Referenced by fill().
|
private |
trigger paths for di muon channel
Definition at line 133 of file TopDiLeptonOfflineDQM.h.
Referenced by book(), fill(), and MonitorEnsemble().
|
private |
Definition at line 180 of file TopDiLeptonOfflineDQM.h.
Referenced by book(), and MonitorEnsemble().
|
private |
electronId pattern we expect the following pattern: 0: fails 1: passes electron ID only 2: passes electron Isolation only 3: passes electron ID and Isolation only 4: passes conversion rejection 5: passes conversion rejection and ID 6: passes conversion rejection and Isolation 7: passes the whole selection As described on https://twiki.cern.ch/twiki/bin/view/CMS/SimpleCutBasedEleID
Definition at line 150 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
extra isolation criterion on electron
Definition at line 152 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
number of logged interesting events
Definition at line 175 of file TopDiLeptonOfflineDQM.h.
Referenced by fill().
|
private |
trigger paths for monitoring, expected to be of form signalPath:MonitorPath
Definition at line 131 of file TopDiLeptonOfflineDQM.h.
Referenced by book(), fill(), and MonitorEnsemble().
|
private |
Definition at line 122 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
extra selection on electrons
Definition at line 154 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
electronId label
Definition at line 136 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
storage manager histogram container
Definition at line 178 of file TopDiLeptonOfflineDQM.h.
Referenced by book(), booked(), fill(), loggerBinLabels(), and triggerBinLabels().
|
private |
jetCorrector
Definition at line 163 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
jetID as an extra selection type
Definition at line 165 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
extra jetID selection on calo jets
Definition at line 167 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
input sources for monitoring
Definition at line 120 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
extra selection on jets (here given as std::string as it depends on the the jet type, which selections are valid and which not)
Definition at line 170 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
instance label
Definition at line 118 of file TopDiLeptonOfflineDQM.h.
Referenced by SequenceTypes.DummyModule::__repr__(), Mixins._Labelable::_findDependencies(), book(), and Mixins._Labelable::setLabel().
|
private |
mass window upper and lower edge
Definition at line 172 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
considers a vector of METs
Definition at line 125 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
extra isolation criterion on muon
Definition at line 157 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
Definition at line 121 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
extra selection on muons
Definition at line 160 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
trigger table
Definition at line 128 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
Definition at line 172 of file TopDiLeptonOfflineDQM.h.
Referenced by fill(), and MonitorEnsemble().
|
private |
verbosity level for booking
Definition at line 112 of file TopDiLeptonOfflineDQM.h.
Referenced by book(), and MonitorEnsemble().