CMS 3D CMS Logo

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

#include <SingleTopTChannelLeptonDQM_miniAOD.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_
 
std::unique_ptr< StringCutObjectSelector< pat::Electron > > elecIso_
 extra isolation criterion on electron More...
 
edm::EDGetTokenT< edm::View< pat::Electron > > elecs_
 
std::unique_ptr< StringCutObjectSelector< pat::Electron > > 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_
 extra jetID selection on calo jets More...
 
edm::EDGetTokenT< edm::View< pat::Jet > > jets_
 input sources for monitoring More...
 
std::unique_ptr< StringCutObjectSelector< pat::Jet > > jetSelect
 
std::string jetSelect_
 
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< pat::MET > > > mets_
 considers a vector of METs More...
 
std::unique_ptr< StringCutObjectSelector< pat::Muon > > muonIso_
 extra isolation criterion on muon More...
 
edm::EDGetTokenT< edm::View< pat::Muon > > muons_
 
std::unique_ptr< StringCutObjectSelector< pat::Muon > > 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 30 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Member Enumeration Documentation

◆ Level

different verbosity levels

Enumerator
STANDARD 
VERBOSE 
DEBUG 

Definition at line 33 of file SingleTopTChannelLeptonDQM_miniAOD.h.

33 { STANDARD, VERBOSE, DEBUG };

Constructor & Destructor Documentation

◆ MonitorEnsemble()

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

default contructor

Definition at line 29 of file SingleTopTChannelLeptonDQM_miniAOD.cc.

30  : label_(label),
31  elecIso_(nullptr),
32  elecSelect_(nullptr),
33  pvSelect_(nullptr),
34  muonIso_(nullptr),
35  muonSelect_(nullptr),
36  jetIDSelect_(nullptr),
37  jetSelect(nullptr),
38  includeBTag_(false),
39  lowerEdge_(-1.),
40  upperEdge_(-1.),
41  logged_(0) {
42  // sources have to be given; this PSet is not optional
43  edm::ParameterSet sources = cfg.getParameter<edm::ParameterSet>("sources");
44  // muons_ = iC.consumes<edm::View<reco::PFCandidate> >(
45  // sources.getParameter<edm::InputTag>("muons"));
46 
47  muons_ = iC.consumes<edm::View<pat::Muon>>(sources.getParameter<edm::InputTag>("muons"));
48 
49  elecs_ = iC.consumes<edm::View<pat::Electron>>(sources.getParameter<edm::InputTag>("elecs"));
50  pvs_ = iC.consumes<edm::View<reco::Vertex>>(sources.getParameter<edm::InputTag>("pvs"));
51  jets_ = iC.consumes<edm::View<pat::Jet>>(sources.getParameter<edm::InputTag>("jets"));
52  for (edm::InputTag const& tag : sources.getParameter<std::vector<edm::InputTag>>("mets"))
53  mets_.push_back(iC.consumes<edm::View<pat::MET>>(tag));
54  // electronExtras are optional; they may be omitted or
55  // empty
56  if (cfg.existsAs<edm::ParameterSet>("elecExtras")) {
57  edm::ParameterSet elecExtras = cfg.getParameter<edm::ParameterSet>("elecExtras");
58  // select is optional; in case it's not found no
59  // selection will be applied
60  if (elecExtras.existsAs<std::string>("select")) {
62  }
63  // isolation is optional; in case it's not found no
64  // isolation will be applied
65  if (elecExtras.existsAs<std::string>("isolation")) {
66  elecIso_.reset(new StringCutObjectSelector<pat::Electron>(elecExtras.getParameter<std::string>("isolation")));
67  }
68 
69  if (elecExtras.existsAs<std::string>("rho")) {
70  rhoTag = elecExtras.getParameter<edm::InputTag>("rho");
71  }
72  // electronId is optional; in case it's not found the
73  // InputTag will remain empty
74  if (elecExtras.existsAs<edm::ParameterSet>("electronId")) {
75  edm::ParameterSet elecId = elecExtras.getParameter<edm::ParameterSet>("electronId");
77  eidCutValue_ = elecId.getParameter<double>("cutValue");
78  }
79  }
80  // pvExtras are opetional; they may be omitted or empty
81  if (cfg.existsAs<edm::ParameterSet>("pvExtras")) {
82  edm::ParameterSet pvExtras = cfg.getParameter<edm::ParameterSet>("pvExtras");
83  // select is optional; in case it's not found no
84  // selection will be applied
85  if (pvExtras.existsAs<std::string>("select")) {
86  pvSelect_.reset(new StringCutObjectSelector<reco::Vertex>(pvExtras.getParameter<std::string>("select")));
87  }
88  }
89  // muonExtras are optional; they may be omitted or empty
90  if (cfg.existsAs<edm::ParameterSet>("muonExtras")) {
91  edm::ParameterSet muonExtras = cfg.getParameter<edm::ParameterSet>("muonExtras");
92  // select is optional; in case it's not found no
93  // selection will be applied
94  if (muonExtras.existsAs<std::string>("select")) {
95  muonSelect_.reset(new StringCutObjectSelector<pat::Muon>(muonExtras.getParameter<std::string>("select")));
96  }
97  // isolation is optional; in case it's not found no
98  // isolation will be applied
99  if (muonExtras.existsAs<std::string>("isolation")) {
100  muonIso_.reset(new StringCutObjectSelector<pat::Muon>(muonExtras.getParameter<std::string>("isolation")));
101  }
102  }
103 
104  // jetExtras are optional; they may be omitted or
105  // empty
106  if (cfg.existsAs<edm::ParameterSet>("jetExtras")) {
107  edm::ParameterSet jetExtras = cfg.getParameter<edm::ParameterSet>("jetExtras");
108  // jetCorrector is optional; in case it's not found
109  // the InputTag will remain empty
110  if (jetExtras.existsAs<std::string>("jetCorrector")) {
111  jetCorrector_ = jetExtras.getParameter<std::string>("jetCorrector");
112  }
113  // read jetID information if it exists
114  if (jetExtras.existsAs<edm::ParameterSet>("jetID")) {
115  edm::ParameterSet jetID = jetExtras.getParameter<edm::ParameterSet>("jetID");
117  jetIDSelect_.reset(new StringCutObjectSelector<reco::JetID>(jetID.getParameter<std::string>("select")));
118  }
119  // select is optional; in case it's not found no
120  // selection will be applied (only implemented for
121  // CaloJets at the moment)
122  if (jetExtras.existsAs<std::string>("select")) {
123  jetSelect_ = jetExtras.getParameter<std::string>("select");
125  }
126  }
127 
128  // triggerExtras are optional; they may be omitted or empty
129  if (cfg.existsAs<edm::ParameterSet>("triggerExtras")) {
130  edm::ParameterSet triggerExtras = cfg.getParameter<edm::ParameterSet>("triggerExtras");
132  triggerPaths_ = triggerExtras.getParameter<std::vector<std::string>>("paths");
133  }
134 
135  // massExtras is optional; in case it's not found no mass
136  // window cuts are applied for the same flavor monitor
137  // histograms
138  if (cfg.existsAs<edm::ParameterSet>("massExtras")) {
139  edm::ParameterSet massExtras = cfg.getParameter<edm::ParameterSet>("massExtras");
140  lowerEdge_ = massExtras.getParameter<double>("lowerEdge");
141  upperEdge_ = massExtras.getParameter<double>("upperEdge");
142  }
143 
144  // setup the verbosity level for booking histograms;
145  // per default the verbosity level will be set to
146  // STANDARD. This will also be the chosen level in
147  // the case when the monitoring PSet is not found
149  if (cfg.existsAs<edm::ParameterSet>("monitoring")) {
150  edm::ParameterSet monitoring = cfg.getParameter<edm::ParameterSet>("monitoring");
151  if (monitoring.getParameter<std::string>("verbosity") == "DEBUG")
152  verbosity_ = DEBUG;
153  if (monitoring.getParameter<std::string>("verbosity") == "VERBOSE")
155  if (monitoring.getParameter<std::string>("verbosity") == "STANDARD")
157  }
158  // and don't forget to do the histogram booking
159  directory_ = cfg.getParameter<std::string>("directory");
160  // book(ibooker);
161  }

