CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
TopSingleLepton::MonitorEnsemble Class Reference

#include <TopSingleLeptonDQM.h>

Public Types

enum  Level { STANDARD, VERBOSE, DEBUG }
 different verbosity levels More...
 

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)
 default contructor More...
 
 ~MonitorEnsemble ()
 default destructor More...
 

Private Member Functions

bool booked (const std::string histName) const
 check if histogram was booked 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...
 
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

edm::EDGetTokenT< reco::JetTagCollectionbtagCSV_
 
double btagCSVWP_
 
edm::EDGetTokenT< reco::JetTagCollectionbtagEff_
 btag discriminator labels More...
 
double btagEffWP_
 btag working points More...
 
edm::EDGetTokenT< reco::JetTagCollectionbtagPur_
 
double btagPurWP_
 
edm::EDGetTokenT< reco::JetTagCollectionbtagVtx_
 
double btagVtxWP_
 
std::string directory_
 
double eidCutValue_
 
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_
 histogram container More...
 
bool includeBTag_
 
std::string jetCorrector_
 jetCorrector More...
 
edm::EDGetTokenT< reco::JetIDValueMapjetIDLabel_
 jetID as an extra selection type More...
 
std::unique_ptr< StringCutObjectSelector< reco::JetID > > jetIDSelect_
 
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetlooseSelection_
 
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
 input sources for monitoring More...
 
std::string jetSelect_
 extra selection on jets More...
 
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetSelection_
 
std::string label_
 instance label More...
 
int logged_
 number of logged interesting events 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...
 
edm::EDGetTokenT< reco::JetCorrectormJetCorrector
 
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > muonIso_
 extra isolation criterion on muon More...
 
edm::EDGetTokenT< edm::View< reco::PFCandidate > > muons_
 
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > muonSelect_
 extra selection on muons More...
 
edm::EDGetTokenT< edm::View< reco::Vertex > > pvs_
 
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > pvSelect_
 
edm::InputTag rhoTag
 
edm::EDConsumerBase tmpConsumerBase
 
std::vector< std::string > triggerPaths_
 
edm::EDGetTokenT< edm::TriggerResultstriggerTable_
 trigger table More...
 
double upperEdge_
 
Level verbosity_
 verbosity level for booking More...
 

Detailed Description

Definition at line 55 of file TopSingleLeptonDQM.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

MonitorEnsemble::MonitorEnsemble ( const char *  label,
const edm::ParameterSet cfg,
edm::ConsumesCollector &&  iC 
)

default contructor

Definition at line 22 of file TopSingleLeptonDQM.cc.

References btagCSV_, btagCSVWP_, DEBUG, directory_, eidCutValue_, singleTopDQM_cfi::elecExtras, elecs_, elecSelect_, electronId_, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), includeBTag_, singleTopDQM_cfi::jetExtras, singleTopDQM_cfi::jetID, jetIDLabel_, jetIDSelect_, jetlooseSelection_, jets_, jetSelect_, jetSelection_, lowerEdge_, singleTopDQM_cfi::massExtras, mets_, mJetCorrector, singleTopDQM_cfi::monitoring, singleTopDQM_cfi::muonExtras, muonIso_, muons_, muonSelect_, singleTopDQM_cfi::pvExtras, pvs_, pvSelect_, rhoTag, CalibrationSummaryClient_cfi::sources, STANDARD, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, singleTopDQM_cfi::triggerExtras, triggerPaths_, triggerTable_, upperEdge_, VERBOSE, and verbosity_.