References looper::cfg, DEBUG, directory_, eidCutValue_, singleTopDQM_cfi::elecExtras, elecIso_, elecs_, elecSelect_, electronId_, edm::ParameterSet::getParameter(), jetCorrector_, singleTopDQM_cfi::jetExtras, jetIDLabel_, jetIDSelect_, jets_, jetSelect, jetSelect_, lowerEdge_, singleTopDQM_cfi::massExtras, mets_, 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, triggerPaths_, triggerTable_, upperEdge_, VERBOSE, and verbosity_.

◆ ~MonitorEnsemble()

SingleTopTChannelLepton_miniAOD::MonitorEnsemble::~MonitorEnsemble ( )
inline

default destructor

Definition at line 39 of file SingleTopTChannelLeptonDQM_miniAOD.h.

39 {};

Member Function Documentation

◆ book()

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

book histograms in subdirectory directory

Definition at line 163 of file SingleTopTChannelLeptonDQM_miniAOD.cc.

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

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), directory_, hists_, label_, dqm::implementation::NavigatorBase::setCurrentFolder(), STANDARD, AlCaHLTBitMon_QueryRunRegistry::string, triggerBinLabels(), triggerPaths_, VERBOSE, and verbosity_.

◆ booked()

bool SingleTopTChannelLepton_miniAOD::MonitorEnsemble::booked ( const std::string  histName) const
inlineprivate

check if histogram was booked

Definition at line 63 of file SingleTopTChannelLeptonDQM_miniAOD.h.

63 { return hists_.find(histName) != hists_.end(); };

References hists_.

Referenced by fill().

◆ fill() [1/5]

void MonitorEnsemble::fill ( const edm::Event event,
const edm::EventSetup setup 
)

fill monitor histograms with electronId and jetCorrections

Definition at line 347 of file SingleTopTChannelLeptonDQM_miniAOD.cc.

347  {
348  // fetch trigger event if configured such
350 
352  if (!event.getByToken(triggerTable_, triggerTable))
353  return;
354  }
355 
356  /*
357  ------------------------------------------------------------
358 
359  Primary Vertex Monitoring
360 
361  ------------------------------------------------------------
362  */
363  // fill monitoring plots for primary verices
365  if (!event.getByToken(pvs_, pvs))
366  return;
367  const reco::Vertex& pver = pvs->front();
368 
369  unsigned int pvMult = 0;
370  if (pvs.isValid()) {
371  for (edm::View<reco::Vertex>::const_iterator pv = pvs->begin(); pv != pvs->end(); ++pv) {
372  bool isGood =
373  (!(pv->isFake()) && (pv->ndof() > 4.0) && (abs(pv->z()) < 24.0) && (abs(pv->position().Rho()) < 2.0));
374  if (!isGood)
375  continue;
376  pvMult++;
377  }
378  //std::cout<<" npv "<<testn<<endl;
379  }
380 
381  fill("pvMult_", pvMult);
382 
383  /*
384  ------------------------------------------------------------
385 
386  Run and Inst. Luminosity information (Inst. Lumi. filled now with a dummy
387  value=5.0)
388 
389  ------------------------------------------------------------
390  */
391 
392  //if (!event.eventAuxiliary().run()) return;
393 
394  //fill("RunNumb_", event.eventAuxiliary().run());
395 
396  //double dummy = 5.;
397  //fill("InstLumi_", dummy);
398 
399  /*
400  ------------------------------------------------------------
401 
402  Electron Monitoring
403 
404  ------------------------------------------------------------
405  */
406 
407  // fill monitoring plots for electrons
409  if (!event.getByToken(elecs_, elecs))
410  return;
411 
412  edm::Handle<double> _rhoHandle;
413  event.getByLabel(rhoTag, _rhoHandle);
414  //if (!event.getByToken(elecs_, elecs)) return;
415 
416  // check availability of electron id
418  if (!electronId_.isUninitialized()) {
419  if (!event.getByToken(electronId_, electronId))
420  return;
421  }
422 
423  // loop electron collection
424  unsigned int eMultIso = 0, eMult = 0;
425  std::vector<const pat::Electron*> isoElecs;
426 
428 
429  for (edm::View<pat::Electron>::const_iterator elec = elecs->begin(); elec != elecs->end(); ++elec) {
430  if (true) { //loose id
431  if (!elecSelect_ || (*elecSelect_)(*elec)) {
432  double el_ChHadIso = elec->pfIsolationVariables().sumChargedHadronPt;
433  double el_NeHadIso = elec->pfIsolationVariables().sumNeutralHadronEt;
434  double el_PhIso = elec->pfIsolationVariables().sumPhotonEt;
435 
436  double rho = _rhoHandle.isValid() ? (float)(*_rhoHandle) : 0;
437  double absEta = abs(elec->superCluster()->eta());
438  double eA = 0;
439  if (absEta < 1.000)
440  eA = 0.1703;
441  else if (absEta < 1.479)
442  eA = 0.1715;
443  else if (absEta < 2.000)
444  eA = 0.1213;
445  else if (absEta < 2.200)
446  eA = 0.1230;
447  else if (absEta < 2.300)
448  eA = 0.1635;
449  else if (absEta < 2.400)
450  eA = 0.1937;
451  else if (absEta < 5.000)
452  eA = 0.2393;
453 
454  double el_pfRelIso = (el_ChHadIso + max(0., el_NeHadIso + el_PhIso - rho * eA)) / elec->pt();
455 
456  ++eMult;
457 
458  if (eMult == 1) {
459  fill("elecRelIso_", el_pfRelIso);
460  fill("elecChHadIso_", el_ChHadIso);
461  fill("elecNeHadIso_", el_NeHadIso);
462  fill("elecPhIso_", el_PhIso);
463  }
464  //loose Iso
465  //if(!((el_pfRelIso<0.0994 && absEta<1.479)||(el_pfRelIso<0.107 && absEta>1.479)))continue;
466 
467  //tight Iso
468  if (!((el_pfRelIso < 0.0588 && absEta < 1.479) || (el_pfRelIso < 0.0571 && absEta > 1.479)))
469  continue;
470  ++eMultIso;
471 
472  if (eMultIso == 1) {
473  // restrict to the leading electron
474  e = *elec;
475 
476  fill("elecPt_", elec->pt());
477  fill("elecEta_", elec->eta());
478  fill("elecPhi_", elec->phi());
479  }
480  }
481  }
482  }
483  //fill("elecMult_", eMult);
484  fill("elecMultTight_", eMultIso);
485 
486  /*
487  ------------------------------------------------------------
488 
489  Muon Monitoring
490 
491  ------------------------------------------------------------
492  */
493 
494  // fill monitoring plots for muons
495  unsigned int mMult = 0, mTight = 0;
496 
498 
499  pat::Muon mu;
500 
502 
503  if (!event.getByToken(muons_, muons))
504  return;
505 
506  for (edm::View<pat::Muon>::const_iterator muon = muons->begin(); muon != muons->end(); ++muon) {
507  // restrict to globalMuons
508  if (muon->isGlobalMuon()) {
509  fill("muonDelZ_", muon->innerTrack()->vz()); // CB using inner track!
510  fill("muonDelXY_", muon->innerTrack()->vx(), muon->innerTrack()->vy());
511 
512  // apply preselection loose muon
513  if (!muonSelect_ || (*muonSelect_)(*muon)) {
514  //loose muon count
515  ++mMult;
516 
517  double chHadPt = muon->pfIsolationR04().sumChargedHadronPt;
518  double neHadEt = muon->pfIsolationR04().sumNeutralHadronEt;
519  double phoEt = muon->pfIsolationR04().sumPhotonEt;
520 
521  double pfRelIso = (chHadPt + max(0., neHadEt + phoEt - 0.5 * muon->pfIsolationR04().sumPUPt)) /
522  muon->pt(); // CB dBeta corrected iso!
523 
524  if (!(muon->isGlobalMuon() && muon->isPFMuon() && muon->globalTrack()->normalizedChi2() < 10. &&
525  muon->globalTrack()->hitPattern().numberOfValidMuonHits() > 0 && muon->numberOfMatchedStations() > 1 &&
526  fabs(muon->muonBestTrack()->dxy(pver.position())) < 0.2 &&
527  fabs(muon->muonBestTrack()->dz(pver.position())) < 0.5 &&
528  muon->innerTrack()->hitPattern().numberOfValidPixelHits() > 0 &&
529  muon->innerTrack()->hitPattern().trackerLayersWithMeasurement() > 5))
530  continue;
531 
532  if (mMult == 1) {
533  // restrict to leading muon
534  fill("muonRelIso_", pfRelIso);
535  fill("muonChHadIso_", chHadPt);
536  fill("muonNeHadIso_", neHadEt);
537  fill("muonPhIso_", phoEt);
538  fill("muonRelIso_", pfRelIso);
539  }
540 
541  if (!(pfRelIso < 0.15))
542  continue;
543 
544  ++mTight;
545 
546  //tight id
547  if (mTight == 1) {
548  // restrict to leading muon
549  mu = *muon;
550  fill("muonPt_", muon->pt());
551  fill("muonEta_", muon->eta());
552  fill("muonPhi_", muon->phi());
553  }
554  }
555  }
556  }
557  fill("muonMult_", mMult); //loose
558  fill("muonMultTight_", mTight); //tight id & iso
559 
560  /*
561  ------------------------------------------------------------
562 
563  Jet Monitoring
564 
565  ------------------------------------------------------------
566  */
567 
568  // loop jet collection
569  std::vector<pat::Jet> correctedJets;
570  std::vector<double> JetTagValues;
571  pat::Jet TaggedJetCand;
572  vector<double> bJetDiscVal;
573 
574  unsigned int mult = 0, loosemult = 0, multBCSVM = 0;
575 
577  if (!event.getByToken(jets_, jets)) {
578  return;
579  }
580 
581  for (edm::View<pat::Jet>::const_iterator jet = jets->begin(); jet != jets->end(); ++jet) {
582  // check jetID for calo jets
583  //unsigned int idx = jet - jets->begin();
584 
585  pat::Jet sel = *jet;
586 
587  if (jetSelect == nullptr)
589 
590  if (!(*jetSelect)(sel))
591  continue;
592  // if (!jetSelect(sel)) continue;
593 
594  // prepare jet to fill monitor histograms
595  pat::Jet monitorJet = *jet;
596 
597  ++mult;
598 
599  if (monitorJet.chargedHadronEnergyFraction() > 0 && monitorJet.chargedMultiplicity() > 0 &&
600  monitorJet.chargedEmEnergyFraction() < 0.99 && monitorJet.neutralHadronEnergyFraction() < 0.99 &&
601  monitorJet.neutralEmEnergyFraction() < 0.99 &&
602  (monitorJet.chargedMultiplicity() + monitorJet.neutralMultiplicity()) > 1) {
603  correctedJets.push_back(monitorJet);
604  ++loosemult; // determine jet multiplicity
605 
606  fill("jetBCSV_",
607  monitorJet.bDiscriminator(
608  "pfCombinedInclusiveSecondaryVertexV2BJetTags")); //hard coded discriminator and value right now.
609  if (monitorJet.bDiscriminator("pfCombinedInclusiveSecondaryVertexV2BJetTags") > 0.89) {
610  if (multBCSVM == 0) {
611  TaggedJetCand = monitorJet;
612  bJetDiscVal.push_back(monitorJet.bDiscriminator("pfCombinedInclusiveSecondaryVertexV2BJetTags"));
613  } else if (multBCSVM == 1) {
614  bJetDiscVal.push_back(monitorJet.bDiscriminator("pfCombinedInclusiveSecondaryVertexV2BJetTags"));
615  if (bJetDiscVal[1] > bJetDiscVal[0])
616  TaggedJetCand = monitorJet;
617  }
618 
619  ++multBCSVM;
620  }
621 
622  // Fill a vector with Jet b-tag WP for later M3+1tag calculation: CSV
623  // tagger
624  JetTagValues.push_back(monitorJet.bDiscriminator("pfCombinedInclusiveSecondaryVertexV2BJetTags"));
625  // }
626  // fill pt (raw or L2L3) for the leading four jets
627  if (loosemult == 1) {
628  //cout<<" jet id= "<<monitorJet.chargedHadronEnergyFraction()<<endl;
629 
630  fill("jet1Pt_", monitorJet.pt());
631  //fill("jet1PtRaw_", jet->pt());
632  fill("jet1Eta_", monitorJet.eta());
633  };
634  if (loosemult == 2) {
635  fill("jet2Pt_", monitorJet.pt());
636  //fill("jet2PtRaw_", jet->pt());
637  fill("jet2Eta_", monitorJet.eta());
638  }
639  }
640  }
641  fill("jetMult_", mult);
642  fill("jetLooseMult_", loosemult);
643  fill("jetMultBCSVM_", multBCSVM);
644 
645  /*
646  ------------------------------------------------------------
647 
648  MET Monitoring
649 
650  ------------------------------------------------------------
651  */
652 
653  // fill monitoring histograms for met
654 
655  pat::MET mET;
656 
657  for (std::vector<edm::EDGetTokenT<edm::View<pat::MET>>>::const_iterator met_ = mets_.begin(); met_ != mets_.end();
658  ++met_) {
660  if (!event.getByToken(*met_, met))
661  continue;
662  if (met->begin() != met->end()) {
663  unsigned int idx = met_ - mets_.begin();
664  if (idx == 0)
665  fill("slimmedMETs_", met->begin()->et());
666  if (idx == 1)
667  fill("slimmedMETsNoHF_", met->begin()->et());
668  if (idx == 2)
669  fill("slimmedMETsPuppi_", met->begin()->et());
670  }
671  }
672 
673  /*
674  ------------------------------------------------------------
675 
676  Event Monitoring
677 
678  ------------------------------------------------------------
679  */
680 
681  // fill W boson and top mass estimates
682 
683  Calculate_miniAOD eventKinematics(MAXJETS, WMASS);
684  double wMass = eventKinematics.massWBoson(correctedJets);
685  double topMass = eventKinematics.massTopQuark(correctedJets);
686  if (wMass >= 0 && topMass >= 0) {
687  fill("massW_", wMass);
688  fill("massTop_", topMass);
689  }
690 
691  // Fill M3 with Btag (CSV Tight) requirement
692 
693  // if (!includeBTag_) return;
694  //if (correctedJets.size() != JetTagValues.size()) return;
695  //double btopMass =
696  // eventKinematics.massBTopQuark(correctedJets, JetTagValues, 0.89); //hard coded CSVv2 value
697 
698  //if (btopMass >= 0) fill("massBTop_", btopMass);
699 
700  // fill plots for trigger monitoring
701  if ((lowerEdge_ == -1. && upperEdge_ == -1.) || (lowerEdge_ < wMass && wMass < upperEdge_)) {
703  fill(event, *triggerTable, "trigger", triggerPaths_);
704  if (logged_ <= hists_.find("eventLogger_")->second->getNbinsY()) {
705  // log runnumber, lumi block, event number & some
706  // more pysics infomation for interesting events
707  fill("eventLogger_", 0.5, logged_ + 0.5, event.eventAuxiliary().run());
708  fill("eventLogger_", 1.5, logged_ + 0.5, event.eventAuxiliary().luminosityBlock());
709  fill("eventLogger_", 2.5, logged_ + 0.5, event.eventAuxiliary().event());
710  if (!correctedJets.empty())
711  fill("eventLogger_", 3.5, logged_ + 0.5, correctedJets[0].pt());
712  if (correctedJets.size() > 1)
713  fill("eventLogger_", 4.5, logged_ + 0.5, correctedJets[1].pt());
714  if (correctedJets.size() > 2)
715  fill("eventLogger_", 5.5, logged_ + 0.5, correctedJets[2].pt());
716  if (correctedJets.size() > 3)
717  fill("eventLogger_", 6.5, logged_ + 0.5, correctedJets[3].pt());
718 
719  fill("eventLogger_", 7.5, logged_ + 0.5, wMass);
720  fill("eventLogger_", 8.5, logged_ + 0.5, topMass);
721  ++logged_;
722  }
723  }
724 
725  if (multBCSVM != 0 && mTight == 1) {
726  double mtW = eventKinematics.tmassWBoson(&mu, mET, TaggedJetCand);
727  fill("MTWm_", mtW);
728  double MTT = eventKinematics.tmassTopQuark(&mu, mET, TaggedJetCand);
729  fill("mMTT_", MTT);
730  }
731 
732  if (multBCSVM != 0 && eMultIso == 1) {
733  double mtW = eventKinematics.tmassWBoson(&e, mET, TaggedJetCand);
734  fill("MTWe_", mtW);
735  double MTT = eventKinematics.tmassTopQuark(&e, mET, TaggedJetCand);
736  fill("eMTT_", MTT);
737  }
738  }