23  : label_(label),
24  elecSelect_(nullptr),
25  pvSelect_(nullptr),
26  muonIso_(nullptr),
27  muonSelect_(nullptr),
28  jetIDSelect_(nullptr),
29  jetlooseSelection_(nullptr),
30  jetSelection_(nullptr),
31  includeBTag_(false),
32  lowerEdge_(-1.),
33  upperEdge_(-1.),
34  logged_(0) {
35  // sources have to be given; this PSet is not optional
39  pvs_ = iC.consumes<edm::View<reco::Vertex>>(sources.getParameter<edm::InputTag>("pvs"));
40  jets_ = iC.consumes<edm::View<reco::Jet>>(sources.getParameter<edm::InputTag>("jets"));
41  for (edm::InputTag const& tag : sources.getParameter<std::vector<edm::InputTag>>("mets"))
42  mets_.push_back(iC.consumes<edm::View<reco::MET>>(tag));
43  // electronExtras are optional; they may be omitted or
44  // empty
45  if (cfg.existsAs<edm::ParameterSet>("elecExtras")) {
46  // rho for PF isolation with EA corrections
47  // eventrhoToken_ =
48  // iC.consumes<double>(edm::InputTag("fixedGridRhoFastjetAll"));
49 
51  // select is optional; in case it's not found no
52  // selection will be applied
53  if (elecExtras.existsAs<std::string>("select")) {
54  elecSelect_.reset(
56  }
57 
58  if (elecExtras.existsAs<std::string>("rho")) {
59  rhoTag = elecExtras.getParameter<edm::InputTag>("rho");
60  }
61  // electronId is optional; in case it's not found the
62  // InputTag will remain empty
63  if (elecExtras.existsAs<edm::ParameterSet>("electronId")) {
64  edm::ParameterSet elecId = elecExtras.getParameter<edm::ParameterSet>("electronId");
66  eidCutValue_ = elecId.getParameter<double>("cutValue");
67  }
68  }
69  // pvExtras are optional; they may be omitted or empty
70  if (cfg.existsAs<edm::ParameterSet>("pvExtras")) {
72  // select is optional; in case it's not found no
73  // selection will be applied
74  if (pvExtras.existsAs<std::string>("select")) {
76  }
77  }
78  // muonExtras are optional; they may be omitted or empty
79  if (cfg.existsAs<edm::ParameterSet>("muonExtras")) {
81  // select is optional; in case it's not found no
82  // selection will be applied
83  if (muonExtras.existsAs<std::string>("select")) {
84  muonSelect_.reset(
86  }
87  // isolation is optional; in case it's not found no
88  // isolation will be applied
89  if (muonExtras.existsAs<std::string>("isolation")) {
90  muonIso_.reset(
92  }
93  }
94 
95  // jetExtras are optional; they may be omitted or
96  // empty
97  if (cfg.existsAs<edm::ParameterSet>("jetExtras")) {
99  // jetCorrector is optional; in case it's not found
100  // the InputTag will remain empty
101  if (jetExtras.existsAs<edm::InputTag>("jetCorrector")) {
102  mJetCorrector = iC.consumes<reco::JetCorrector>(jetExtras.getParameter<edm::InputTag>("jetCorrector"));
103  }
104  // read jetID information if it exists
105  if (jetExtras.existsAs<edm::ParameterSet>("jetID")) {
108  jetIDSelect_.reset(new StringCutObjectSelector<reco::JetID>(jetID.getParameter<std::string>("select")));
109  }
110  // select is optional; in case it's not found no
111  // selection will be applied (only implemented for
112  // CaloJets at the moment)
113  if (jetExtras.existsAs<std::string>("select")) {
114  jetSelect_ = jetExtras.getParameter<std::string>("select");
117  "chargedHadronEnergyFraction()>0 && chargedMultiplicity()>0 && chargedEmEnergyFraction()<0.99 && "
118  "neutralHadronEnergyFraction()<0.99 && neutralEmEnergyFraction()<0.99 && "
119  "(chargedMultiplicity()+neutralMultiplicity())>1"));
120  }
121  // jetBDiscriminators are optional; in case they are
122  // not found the InputTag will remain empty; they
123  // consist of pairs of edm::JetFlavorAssociation's &
124  // corresponding working points
125  includeBTag_ = jetExtras.existsAs<edm::ParameterSet>("jetBTaggers");
126  if (includeBTag_) {
127  edm::ParameterSet btagCSV =
128  jetExtras.getParameter<edm::ParameterSet>("jetBTaggers").getParameter<edm::ParameterSet>("cvsVertex");
130  btagCSVWP_ = btagCSV.getParameter<double>("workingPoint");
131  }
132  }
133 
134  // triggerExtras are optional; they may be omitted or empty
135  if (cfg.existsAs<edm::ParameterSet>("triggerExtras")) {
138  triggerPaths_ = triggerExtras.getParameter<std::vector<std::string>>("paths");
139  }
140 
141  // massExtras is optional; in case it's not found no mass
142  // window cuts are applied for the same flavor monitor
143  // histograms
144  if (cfg.existsAs<edm::ParameterSet>("massExtras")) {
146  lowerEdge_ = massExtras.getParameter<double>("lowerEdge");
147  upperEdge_ = massExtras.getParameter<double>("upperEdge");
148  }
149 
150  // setup the verbosity level for booking histograms;
151  // per default the verbosity level will be set to
152  // STANDARD. This will also be the chosen level in
153  // the case when the monitoring PSet is not found
155  if (cfg.existsAs<edm::ParameterSet>("monitoring")) {
157  if (monitoring.getParameter<std::string>("verbosity") == "DEBUG")
158  verbosity_ = DEBUG;
159  if (monitoring.getParameter<std::string>("verbosity") == "VERBOSE")
160  verbosity_ = VERBOSE;
161  if (monitoring.getParameter<std::string>("verbosity") == "STANDARD")
162  verbosity_ = STANDARD;
163  }
164  // and don't forget to do the histogram booking
165  directory_ = cfg.getParameter<std::string>("directory");
166  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
int logged_
number of logged interesting events
edm::EDGetTokenT< reco::JetIDValueMap > jetIDLabel_
jetID as an extra selection type
edm::EDGetTokenT< edm::View< reco::PFCandidate > > muons_
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:160
std::vector< std::string > triggerPaths_
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
std::unique_ptr< StringCutObjectSelector< reco::JetID > > jetIDSelect_
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > muonSelect_
extra selection on muons
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > elecSelect_
extra selection on electrons
edm::EDGetTokenT< reco::JetTagCollection > btagCSV_
edm::EDGetTokenT< reco::JetCorrector > mJetCorrector
std::vector< edm::EDGetTokenT< edm::View< reco::MET > > > mets_
considers a vector of METs
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
input sources for monitoring
Level verbosity_
verbosity level for booking
double lowerEdge_
mass window upper and lower edge
char const * label
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetSelection_
muonExtras
when omitted isolated electron multiplicity plot will be equi- valent to inclusive electron multiplic...
std::string jetSelect_
extra selection on jets
triggerExtras
[optional] : when omitted no mass window will be applied for the W mass befor filling the event monit...
edm::EDGetTokenT< edm::View< reco::Vertex > > pvs_
edm::EDGetTokenT< edm::View< reco::PFCandidate > > elecs_
std::string label_
instance label
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > pvSelect_
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetlooseSelection_
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
elecExtras
[optional] : when omitted all monitoring plots for primary vertices will be filled w/o extras pvExtra...
jetExtras
when omitted isolated muon multiplicity plot will be equi- valent to inclusive muon multiplicity plot...
monitoring
[optional] : when omitted the verbosity level is set to STANDARD
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > muonIso_
extra isolation criterion on muon
TopSingleLepton::MonitorEnsemble::~MonitorEnsemble ( )
inline

default destructor

Definition at line 64 of file TopSingleLeptonDQM.h.

References book(), fill(), and singleTopDQM_cfi::setup.

64 {};

Member Function Documentation

void MonitorEnsemble::book ( DQMStore::IBooker &  ibooker)

book histograms in subdirectory directory

Definition at line 168 of file TopSingleLeptonDQM.cc.

References directory_, hists_, label_, STANDARD, AlCaHLTBitMon_QueryRunRegistry::string, triggerBinLabels(), triggerPaths_, VERBOSE, and verbosity_.

Referenced by ~MonitorEnsemble().

168  {
169  // set up the current directory path
170  std::string current(directory_);
171  current += label_;
172  ibooker.setCurrentFolder(current);
173 
174  // determine number of bins for trigger monitoring
175  // unsigned int nPaths = triggerPaths_.size();
176 
177  // --- [STANDARD] --- //
178  // Run Number
179  // hists_["RunNumb_"] = ibooker.book1D("RunNumber", "Run Nr.", 10, 0, 10);
180  // instantaneous luminosity
181  // hists_["InstLumi_"] = ibooker.book1D("InstLumi", "Inst. Lumi.", 100, 0., 1.e3);
182  // number of selected primary vertices
183  hists_["pvMult_"] = ibooker.book1D("PvMult", "N_{good pvs}", 50, 0., 50.);
184  // pt of the leading muon
185  hists_["muonPt_"] = ibooker.book1D("MuonPt", "pt(#mu TightId, TightIso)", 40, 0., 200.);
186  // muon multiplicity after tight Id
187  hists_["muonMult_"] = ibooker.book1D("MuonMult", "N_{loose}(#mu)", 10, 0., 10.);
188  // muon multiplicity after isolation
189  //hists_["muonMultIso_"] = ibooker.book1D("MuonMultIso",
190  // "N_{TightIso}(#mu)", 10, 0., 10.);
191  // muon multiplicity after tight Id and isolation
192  hists_["muonMultTight_"] = ibooker.book1D("MuonMultTight", "N_{TightIso,TightId}(#mu)", 10, 0., 10.);
193  // pt of the leading electron
194  hists_["elecPt_"] = ibooker.book1D("ElecPt", "pt(e TightId, TightIso)", 40, 0., 200.);
195  // electron multiplicity before std isolation
196  //hists_["elecMult_"] = ibooker.book1D("ElecMult", "N_{All}(e, tightId)", 10, 0., 10.);
197  // electron multiplicity after std isolation
198  //hists_["elecMultIso_"] = ibooker.book1D("ElecMultIso", "N_{Iso}(e, tightId, tightIso)", 10, 0., 10.);
199  // multiplicity of jets with pt>30
200  hists_["jetMult_"] = ibooker.book1D("JetMult", "N_{30}(jet)", 10, 0., 10.);
201  // multiplicity of loose jets with pt>30
202  hists_["jetMultLoose_"] = ibooker.book1D("JetMultLoose", "N_{30, loose}(jet)", 10, 0., 10.);
203 
204  // trigger efficiency estimates for single lepton triggers
205  // hists_["triggerEff_"] = ibooker.book1D("TriggerEff",
206  // "Eff(trigger)", nPaths, 0., nPaths);
207  // monitored trigger occupancy for single lepton triggers
208  // hists_["triggerMon_"] = ibooker.book1D("TriggerMon",
209  // "Mon(trigger)", nPaths, 0., nPaths);
210  // MET (pflow)
211  hists_["metPflow_"] = ibooker.book1D("METPflow", "MET_{Pflow}", 50, 0., 200.);
212  // W mass estimate
213  hists_["massW_"] = ibooker.book1D("MassW", "M(W)", 60, 0., 300.);
214  // Top mass estimate
215  hists_["massTop_"] = ibooker.book1D("MassTop", "M(Top)", 50, 0., 500.);
216  // b-tagged Top mass
217  hists_["massBTop_"] = ibooker.book1D("MassBTop", "M(Top, 1 b-tag)", 50, 0., 500.);
218  // set bin labels for trigger monitoring
220 
221  if (verbosity_ == STANDARD)
222  return;
223 
224  // --- [VERBOSE] --- //
225  // eta of the leading muon
226  hists_["muonEta_"] = ibooker.book1D("MuonEta", "#eta(#mu TightId, TightIso)", 30, -3., 3.);
227  // relative isolation of the candidate muon (depending on the decay channel)
228  hists_["muonRelIso_"] = ibooker.book1D("MuonRelIso", "Iso_{Rel}(#mu TightId) (#Delta#beta Corrected)", 50, 0., 1.);
229  // phi of the leading muon
230  hists_["muonPhi_"] = ibooker.book1D("MuonPhi", "#phi(#mu TightId, TightIso)", 40, -4., 4.);
231  // eta of the leading electron
232  hists_["elecEta_"] = ibooker.book1D("ElecEta", "#eta(e tightId)", 30, -3., 3.);
233  // std isolation variable of the leading electron
234  hists_["elecRelIso_"] = ibooker.book1D("ElecRelIso", "Iso_{Rel}(e TightId, TightIso)", 50, 0., 1.);
235  // phi of the leading electron
236  hists_["elecPhi_"] = ibooker.book1D("ElecPhi", "#phi(e tightId)", 40, -4., 4.);
237  // multiplicity of tight Id, tight Iso electorns
238  hists_["elecMultTight_"] = ibooker.book1D("ElecMultTight", "N_{TightIso,TightId}(e)", 10, 0., 10.);
239  // multiplicity of btagged jets (for track counting high efficiency) with
240  // pt(L2L3)>30
241  // hists_["jetMultBEff_"] = ibooker.book1D("JetMultBEff",
242  // "N_{30}(TCHE)", 10, 0., 10.);
243  // btag discriminator for track counting high efficiency for jets with
244  // pt(L2L3)>30
245  //hists_["jetBDiscEff_"] = ibooker.book1D("JetBDiscEff",
246  // "Disc_{TCHE}(jet)", 100, 0., 10.);
247  // eta of the 1. leading jet (corrected to L2+L3)
248  hists_["jet1Eta_"] = ibooker.book1D("Jet1Eta", "#eta_{30,loose}(jet1)", 60, -3., 3.);
249  // pt of the 1. leading jet (corrected to L2+L3)
250  hists_["jet1Pt_"] = ibooker.book1D("Jet1Pt", "pt_{30,loose}(jet1)", 60, 0., 300.);
251  // eta of the 2. leading jet (corrected to L2+L3)
252  hists_["jet2Eta_"] = ibooker.book1D("Jet2Eta", "#eta_{30,loose}(jet2)", 60, -3., 3.);
253  // pt of the 2. leading jet (corrected to L2+L3)
254  hists_["jet2Pt_"] = ibooker.book1D("Jet2Pt", "pt_{30,loose}(jet2)", 60, 0., 300.);
255  // eta of the 3. leading jet (corrected to L2+L3)
256  hists_["jet3Eta_"] = ibooker.book1D("Jet3Eta", "#eta_{30,loose}(jet3)", 60, -3., 3.);
257  // pt of the 3. leading jet (corrected to L2+L3)
258  hists_["jet3Pt_"] = ibooker.book1D("Jet3Pt", "pt_{30,loose}(jet3)", 60, 0., 300.);
259  // eta of the 4. leading jet (corrected to L2+L3)
260  hists_["jet4Eta_"] = ibooker.book1D("Jet4Eta", "#eta_{30,loose}(jet4)", 60, -3., 3.);
261  // pt of the 4. leading jet (corrected to L2+L3)
262  hists_["jet4Pt_"] = ibooker.book1D("Jet4Pt", "pt_{30,loose}(jet4)", 60, 0., 300.);
263  // dz for muons (to suppress cosmis)
264  hists_["muonDelZ_"] = ibooker.book1D("MuonDelZ", "d_{z}(#mu)", 50, -25., 25.);
265  // dxy for muons (to suppress cosmics)
266  hists_["muonDelXY_"] = ibooker.book2D("MuonDelXY", "d_{xy}(#mu)", 50, -0.1, 0.1, 50, -0.1, 0.1);
267 
268  // set axes titles for dxy for muons
269  hists_["muonDelXY_"]->setAxisTitle("x [cm]", 1);
270  hists_["muonDelXY_"]->setAxisTitle("y [cm]", 2);
271 
272  if (verbosity_ == VERBOSE)
273  return;
274 
275  // --- [DEBUG] --- //
276  // charged hadron isolation component of the candidate muon (depending on the
277  // decay channel)
278  hists_["muonChHadIso_"] = ibooker.book1D("MuonChHadIsoComp", "ChHad_{IsoComponent}(#mu TightId)", 50, 0., 5.);
279  // neutral hadron isolation component of the candidate muon (depending on the
280  // decay channel)
281  hists_["muonNeHadIso_"] = ibooker.book1D("MuonNeHadIsoComp", "NeHad_{IsoComponent}(#mu TightId)", 50, 0., 5.);
282  // photon isolation component of the candidate muon (depending on the decay
283  // channel)
284  hists_["muonPhIso_"] = ibooker.book1D("MuonPhIsoComp", "Photon_{IsoComponent}(#mu )", 50, 0., 5.);
285  // charged hadron isolation component of the candidate electron (depending on
286  // the decay channel)
287  hists_["elecChHadIso_"] = ibooker.book1D("ElectronChHadIsoComp", "ChHad_{IsoComponent}(e tightId)", 50, 0., 5.);
288  // neutral hadron isolation component of the candidate electron (depending on
289  // the decay channel)
290  hists_["elecNeHadIso_"] = ibooker.book1D("ElectronNeHadIsoComp", "NeHad_{IsoComponent}(e tightId)", 50, 0., 5.);
291  // photon isolation component of the candidate electron (depending on the
292  // decay channel)
293  hists_["elecPhIso_"] = ibooker.book1D("ElectronPhIsoComp", "Photon_{IsoComponent}(e tightId)", 50, 0., 5.);
294 
295  // multiplicity for combined secondary vertex
296  hists_["jetMultBCSVM_"] = ibooker.book1D("JetMultBCSVM", "N_{30}(CSVM)", 10, 0., 10.);
297  // btag discriminator for combined secondary vertex
298  hists_["jetBCSV_"] = ibooker.book1D("JetDiscCSV", "BJet Disc_{CSV}(JET)", 100, -1., 2.);
299  // pt of the 1. leading jet (uncorrected)
300  // hists_["jet1PtRaw_"] = ibooker.book1D("Jet1PtRaw", "pt_{Raw}(jet1)", 60, 0., 300.);
301  // pt of the 2. leading jet (uncorrected)
302  // hists_["jet2PtRaw_"] = ibooker.book1D("Jet2PtRaw", "pt_{Raw}(jet2)", 60, 0., 300.);
303  // pt of the 3. leading jet (uncorrected)
304  // hists_["jet3PtRaw_"] = ibooker.book1D("Jet3PtRaw", "pt_{Raw}(jet3)", 60, 0., 300.);
305  // pt of the 4. leading jet (uncorrected)
306  // hists_["jet4PtRaw_"] = ibooker.book1D("Jet4PtRaw", "pt_{Raw}(jet4)", 60, 0., 300.);
307  // selected events
308  hists_["eventLogger_"] = ibooker.book2D("EventLogger", "Logged Events", 9, 0., 9., 10, 0., 10.);
309 
310  // set axes titles for selected events
311  hists_["eventLogger_"]->getTH1()->SetOption("TEXT");
312  hists_["eventLogger_"]->setBinLabel(1, "Run", 1);
313  hists_["eventLogger_"]->setBinLabel(2, "Block", 1);
314  hists_["eventLogger_"]->setBinLabel(3, "Event", 1);
315  hists_["eventLogger_"]->setBinLabel(4, "pt_{30,loose}(jet1)", 1);
316  hists_["eventLogger_"]->setBinLabel(5, "pt_{30,loose}(jet2)", 1);
317  hists_["eventLogger_"]->setBinLabel(6, "pt_{30,loose}(jet3)", 1);
318  hists_["eventLogger_"]->setBinLabel(7, "pt_{30,loose}(jet4)", 1);
319  hists_["eventLogger_"]->setBinLabel(8, "M_{W}", 1);
320  hists_["eventLogger_"]->setBinLabel(9, "M_{Top}", 1);
321  hists_["eventLogger_"]->setAxisTitle("logged evts", 2);
322  return;
323  }
std::map< std::string, MonitorElement * > hists_
histogram container
std::vector< std::string > triggerPaths_
Level verbosity_
verbosity level for booking
std::string label_
instance label
void triggerBinLabels(std::string channel, const std::vector< std::string > labels)
set configurable labels for trigger monitoring histograms
bool TopSingleLepton::MonitorEnsemble::booked ( const std::string  histName) const
inlineprivate

check if histogram was booked

Definition at line 88 of file TopSingleLeptonDQM.h.

References hists_.

Referenced by fill().

88 { return hists_.find(histName) != hists_.end(); };
std::map< std::string, MonitorElement * > hists_
histogram container
void MonitorEnsemble::fill ( const edm::Event event,
const edm::EventSetup setup 
)

fill monitor histograms with electronId and jetCorrections

Definition at line 325 of file TopSingleLeptonDQM.cc.

References btagCSV_, btagCSVWP_, reco::JetCorrector::correction(), mitigatedMETSequence_cff::corrector, eidCutValue_, singleTopDQM_cfi::elecs, elecs_, elecSelect_, topSingleLeptonDQM_PU_cfi::electronId, electronId_, reco::LeafCandidate::eta(), edm::EventAuxiliary::event(), edm::Event::eventAuxiliary(), dqmMemoryStats::float, edm::Event::getByToken(), hists_, training_settings::idx, includeBTag_, edm::EDGetTokenT< T >::isUninitialized(), edm::HandleBase::isValid(), metsig::jet, jetlooseSelection_, singleTopDQM_cfi::jets, jets_, jetSelection_, logged_, lowerEdge_, edm::EventAuxiliary::luminosityBlock(), SiStripPI::max, BTaggingMonitor_cfi::met, mets_, mJetCorrector, VarParsing::mult, PDWG_BPHSkim_cff::muons, muons_, muonSelect_, reco::Vertex::position(), DiDispStaMuonMonitor_cfi::pt, reco::LeafCandidate::pt(), MetAnalyzer::pv(), FSQDQM_cfi::pvs, pvs_, pvSelect_, rhoTag, edm::EventAuxiliary::run(), reco::Jet::scaleEnergy(), EgammaValidation_Wenu_cff::sel, triggerPaths_, triggerTable_, upperEdge_, and pseudoTop_cfi::wMass.

Referenced by fill(), selectionPath(), and ~MonitorEnsemble().

325  {
326  // fetch trigger event if configured such
328 
330  if (!event.getByToken(triggerTable_, triggerTable))
331  return;
332  }
333 
334  /*
335  ------------------------------------------------------------
336 
337  Primary Vertex Monitoring
338 
339  ------------------------------------------------------------
340  */
341  // fill monitoring plots for primary verices
343 
344  if (!event.getByToken(pvs_, pvs))
345  return;
346  const reco::Vertex& Pvertex = pvs->front();
347  unsigned int pvMult = 0;
348  for (edm::View<reco::Vertex>::const_iterator pv = pvs->begin(); pv != pvs->end(); ++pv) {
349  if (!pvSelect_ || (*pvSelect_)(*pv))
350  pvMult++;
351  }
352  fill("pvMult_", pvMult);
353 
354  /*
355  ------------------------------------------------------------
356 
357  Electron Monitoring
358 
359  ------------------------------------------------------------
360  */
361 
362  // fill monitoring plots for electrons
364  edm::Handle<double> _rhoHandle;
365  event.getByLabel(rhoTag, _rhoHandle);
366  if (!event.getByToken(elecs_, elecs))
367  return;
368 
369  // check availability of electron id
371  if (!electronId_.isUninitialized()) {
372  if (!event.getByToken(electronId_, electronId))
373  return;
374  }
375 
376  // loop electron collection
377  unsigned int eMult = 0, eMultIso = 0;
378  std::vector<const reco::PFCandidate*> isoElecs;
379  for (edm::View<reco::PFCandidate>::const_iterator elec = elecs->begin(); elec != elecs->end(); ++elec) {
380  if (elec->gsfElectronRef().isNull()) {
381  continue;
382  }
383  reco::GsfElectronRef gsf_el = elec->gsfElectronRef();
384  // restrict to electrons with good electronId
386  ? true
387  : ((double)(*electronId)[gsf_el] >=
388  eidCutValue_)) { //This Electron Id is not currently used, but we can keep this for future needs
389  if (!elecSelect_ || (*elecSelect_)(*elec)) {
390  double el_ChHadIso = gsf_el->pfIsolationVariables().sumChargedHadronPt;
391  double el_NeHadIso = gsf_el->pfIsolationVariables().sumNeutralHadronEt;
392  double el_PhIso = gsf_el->pfIsolationVariables().sumPhotonEt;
393  double absEta = std::fabs(gsf_el->superCluster()->eta());
394 
395  //Effective Area computation
396  double eA = 0;
397  if (absEta < 1.000)
398  eA = 0.1703;
399  else if (absEta < 1.479)
400  eA = 0.1715;
401  else if (absEta < 2.000)
402  eA = 0.1213;
403  else if (absEta < 2.200)
404  eA = 0.1230;
405  else if (absEta < 2.300)
406  eA = 0.1635;
407  else if (absEta < 2.400)
408  eA = 0.1937;
409  else if (absEta < 5.000)
410  eA = 0.2393;
411 
412  double rho = _rhoHandle.isValid() ? (float)(*_rhoHandle) : 0;
413  double el_pfRelIso = (el_ChHadIso + max(0., el_NeHadIso + el_PhIso - rho * eA)) / gsf_el->pt();
414 
415  //Only TightId
416  if (eMult == 0) { // Restricted to the leading tight electron
417  fill("elecRelIso_", el_pfRelIso);
418  fill("elecChHadIso_", el_ChHadIso);
419  fill("elecNeHadIso_", el_NeHadIso);
420  fill("elecPhIso_", el_PhIso);
421  }
422  ++eMult;
423 
424  if (!((el_pfRelIso < 0.0588 && absEta < 1.479) || (el_pfRelIso < 0.0571 && absEta > 1.479)))
425  continue; // PF Isolation with Effective Area Corrections according to https://twiki.cern.ch/twiki/bin/viewauth/CMS/CutBasedElectronIdentificationRun2
426 
427  // TightId and TightIso
428  if (eMultIso == 0) { //Only leading
429  fill("elecPt_", elec->pt());
430  fill("elecEta_", elec->eta());
431  fill("elecPhi_", elec->phi());
432  }
433  ++eMultIso;
434  }
435  }
436  }
437  //fill("elecMult_", eMult);
438  fill("elecMultTight_", eMultIso);
439 
440  /*
441  ------------------------------------------------------------
442 
443  Muon Monitoring
444 
445  ------------------------------------------------------------
446  */
447 
448  // fill monitoring plots for muons
449  unsigned int mMult = 0, mTight = 0, mTightId = 0;
450 
453 
454  if (!event.getByToken(muons_, muons))
455  return;
456 
457  for (edm::View<reco::PFCandidate>::const_iterator muonit = muons->begin(); muonit != muons->end(); ++muonit) {
458  if (muonit->muonRef().isNull())
459  continue;
460  reco::MuonRef muon = muonit->muonRef();
461 
462  // restrict to globalMuons
463  if (muon->isGlobalMuon()) {
464  fill("muonDelZ_", muon->innerTrack()->vz()); // CB using inner track!
465  fill("muonDelXY_", muon->innerTrack()->vx(), muon->innerTrack()->vy());
466 
467  // apply preselection
468  if ((!muonSelect_ || (*muonSelect_)(*muonit))) {
469  mMult++;
470  double chHadPt = muon->pfIsolationR04().sumChargedHadronPt;
471  double neHadEt = muon->pfIsolationR04().sumNeutralHadronEt;
472  double phoEt = muon->pfIsolationR04().sumPhotonEt;
473  double pfRelIso = (chHadPt + max(0., neHadEt + phoEt - 0.5 * muon->pfIsolationR04().sumPUPt)) /
474  muon->pt(); // CB dBeta corrected iso!
475 
476  if (!(muon->isGlobalMuon() && muon->isPFMuon() && muon->globalTrack()->normalizedChi2() < 10. &&
477  muon->globalTrack()->hitPattern().numberOfValidMuonHits() > 0 && muon->numberOfMatchedStations() > 1 &&
478  muon->innerTrack()->hitPattern().numberOfValidPixelHits() > 0 &&
479  muon->innerTrack()->hitPattern().trackerLayersWithMeasurement() > 5 &&
480  fabs(muon->muonBestTrack()->dxy(Pvertex.position())) < 0.2 &&
481  fabs(muon->muonBestTrack()->dz(Pvertex.position())) < 0.5))
482  continue; //Only tight muons
483 
484  if (mTightId == 0) {
485  fill("muonRelIso_", pfRelIso);
486  fill("muonChHadIso_", chHadPt);
487  fill("muonNeHadIso_", neHadEt);
488  fill("muonPhIso_", phoEt);
489  }
490  mTightId++;
491 
492  if (!(pfRelIso < 0.15))
493  continue; //Tight Iso
494 
495  if (mTight == 0) { //Leading tightId tightIso muon
496  fill("muonPt_", muon->pt());
497  fill("muonEta_", muon->eta());
498  fill("muonPhi_", muon->phi());
499  }
500  mTight++;
501  }
502  }
503  }
504  fill("muonMult_", mMult);
505  fill("muonMultTight_", mTight);
506 
507  /*
508  ------------------------------------------------------------
509 
510  Jet Monitoring
511 
512  ------------------------------------------------------------
513  */
514 
515  // check availability of the btaggers
516  edm::Handle<reco::JetTagCollection> btagEff, btagPur, btagVtx, btagCSV;
517  if (includeBTag_) {
518  if (!event.getByToken(btagCSV_, btagCSV))
519  return;
520  }
521 
523  event.getByToken(mJetCorrector, corrector);
524  if (!event.getByToken(mJetCorrector, corrector))
525  return;
526 
527  // loop jet collection
528  std::vector<reco::Jet> correctedJets;
529  std::vector<double> JetTagValues;
530  unsigned int mult = 0, multLoose = 0, multCSV = 0;
531 
533  if (!event.getByToken(jets_, jets)) {
534  return;
535  }
536 
537  for (edm::View<reco::Jet>::const_iterator jet = jets->begin(); jet != jets->end(); ++jet) {
538  bool isLoose = false;
539  // check additional jet selection for pf jets
540  if (dynamic_cast<const reco::PFJet*>(&*jet)) {
541  reco::PFJet sel = dynamic_cast<const reco::PFJet&>(*jet);
542  if ((*jetlooseSelection_)(sel))
543  isLoose = true;
544  sel.scaleEnergy(corrector->correction(*jet));
545  if (!(*jetSelection_)(sel))
546  continue;
547  }
548 
549  // prepare jet to fill monitor histograms
550  reco::Jet monitorJet = *jet;
551 
552  ++mult; // determine jet (no Id) multiplicity
553  monitorJet.scaleEnergy(corrector->correction(*jet));
554 
555  if (isLoose) { //Loose Id
556  unsigned int idx = jet - jets->begin();
557  correctedJets.push_back(monitorJet);
558  if (includeBTag_) {
559  // fill b-discriminators
560  edm::RefToBase<reco::Jet> jetRef = jets->refAt(idx);
561  fill("jetBCSV_", (*btagCSV)[jetRef]);
562  if ((*btagCSV)[jetRef] > btagCSVWP_)
563  ++multCSV;
564  // Fill a vector with Jet b-tag WP for later M3+1tag calculation: CSV
565  // tagger
566  JetTagValues.push_back((*btagCSV)[jetRef]);
567  }
568 
569  // fill pt/eta for the leading four jets
570  if (multLoose == 0) {
571  fill("jet1Pt_", monitorJet.pt());
572  fill("jet1Eta_", monitorJet.eta());
573  };
574  if (multLoose == 1) {
575  fill("jet2Pt_", monitorJet.pt());
576  fill("jet2Eta_", monitorJet.eta());
577  }
578  if (multLoose == 2) {
579  fill("jet3Pt_", monitorJet.pt());
580  fill("jet3Eta_", monitorJet.eta());
581  }
582  if (multLoose == 3) {
583  fill("jet4Pt_", monitorJet.pt());
584  fill("jet4Eta_", monitorJet.eta());
585  }
586  multLoose++;
587  }
588  }
589  fill("jetMult_", mult);
590  fill("jetMultLoose_", multLoose);
591  fill("jetMultBCSVM_", multCSV);
592 
593  /*
594  ------------------------------------------------------------
595 
596  MET Monitoring
597 
598  ------------------------------------------------------------
599  */
600 
601  // fill monitoring histograms for met
602  for (std::vector<edm::EDGetTokenT<edm::View<reco::MET>>>::const_iterator met_ = mets_.begin(); met_ != mets_.end();
603  ++met_) {
605  if (!event.getByToken(*met_, met))
606  continue;
607  if (met->begin() != met->end()) { //If we ever have to use more than one type of met again
608  unsigned int idx = met_ - mets_.begin();
609  if (idx == 0)
610  fill("metPflow_", met->begin()->et());
611  }
612  }
613 
614  /*
615  ------------------------------------------------------------
616 
617  Event Monitoring
618 
619  ------------------------------------------------------------
620  */
621 
622  // fill W boson and top mass estimates
623 
624  Calculate eventKinematics(MAXJETS, WMASS);
625  double wMass = eventKinematics.massWBoson(correctedJets);
626  double topMass = eventKinematics.massTopQuark(correctedJets);
627  if (wMass >= 0 && topMass >= 0) {
628  fill("massW_", wMass);
629  fill("massTop_", topMass);
630  }
631 
632  // Fill M3 with Btag (CSV Tight) requirement
633 
634  if (!includeBTag_)
635  return;
636  if (correctedJets.size() != JetTagValues.size())
637  return;
638  double btopMass = eventKinematics.massBTopQuark(correctedJets, JetTagValues, btagCSVWP_);
639  if (btopMass >= 0)
640  fill("massBTop_", btopMass);
641 
642  // fill plots for trigger monitoring
643  if ((lowerEdge_ == -1. && upperEdge_ == -1.) || (lowerEdge_ < wMass && wMass < upperEdge_)) {
645  fill(event, *triggerTable, "trigger", triggerPaths_);
646  if (logged_ <= hists_.find("eventLogger_")->second->getNbinsY()) {
647  // log runnumber, lumi block, event number & some
648  // more pysics infomation for interesting events
649  fill("eventLogger_", 0.5, logged_ + 0.5, event.eventAuxiliary().run());
650  fill("eventLogger_", 1.5, logged_ + 0.5, event.eventAuxiliary().luminosityBlock());
651  fill("eventLogger_", 2.5, logged_ + 0.5, event.eventAuxiliary().event());
652  if (!correctedJets.empty())
653  fill("eventLogger_", 3.5, logged_ + 0.5, correctedJets[0].pt());
654  if (correctedJets.size() > 1)
655  fill("eventLogger_", 4.5, logged_ + 0.5, correctedJets[1].pt());
656  if (correctedJets.size() > 2)
657  fill("eventLogger_", 5.5, logged_ + 0.5, correctedJets[2].pt());
658  if (correctedJets.size() > 3)
659  fill("eventLogger_", 6.5, logged_ + 0.5, correctedJets[3].pt());
660  fill("eventLogger_", 7.5, logged_ + 0.5, wMass);
661  fill("eventLogger_", 8.5, logged_ + 0.5, topMass);
662  ++logged_;
663  }
664  }
665  }
std::map< std::string, MonitorElement * > hists_
histogram container
int logged_
number of logged interesting events
EventAuxiliary const & eventAuxiliary() const override
Definition: Event.h:93
edm::EDGetTokenT< edm::View< reco::PFCandidate > > muons_
double eta() const final
momentum pseudorapidity
virtual void scaleEnergy(double fScale)
scale energy of the jet
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:525
std::vector< std::string > triggerPaths_
Base class for all types of Jets.
Definition: Jet.h:20
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > muonSelect_
extra selection on muons
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > elecSelect_
extra selection on electrons
RunNumber_t run() const
double pt() const final
transverse momentum
double correction(const LorentzVector &fJet) const
get correction using Jet information only
Definition: JetCorrector.h:47
edm::EDGetTokenT< reco::JetTagCollection > btagCSV_
const Point & position() const
position
Definition: Vertex.h:113
Jets made from PFObjects.
Definition: PFJet.h:20
edm::EDGetTokenT< reco::JetCorrector > mJetCorrector
std::vector< edm::EDGetTokenT< edm::View< reco::MET > > > mets_
considers a vector of METs
electronId
when omitted electron plots will be filled w/o cut on electronId
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
input sources for monitoring
LuminosityBlockNumber_t luminosityBlock() const
static const double WMASS
double lowerEdge_
mass window upper and lower edge
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetSelection_
Helper class for the calculation of a top and a W boson mass estime.
def pv(vc)
Definition: MetAnalyzer.py:7
edm::EDGetTokenT< edm::View< reco::Vertex > > pvs_
edm::EDGetTokenT< edm::View< reco::PFCandidate > > elecs_
bool isValid() const
Definition: HandleBase.h:70
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > pvSelect_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
Definition: View.h:86
void fill(const edm::Event &event, const edm::EventSetup &setup)
fill monitor histograms with electronId and jetCorrections
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetlooseSelection_
bool isUninitialized() const
Definition: EDGetToken.h:70
static const unsigned int MAXJETS
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
EventNumber_t event() const
void MonitorEnsemble::fill ( const edm::Event event,
const edm::TriggerResults triggerTable,
std::string  channel,
const std::vector< std::string >  labels 
) const
inlineprivate