References funct::abs(), pat::Jet::bDiscriminator(), pat::Jet::chargedEmEnergyFraction(), pat::Jet::chargedHadronEnergyFraction(), pat::Jet::chargedMultiplicity(), MillePedeFileConverter_cfg::e, singleTopDQM_cfi::elecs, elecs_, elecSelect_, topSingleLeptonDQM_PU_cfi::electronId, electronId_, reco::LeafCandidate::eta(), dqmMemoryStats::float, hists_, training_settings::idx, edm::EDGetTokenT< T >::isUninitialized(), edm::HandleBase::isValid(), metsig::jet, singleTopDQM_cfi::jets, jets_, jetSelect, jetSelect_, logged_, lowerEdge_, Calculate_miniAOD::massTopQuark(), Calculate_miniAOD::massWBoson(), SiStripPI::max, SingleTopTChannelLepton_miniAOD::MAXJETS, BTaggingMonitor_cfi::met, mets_, amptDefaultParameters_cff::mu, VarParsing::mult, HLT_2018_cff::muon, PDWG_BPHSkim_cff::muons, muons_, muonSelect_, pat::Jet::neutralEmEnergyFraction(), pat::Jet::neutralHadronEnergyFraction(), pat::Jet::neutralMultiplicity(), reco::Vertex::position(), DiDispStaMuonMonitor_cfi::pt, reco::LeafCandidate::pt(), MetAnalyzer::pv(), FSQDQM_cfi::pvs, pvs_, rhoTag, EgammaValidation_Wenu_cff::sel, Calculate_miniAOD::tmassTopQuark(), Calculate_miniAOD::tmassWBoson(), triggerPaths_, triggerTable_, upperEdge_, pseudoTop_cfi::wMass, and SingleTopTChannelLepton_miniAOD::WMASS.

Referenced by fill().

◆ fill() [2/5]

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 156 of file SingleTopTChannelLeptonDQM_miniAOD.h.

159  {
160  for (unsigned int idx = 0; idx < labels.size(); ++idx) {
161  if (accept(event, triggerTable, monitorPath(labels[idx]))) {
162  fill(channel + "Mon_", idx + 0.5);
163  // take care to fill triggerMon_ before evts is being called
164  int evts = hists_.find(channel + "Mon_")->second->getBinContent(idx + 1);
165  double value = hists_.find(channel + "Eff_")->second->getBinContent(idx + 1);
166  fill(
167  channel + "Eff_", idx + 0.5, 1. / evts * (accept(event, triggerTable, selectionPath(labels[idx])) - value));
168  }
169  }
170  }

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

◆ fill() [3/5]

void SingleTopTChannelLepton_miniAOD::MonitorEnsemble::fill ( const std::string  histName,
double  value 
) const
inlineprivate

fill histogram if it had been booked before

Definition at line 65 of file SingleTopTChannelLeptonDQM_miniAOD.h.

65  {
66  if (booked(histName))
67  hists_.find(histName)->second->Fill(value);
68  };

References booked(), and hists_.

◆ fill() [4/5]

void SingleTopTChannelLepton_miniAOD::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 70 of file SingleTopTChannelLeptonDQM_miniAOD.h.