fill trigger monitoring histograms

Definition at line 198 of file TopSingleLeptonDQM.h.

References accept(), fill(), hists_, training_settings::idx, monitorPath(), and selectionPath().

201  {
202  for (unsigned int idx = 0; idx < labels.size(); ++idx) {
203  if (accept(event, triggerTable, monitorPath(labels[idx]))) {
204  fill(channel + "Mon_", idx + 0.5);
205  // take care to fill triggerMon_ before evts is being called
206  int evts = hists_.find(channel + "Mon_")->second->getBinContent(idx + 1);
207  double value = hists_.find(channel + "Eff_")->second->getBinContent(idx + 1);
208  fill(
209  channel + "Eff_", idx + 0.5, 1. / evts * (accept(event, triggerTable, selectionPath(labels[idx])) - value));
210  }
211  }
212  }
std::map< std::string, MonitorElement * > hists_
histogram container
std::string selectionPath(const std::string &label) const
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
Definition: value.py:1
void fill(const edm::Event &event, const edm::EventSetup &setup)
fill monitor histograms with electronId and jetCorrections
std::string monitorPath(const std::string &label) const
void TopSingleLepton::MonitorEnsemble::fill ( const std::string  histName,
double  value 
) const
inlineprivate

fill histogram if it had been booked before