70  {
71  if (booked(histName))
72  hists_.find(histName)->second->Fill(xValue, yValue);
73  };

References booked(), and hists_.

◆ fill() [5/5]

void SingleTopTChannelLepton_miniAOD::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 75 of file SingleTopTChannelLeptonDQM_miniAOD.h.

75  {
76  if (booked(histName))
77  hists_.find(histName)->second->Fill(xValue, yValue, zValue);
78  };

References booked(), and hists_.

◆ monitorPath()

std::string SingleTopTChannelLepton_miniAOD::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 49 of file SingleTopTChannelLeptonDQM_miniAOD.h.

49 { return label.substr(label.find(':') + 1); };

References label.

Referenced by fill(), and triggerBinLabels().

◆ selectionPath()

std::string SingleTopTChannelLepton_miniAOD::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 52 of file SingleTopTChannelLeptonDQM_miniAOD.h.

52 { return label.substr(0, label.find(':')); };

References label.

Referenced by fill(), and triggerBinLabels().

◆ triggerBinLabels()

void MonitorEnsemble::triggerBinLabels ( std::string  channel,
const std::vector< std::string >  labels 
)
inlineprivate

set configurable labels for trigger monitoring histograms

Definition at line 148 of file SingleTopTChannelLeptonDQM_miniAOD.h.

148  {
149  for (unsigned int idx = 0; idx < labels.size(); ++idx) {
150  hists_[channel + "Mon_"]->setBinLabel(idx + 1, "[" + monitorPath(labels[idx]) + "]", 1);
151  hists_[channel + "Eff_"]->setBinLabel(
152  idx + 1, "[" + selectionPath(labels[idx]) + "]|[" + monitorPath(labels[idx]) + "]", 1);
153  }
154  }

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

Referenced by book().

Member Data Documentation

◆ btagCSV_

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

Definition at line 133 of file SingleTopTChannelLeptonDQM_miniAOD.h.

◆ btagCSVWP_

double SingleTopTChannelLepton_miniAOD::MonitorEnsemble::btagCSVWP_
private

Definition at line 135 of file SingleTopTChannelLeptonDQM_miniAOD.h.

◆ btagEff_

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

btag discriminator labels

Definition at line 133 of file SingleTopTChannelLeptonDQM_miniAOD.h.

◆ btagEffWP_

double SingleTopTChannelLepton_miniAOD::MonitorEnsemble::btagEffWP_
private

btag working points

Definition at line 135 of file SingleTopTChannelLeptonDQM_miniAOD.h.

◆ btagPur_

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

Definition at line 133 of file SingleTopTChannelLeptonDQM_miniAOD.h.

◆ btagPurWP_

double SingleTopTChannelLepton_miniAOD::MonitorEnsemble::btagPurWP_
private

Definition at line 135 of file SingleTopTChannelLeptonDQM_miniAOD.h.

◆ btagVtx_

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

Definition at line 133 of file SingleTopTChannelLeptonDQM_miniAOD.h.

◆ btagVtxWP_

double SingleTopTChannelLepton_miniAOD::MonitorEnsemble::btagVtxWP_
private

Definition at line 135 of file SingleTopTChannelLeptonDQM_miniAOD.h.

◆ directory_

std::string SingleTopTChannelLepton_miniAOD::MonitorEnsemble::directory_
private

Definition at line 145 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by book(), and MonitorEnsemble().

◆ eidCutValue_

double SingleTopTChannelLepton_miniAOD::MonitorEnsemble::eidCutValue_
private

Definition at line 103 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by MonitorEnsemble().

◆ elecIso_

std::unique_ptr<StringCutObjectSelector<pat::Electron> > SingleTopTChannelLepton_miniAOD::MonitorEnsemble::elecIso_
private

extra isolation criterion on electron

Definition at line 105 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by MonitorEnsemble().

◆ elecs_

edm::EDGetTokenT<edm::View<pat::Electron> > SingleTopTChannelLepton_miniAOD::MonitorEnsemble::elecs_
private

Definition at line 90 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ elecSelect_

std::unique_ptr<StringCutObjectSelector<pat::Electron> > SingleTopTChannelLepton_miniAOD::MonitorEnsemble::elecSelect_
private

extra selection on electrons

Definition at line 107 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ electronId_

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

electronId label

Definition at line 101 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ hists_

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

histogram container

Definition at line 143 of file SingleTopTChannelLeptonDQM_miniAOD.h.

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

◆ includeBTag_

bool SingleTopTChannelLepton_miniAOD::MonitorEnsemble::includeBTag_
private

include btag information or not to be determined from the cfg

Definition at line 131 of file SingleTopTChannelLeptonDQM_miniAOD.h.

◆ jetCorrector_

std::string SingleTopTChannelLepton_miniAOD::MonitorEnsemble::jetCorrector_
private

jetCorrector

Definition at line 120 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by MonitorEnsemble().

◆ jetIDLabel_

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

jetID as an extra selection type

Definition at line 122 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by MonitorEnsemble().

◆ jetIDSelect_

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

extra jetID selection on calo jets

Definition at line 124 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by MonitorEnsemble().

◆ jets_

edm::EDGetTokenT<edm::View<pat::Jet> > SingleTopTChannelLepton_miniAOD::MonitorEnsemble::jets_
private

input sources for monitoring

Definition at line 88 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ jetSelect

std::unique_ptr<StringCutObjectSelector<pat::Jet> > SingleTopTChannelLepton_miniAOD::MonitorEnsemble::jetSelect
private

Definition at line 128 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ jetSelect_

std::string SingleTopTChannelLepton_miniAOD::MonitorEnsemble::jetSelect_
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 127 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ label_

std::string SingleTopTChannelLepton_miniAOD::MonitorEnsemble::label_
private

◆ logged_

int SingleTopTChannelLepton_miniAOD::MonitorEnsemble::logged_
private

number of logged interesting events

Definition at line 140 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill().

◆ lowerEdge_

double SingleTopTChannelLepton_miniAOD::MonitorEnsemble::lowerEdge_
private

mass window upper and lower edge

Definition at line 137 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ mets_

std::vector<edm::EDGetTokenT<edm::View<pat::MET> > > SingleTopTChannelLepton_miniAOD::MonitorEnsemble::mets_
private

considers a vector of METs

Definition at line 86 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ muonIso_

std::unique_ptr<StringCutObjectSelector<pat::Muon> > SingleTopTChannelLepton_miniAOD::MonitorEnsemble::muonIso_
private

extra isolation criterion on muon

Definition at line 114 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by MonitorEnsemble().

◆ muons_

edm::EDGetTokenT<edm::View<pat::Muon> > SingleTopTChannelLepton_miniAOD::MonitorEnsemble::muons_
private

Definition at line 89 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ muonSelect_

std::unique_ptr<StringCutObjectSelector<pat::Muon> > SingleTopTChannelLepton_miniAOD::MonitorEnsemble::muonSelect_
private

extra selection on muons

Definition at line 117 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ pvs_

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

Definition at line 91 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ pvSelect_

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

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

Definition at line 111 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by MonitorEnsemble().

◆ rhoTag

edm::InputTag SingleTopTChannelLepton_miniAOD::MonitorEnsemble::rhoTag
private

Definition at line 98 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ tmpConsumerBase

edm::EDConsumerBase SingleTopTChannelLepton_miniAOD::MonitorEnsemble::tmpConsumerBase
private

Definition at line 144 of file SingleTopTChannelLeptonDQM_miniAOD.h.

◆ triggerPaths_

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

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

Definition at line 96 of file SingleTopTChannelLeptonDQM_miniAOD.h.

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

◆ triggerTable_

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

trigger table

Definition at line 93 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ upperEdge_

double SingleTopTChannelLepton_miniAOD::MonitorEnsemble::upperEdge_
private

Definition at line 137 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by fill(), and MonitorEnsemble().

◆ verbosity_

Level SingleTopTChannelLepton_miniAOD::MonitorEnsemble::verbosity_
private

verbosity level for booking

Definition at line 78 of file SingleTopTChannelLeptonDQM_miniAOD.h.

Referenced by book(), and MonitorEnsemble().