Definition at line 90 of file TopSingleLeptonDQM.h.

References booked(), and hists_.

90  {
91  if (booked(histName))
92  hists_.find(histName)->second->Fill(value);
93  };
std::map< std::string, MonitorElement * > hists_
histogram container
Definition: value.py:1
bool booked(const std::string histName) const
check if histogram was booked
void TopSingleLepton::MonitorEnsemble::fill ( const std::string  histName,
double  xValue,
double  yValue 
) const
inlineprivate

fill histogram if it had been booked before (2-dim version)

Definition at line 95 of file TopSingleLeptonDQM.h.

References booked(), and hists_.

95  {
96  if (booked(histName))
97  hists_.find(histName)->second->Fill(xValue, yValue);
98  };
std::map< std::string, MonitorElement * > hists_
histogram container
bool booked(const std::string histName) const
check if histogram was booked
void TopSingleLepton::MonitorEnsemble::fill ( const std::string  histName,
double  xValue,
double  yValue,
double  zValue 
) const
inlineprivate

fill histogram if it had been booked before (2-dim version)

Definition at line 100 of file TopSingleLeptonDQM.h.

References booked(), and hists_.

100  {
101  if (booked(histName))
102  hists_.find(histName)->second->Fill(xValue, yValue, zValue);
103  };
std::map< std::string, MonitorElement * > hists_
histogram container
bool booked(const std::string histName) const
check if histogram was booked
std::string TopSingleLepton::MonitorEnsemble::monitorPath ( const std::string &  label) const
inlineprivate