SingleTopTChannelLepton_miniAOD::MonitorEnsemble::jetSelect
std::unique_ptr< StringCutObjectSelector< pat::Jet > > jetSelect
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:128
SummaryClient_cfi.labels
labels
Definition: SummaryClient_cfi.py:61
PDWG_BPHSkim_cff.muons
muons
Definition: PDWG_BPHSkim_cff.py:47
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::elecSelect_
std::unique_ptr< StringCutObjectSelector< pat::Electron > > elecSelect_
extra selection on electrons
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:107
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::pvs_
edm::EDGetTokenT< edm::View< reco::Vertex > > pvs_
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:91
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
pat::Jet::bDiscriminator
float bDiscriminator(const std::string &theLabel) const
-— methods for accessing b-tagging info -—
muon
Definition: MuonCocktails.h:17
SingleTopTChannelLepton_miniAOD::WMASS
static const double WMASS
Definition: SingleTopTChannelLeptonDQM_miniAOD.cc:27
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
amptDefaultParameters_cff.mu
mu
Definition: amptDefaultParameters_cff.py:16
edm::EDGetTokenT
Definition: EDGetToken.h:33
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::triggerBinLabels
void triggerBinLabels(std::string channel, const std::vector< std::string > labels)
set configurable labels for trigger monitoring histograms
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:148
ZElectronSkim_cff.rho
rho
Definition: ZElectronSkim_cff.py:38
singleTopDQM_cfi.elecExtras
elecExtras
Definition: singleTopDQM_cfi.py:52
pat::Jet::neutralHadronEnergyFraction
float neutralHadronEnergyFraction() const
neutralHadronEnergyFraction (relative to uncorrected jet energy)
Definition: Jet.h:404
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::eidCutValue_
double eidCutValue_
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:103
CalibrationSummaryClient_cfi.sources
sources
Definition: CalibrationSummaryClient_cfi.py:23
reco::Vertex::position
const Point & position() const
position
Definition: Vertex.h:114
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::electronId_
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:101
singleTopDQM_cfi.jets
jets
Definition: singleTopDQM_cfi.py:42
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
pat::Muon
Analysis-level muon class.
Definition: Muon.h:51
topSingleLeptonDQM_PU_cfi.electronId
electronId
when omitted electron plots will be filled w/o cut on electronId
Definition: topSingleLeptonDQM_PU_cfi.py:39
HLT_2018_cff.muon
muon
Definition: HLT_2018_cff.py:10349
edm::Handle< edm::TriggerResults >
training_settings.idx
idx
Definition: training_settings.py:16
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::triggerTable_
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:93
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::hists_
std::map< std::string, MonitorElement * > hists_
histogram container
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:143
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::jets_
edm::EDGetTokenT< edm::View< pat::Jet > > jets_
input sources for monitoring
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:88
BTaggingMonitor_cfi.met
met
Definition: BTaggingMonitor_cfi.py:84
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::includeBTag_
bool includeBTag_
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:131
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::booked
bool booked(const std::string histName) const
check if histogram was booked
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:63
accept
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
pat::Jet
Analysis-level calorimeter jet class.
Definition: Jet.h:77
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::VERBOSE
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:33
singleTopDQM_cfi.pvExtras
pvExtras
Definition: singleTopDQM_cfi.py:49
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
edm::EDGetTokenT::isUninitialized
bool isUninitialized() const
Definition: EDGetToken.h:70
singleTopDQM_cfi.muonExtras
muonExtras
Definition: singleTopDQM_cfi.py:56
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::muonSelect_
std::unique_ptr< StringCutObjectSelector< pat::Muon > > muonSelect_
extra selection on muons
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:117
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:49
singleTopDQM_cfi.elecs
elecs
Definition: singleTopDQM_cfi.py:41
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::jetSelect_
std::string jetSelect_
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:127
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::selectionPath
std::string selectionPath(const std::string &label) const
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:52
pat::Jet::chargedMultiplicity
int chargedMultiplicity() const
chargedMultiplicity
Definition: Jet.h:746
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::STANDARD
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:33
singleTopDQM_cfi.massExtras
massExtras
Definition: singleTopDQM_cfi.py:70
edm::View
Definition: CaloClusterFwd.h:14
edm::ParameterSet
Definition: ParameterSet.h:36
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
pat::Jet::neutralEmEnergyFraction
float neutralEmEnergyFraction() const
neutralEmEnergyFraction (relative to uncorrected jet energy)
Definition: Jet.h:412
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::lowerEdge_
double lowerEdge_
mass window upper and lower edge
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:137
Calculate_miniAOD
Definition: TopDQMHelpers.h:70
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::directory_
std::string directory_
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:145
pat::Jet::neutralMultiplicity
int neutralMultiplicity() const
neutralMultiplicity
Definition: Jet.h:466
MetAnalyzer.pv
def pv(vc)
Definition: MetAnalyzer.py:7
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::jetCorrector_
std::string jetCorrector_
jetCorrector
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:120
value
Definition: value.py:1
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::label_
std::string label_
instance label
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:84
pat::MET
Analysis-level MET class.
Definition: MET.h:40
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::elecIso_
std::unique_ptr< StringCutObjectSelector< pat::Electron > > elecIso_
extra isolation criterion on electron
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:105
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::jetIDLabel_
edm::EDGetTokenT< reco::JetIDValueMap > jetIDLabel_
jetID as an extra selection type
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:122
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::logged_
int logged_
number of logged interesting events
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:140
FSQDQM_cfi.pvs
pvs
Definition: FSQDQM_cfi.py:12
looper.cfg
cfg
Definition: looper.py:297
pat::Jet::chargedEmEnergyFraction
float chargedEmEnergyFraction() const
chargedEmEnergyFraction (relative to uncorrected jet energy)
Definition: Jet.h:408
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::DEBUG
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:33
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::muonIso_
std::unique_ptr< StringCutObjectSelector< pat::Muon > > muonIso_
extra isolation criterion on muon
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:114
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::rhoTag
edm::InputTag rhoTag
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:98
singleTopDQM_cfi.jetExtras
jetExtras
Definition: singleTopDQM_cfi.py:60
pat::Jet::chargedHadronEnergyFraction
float chargedHadronEnergyFraction() const
chargedHadronEnergyFraction (relative to uncorrected jet energy)
Definition: Jet.h:400
singleTopDQM_cfi.monitoring
monitoring
Definition: singleTopDQM_cfi.py:46
metsig::jet
Definition: SignAlgoResolutions.h:47
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::monitorPath
std::string monitorPath(const std::string &label) const
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:49
edm::ValueMap< float >
StringCutObjectSelector< pat::Electron >
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::verbosity_
Level verbosity_
verbosity level for booking
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:78
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::muons_
edm::EDGetTokenT< edm::View< pat::Muon > > muons_
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:89
pseudoTop_cfi.wMass
wMass
Definition: pseudoTop_cfi.py:12
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::upperEdge_
double upperEdge_
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:137
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::jetIDSelect_
std::unique_ptr< StringCutObjectSelector< reco::JetID > > jetIDSelect_
extra jetID selection on calo jets
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:124
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::elecs_
edm::EDGetTokenT< edm::View< pat::Electron > > elecs_
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:90
VarParsing.mult
mult
Definition: VarParsing.py:659
edm::View::const_iterator
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
Definition: View.h:86
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::mets_
std::vector< edm::EDGetTokenT< edm::View< pat::MET > > > mets_
considers a vector of METs
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:86
pat::Electron
Analysis-level electron class.
Definition: Electron.h:51
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::triggerPaths_
std::vector< std::string > triggerPaths_
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:96
EgammaValidation_Wenu_cff.sel
sel
Definition: EgammaValidation_Wenu_cff.py:33
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::pvSelect_
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > pvSelect_
Definition: SingleTopTChannelLeptonDQM_miniAOD.h:111
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
event
Definition: event.py:1
edm::InputTag
Definition: InputTag.h:15
SingleTopTChannelLepton_miniAOD::MAXJETS
static const unsigned int MAXJETS
Definition: SingleTopTChannelLeptonDQM_miniAOD.cc:24
label
const char * label
Definition: PFTauDecayModeTools.cc:11
edm::TriggerResults
Definition: TriggerResults.h:35
reco::Vertex
Definition: Vertex.h:35
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
SingleTopTChannelLepton_miniAOD::MonitorEnsemble::fill
void fill(const edm::Event &event, const edm::EventSetup &setup)
fill monitor histograms with electronId and jetCorrections
Definition: SingleTopTChannelLeptonDQM_miniAOD.cc:347