deduce monitorPath from label, the label is expected to be of type 'selectionPath:monitorPath'

Definition at line 74 of file TopSingleLeptonDQM.h.

Referenced by fill(), and triggerBinLabels().

74 { return label.substr(label.find(':') + 1); };
char const * label
std::string TopSingleLepton::MonitorEnsemble::selectionPath ( const std::string &  label) const
inlineprivate

deduce selectionPath from label, the label is expected to be of type 'selectionPath:monitorPath'

Definition at line 77 of file TopSingleLeptonDQM.h.

References fill(), SummaryClient_cfi::labels, AlCaHLTBitMon_QueryRunRegistry::string, and triggerBinLabels().

Referenced by fill(), and triggerBinLabels().

77 { return label.substr(0, label.find(':')); };
char const * label
void MonitorEnsemble::triggerBinLabels ( std::string  channel,
const std::vector< std::string >  labels 
)
inlineprivate

set configurable labels for trigger monitoring histograms

Definition at line 190 of file TopSingleLeptonDQM.h.

References hists_, training_settings::idx, monitorPath(), and selectionPath().

Referenced by book(), and selectionPath().

190  {
191  for (unsigned int idx = 0; idx < labels.size(); ++idx) {
192  hists_[channel + "Mon_"]->setBinLabel(idx + 1, "[" + monitorPath(labels[idx]) + "]", 1);
193  hists_[channel + "Eff_"]->setBinLabel(
194  idx + 1, "[" + selectionPath(labels[idx]) + "]|[" + monitorPath(labels[idx]) + "]", 1);
195  }
196  }
std::map< std::string, MonitorElement * > hists_
histogram container
std::string selectionPath(const std::string &label) const
std::string monitorPath(const std::string &label) const

Member Data Documentation

edm::EDGetTokenT<reco::JetTagCollection> TopSingleLepton::MonitorEnsemble::btagCSV_
private

Definition at line 174 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

double TopSingleLepton::MonitorEnsemble::btagCSVWP_
private

Definition at line 176 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

edm::EDGetTokenT<reco::JetTagCollection> TopSingleLepton::MonitorEnsemble::btagEff_
private

btag discriminator labels

Definition at line 174 of file TopSingleLeptonDQM.h.

double TopSingleLepton::MonitorEnsemble::btagEffWP_
private

btag working points

Definition at line 176 of file TopSingleLeptonDQM.h.

edm::EDGetTokenT<reco::JetTagCollection> TopSingleLepton::MonitorEnsemble::btagPur_
private

Definition at line 174 of file TopSingleLeptonDQM.h.

double TopSingleLepton::MonitorEnsemble::btagPurWP_
private

Definition at line 176 of file TopSingleLeptonDQM.h.

edm::EDGetTokenT<reco::JetTagCollection> TopSingleLepton::MonitorEnsemble::btagVtx_
private

Definition at line 174 of file TopSingleLeptonDQM.h.

double TopSingleLepton::MonitorEnsemble::btagVtxWP_
private

Definition at line 176 of file TopSingleLeptonDQM.h.

std::string TopSingleLepton::MonitorEnsemble::directory_
private

Definition at line 187 of file TopSingleLeptonDQM.h.

Referenced by book(), and MonitorEnsemble().

double TopSingleLepton::MonitorEnsemble::eidCutValue_
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 140 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

edm::EDGetTokenT<edm::View<reco::PFCandidate> > TopSingleLepton::MonitorEnsemble::elecs_
private

Definition at line 115 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

std::unique_ptr<StringCutObjectSelector<reco::PFCandidate> > TopSingleLepton::MonitorEnsemble::elecSelect_
private

extra selection on electrons

Definition at line 147 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

edm::EDGetTokenT<edm::ValueMap<float> > TopSingleLepton::MonitorEnsemble::electronId_
private

electronId label

Definition at line 124 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

std::map<std::string, MonitorElement*> TopSingleLepton::MonitorEnsemble::hists_
private

histogram container

Definition at line 184 of file TopSingleLeptonDQM.h.

Referenced by book(), booked(), fill(), and triggerBinLabels().

bool TopSingleLepton::MonitorEnsemble::includeBTag_
private

include btag information or not to be determined from the cfg

Definition at line 172 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

std::string TopSingleLepton::MonitorEnsemble::jetCorrector_
private

jetCorrector

Definition at line 160 of file TopSingleLeptonDQM.h.

edm::EDGetTokenT<reco::JetIDValueMap> TopSingleLepton::MonitorEnsemble::jetIDLabel_
private

jetID as an extra selection type

Definition at line 163 of file TopSingleLeptonDQM.h.

Referenced by MonitorEnsemble().

std::unique_ptr<StringCutObjectSelector<reco::JetID> > TopSingleLepton::MonitorEnsemble::jetIDSelect_
private

Definition at line 165 of file TopSingleLeptonDQM.h.

Referenced by MonitorEnsemble().

std::unique_ptr<StringCutObjectSelector<reco::PFJet> > TopSingleLepton::MonitorEnsemble::jetlooseSelection_
private

Definition at line 168 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

edm::EDGetTokenT<edm::View<reco::Jet> > TopSingleLepton::MonitorEnsemble::jets_
private

input sources for monitoring

Definition at line 113 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

std::string TopSingleLepton::MonitorEnsemble::jetSelect_
private

extra selection on jets

Definition at line 167 of file TopSingleLeptonDQM.h.

Referenced by MonitorEnsemble().

std::unique_ptr<StringCutObjectSelector<reco::PFJet> > TopSingleLepton::MonitorEnsemble::jetSelection_
private

Definition at line 169 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

std::string TopSingleLepton::MonitorEnsemble::label_
private
int TopSingleLepton::MonitorEnsemble::logged_
private

number of logged interesting events

Definition at line 181 of file TopSingleLeptonDQM.h.

Referenced by fill().

double TopSingleLepton::MonitorEnsemble::lowerEdge_
private

mass window upper and lower edge

Definition at line 178 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

std::vector<edm::EDGetTokenT<edm::View<reco::MET> > > TopSingleLepton::MonitorEnsemble::mets_
private

considers a vector of METs

Definition at line 111 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

edm::EDGetTokenT<reco::JetCorrector> TopSingleLepton::MonitorEnsemble::mJetCorrector
private

Definition at line 125 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

std::unique_ptr<StringCutObjectSelector<reco::PFCandidate> > TopSingleLepton::MonitorEnsemble::muonIso_
private

extra isolation criterion on muon

Definition at line 154 of file TopSingleLeptonDQM.h.

Referenced by MonitorEnsemble().

edm::EDGetTokenT<edm::View<reco::PFCandidate> > TopSingleLepton::MonitorEnsemble::muons_
private

Definition at line 114 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

std::unique_ptr<StringCutObjectSelector<reco::PFCandidate> > TopSingleLepton::MonitorEnsemble::muonSelect_
private

extra selection on muons

Definition at line 157 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

edm::EDGetTokenT<edm::View<reco::Vertex> > TopSingleLepton::MonitorEnsemble::pvs_
private

Definition at line 116 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

std::unique_ptr<StringCutObjectSelector<reco::Vertex> > TopSingleLepton::MonitorEnsemble::pvSelect_
private

extra selection on primary vertices; meant to investigate the pile-up effect

Definition at line 151 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

edm::InputTag TopSingleLepton::MonitorEnsemble::rhoTag
private

Definition at line 143 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

edm::EDConsumerBase TopSingleLepton::MonitorEnsemble::tmpConsumerBase
private

Definition at line 185 of file TopSingleLeptonDQM.h.

std::vector<std::string> TopSingleLepton::MonitorEnsemble::triggerPaths_
private

trigger paths for monitoring, expected to be of form signalPath:MonitorPath

Definition at line 121 of file TopSingleLeptonDQM.h.

Referenced by book(), fill(), and MonitorEnsemble().

edm::EDGetTokenT<edm::TriggerResults> TopSingleLepton::MonitorEnsemble::triggerTable_
private

trigger table

Definition at line 118 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

double TopSingleLepton::MonitorEnsemble::upperEdge_
private

Definition at line 178 of file TopSingleLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

Level TopSingleLepton::MonitorEnsemble::verbosity_
private

verbosity level for booking

Definition at line 103 of file TopSingleLeptonDQM.h.

Referenced by book(), and MonitorEnsemble().