CMS 3D CMS Logo

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

#include <SingleTopTChannelLeptonDQM.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, const edm::VParameterSet &vcfg, 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::JetTagCollectionbtagCombVtx_
 
double btagCombVtxWP_
 
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< reco::PFCandidate, true > > elecIso
 
std::string elecIso_
 extra isolation criterion on electron More...
 
edm::EDGetTokenT< edm::View< reco::PFCandidate > > elecs_
 
edm::EDGetTokenT< edm::View< reco::GsfElectron > > elecs_gsf_
 
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate, true > > elecSelect
 
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_
 
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...
 
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetlooseSelection_
 
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
 input sources for monitoring More...
 
std::string jetSelect_
 
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, true > > muonIso
 
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, true > > muonSelect
 
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 SingleTopTChannelLeptonDQM.h.

Member Enumeration Documentation

◆ Level

different verbosity levels

Enumerator
STANDARD 
VERBOSE 
DEBUG 

Definition at line 58 of file SingleTopTChannelLeptonDQM.h.

58 { STANDARD, VERBOSE, DEBUG };

Constructor & Destructor Documentation

◆ MonitorEnsemble()

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

default contructor

Definition at line 26 of file SingleTopTChannelLeptonDQM.cc.

30  : label_(label),
31  elecSelect_(nullptr),
32  pvSelect_(nullptr),
33  muonIso_(nullptr),
34  muonSelect_(nullptr),
35  jetIDSelect_(nullptr),
36  jetlooseSelection_(nullptr),
37  jetSelection_(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");
46  jets_ = iC.consumes<edm::View<reco::Jet>>(sources.getParameter<edm::InputTag>("jets"));
47  for (edm::InputTag const& tag : sources.getParameter<std::vector<edm::InputTag>>("mets"))
48  mets_.push_back(iC.consumes<edm::View<reco::MET>>(tag));
49  pvs_ = iC.consumes<edm::View<reco::Vertex>>(sources.getParameter<edm::InputTag>("pvs"));
50  // electronExtras are optional; they may be omitted or
51  // empty
52  if (cfg.existsAs<edm::ParameterSet>("elecExtras")) {
53  // rho for PF isolation with EA corrections
54  // eventrhoToken_ =
55  // iC.consumes<double>(edm::InputTag("fixedGridRhoFastjetAll"));
56 
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")) {
61  elecSelect_ = std::make_unique<StringCutObjectSelector<reco::PFCandidate>>(
62  elecExtras.getParameter<std::string>("select"));
63  }
64 
65  if (elecExtras.existsAs<std::string>("rho")) {
66  rhoTag = elecExtras.getParameter<edm::InputTag>("rho");
67  }
68  // electronId is optional; in case it's not found the
69  // InputTag will remain empty
70  if (elecExtras.existsAs<edm::ParameterSet>("electronId")) {
71  edm::ParameterSet elecId = elecExtras.getParameter<edm::ParameterSet>("electronId");
73  eidCutValue_ = elecId.getParameter<double>("cutValue");
74  }
75  }
76  // pvExtras are optional; they may be omitted or empty
77  if (cfg.existsAs<edm::ParameterSet>("pvExtras")) {
78  edm::ParameterSet pvExtras = cfg.getParameter<edm::ParameterSet>("pvExtras");
79  // select is optional; in case it's not found no
80  // selection will be applied
81  if (pvExtras.existsAs<std::string>("select")) {
82  pvSelect_ =
83  std::make_unique<StringCutObjectSelector<reco::Vertex>>(pvExtras.getParameter<std::string>("select"));
84  }
85  }
86  // muonExtras are optional; they may be omitted or empty
87  if (cfg.existsAs<edm::ParameterSet>("muonExtras")) {
88  edm::ParameterSet muonExtras = cfg.getParameter<edm::ParameterSet>("muonExtras");
89  // select is optional; in case it's not found no
90  // selection will be applied
91  if (muonExtras.existsAs<std::string>("select")) {
92  muonSelect_ = std::make_unique<StringCutObjectSelector<reco::PFCandidate>>(
93  muonExtras.getParameter<std::string>("select"));
94  }
95  // isolation is optional; in case it's not found no
96  // isolation will be applied
97  if (muonExtras.existsAs<std::string>("isolation")) {
98  muonIso_ = std::make_unique<StringCutObjectSelector<reco::PFCandidate>>(
99  muonExtras.getParameter<std::string>("isolation"));
100  }
101  }
102 
103  // jetExtras are optional; they may be omitted or
104  // empty
105  if (cfg.existsAs<edm::ParameterSet>("jetExtras")) {
106  edm::ParameterSet jetExtras = cfg.getParameter<edm::ParameterSet>("jetExtras");
107  // jetCorrector is optional; in case it's not found
108  // the InputTag will remain empty
109  if (jetExtras.existsAs<edm::InputTag>("jetCorrector")) {
110  mJetCorrector = iC.consumes<reco::JetCorrector>(jetExtras.getParameter<edm::InputTag>("jetCorrector"));
111  }
112  // read jetID information if it exists
113  if (jetExtras.existsAs<edm::ParameterSet>("jetID")) {
114  edm::ParameterSet jetID = jetExtras.getParameter<edm::ParameterSet>("jetID");
116  jetIDSelect_ =
117  std::make_unique<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");
124  jetSelection_ = std::make_unique<StringCutObjectSelector<reco::PFJet>>(jetSelect_);
125  jetlooseSelection_ = std::make_unique<StringCutObjectSelector<reco::PFJet>>(
126  "chargedHadronEnergyFraction()>0 && chargedMultiplicity()>0 && chargedEmEnergyFraction()<0.99 && "
127  "neutralHadronEnergyFraction()<0.99 && neutralEmEnergyFraction()<0.99 && "
128  "(chargedMultiplicity()+neutralMultiplicity())>1");
129  }
130 
131  // jetBDiscriminators are optional; in case they are
132  // not found the InputTag will remain empty; they
133  // consist of pairs of edm::JetFlavorAssociation's &
134  // corresponding working points
135  includeBTag_ = jetExtras.existsAs<edm::ParameterSet>("jetBTaggers");
136  if (includeBTag_) {
137  edm::ParameterSet btagCSV =
138  jetExtras.getParameter<edm::ParameterSet>("jetBTaggers").getParameter<edm::ParameterSet>("cvsVertex");
140  btagCSVWP_ = btagCSV.getParameter<double>("workingPoint");
141  }
142  }
143 
144  // triggerExtras are optional; they may be omitted or empty
145  if (cfg.existsAs<edm::ParameterSet>("triggerExtras")) {
146  edm::ParameterSet triggerExtras = cfg.getParameter<edm::ParameterSet>("triggerExtras");
148  triggerPaths_ = triggerExtras.getParameter<std::vector<std::string>>("paths");
149  }
150 
151  // massExtras is optional; in case it's not found no mass
152  // window cuts are applied for the same flavor monitor
153  // histograms
154  if (cfg.existsAs<edm::ParameterSet>("massExtras")) {
155  edm::ParameterSet massExtras = cfg.getParameter<edm::ParameterSet>("massExtras");
156  lowerEdge_ = massExtras.getParameter<double>("lowerEdge");
157  upperEdge_ = massExtras.getParameter<double>("upperEdge");
158  }
159 
160  // setup the verbosity level for booking histograms;
161  // per default the verbosity level will be set to
162  // STANDARD. This will also be the chosen level in
163  // the case when the monitoring PSet is not found
165  if (cfg.existsAs<edm::ParameterSet>("monitoring")) {
166  edm::ParameterSet monitoring = cfg.getParameter<edm::ParameterSet>("monitoring");
167  if (monitoring.getParameter<std::string>("verbosity") == "DEBUG")
168  verbosity_ = DEBUG;
169  if (monitoring.getParameter<std::string>("verbosity") == "VERBOSE")
171  if (monitoring.getParameter<std::string>("verbosity") == "STANDARD")
173  }
174  // and don't forget to do the histogram booking
175  directory_ = cfg.getParameter<std::string>("directory");
176  }

References btagCSV_, btagCSVWP_, looper::cfg, DEBUG, directory_, eidCutValue_, singleTopDQM_cfi::elecExtras, elecs_, elecSelect_, electronId_, edm::ParameterSet::getParameter(), includeBTag_, singleTopDQM_cfi::jetExtras, 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, triggerPaths_, triggerTable_, upperEdge_, VERBOSE, and verbosity_.

◆ ~MonitorEnsemble()

SingleTopTChannelLepton::MonitorEnsemble::~MonitorEnsemble ( )
inline

default destructor

Definition at line 67 of file SingleTopTChannelLeptonDQM.h.

67 {}

Member Function Documentation

◆ book()

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

book histograms in subdirectory directory

Definition at line 178 of file SingleTopTChannelLeptonDQM.cc.

178  {
179  // set up the current directory path
180  std::string current(directory_);
181  current += label_;
182  ibooker.setCurrentFolder(current);
183 
184  // --- [STANDARD] --- //
185  // number of selected primary vertices
186  hists_["pvMult_"] = ibooker.book1D("PvMult", "N_{good pvs}", 50, 0., 50.);
187  // pt of the leading muon
188  hists_["muonPt_"] = ibooker.book1D("MuonPt", "pt(#mu TightId, TightIso)", 40, 0., 200.);
189  // muon multiplicity before std isolation
190  hists_["muonMult_"] = ibooker.book1D("MuonMult", "N_{loose}(#mu)", 10, 0., 10.);
191  // muon multiplicity tight Id and tight Iso
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  // multiplicity of jets with pt>30 (corrected to L1+L2+L3)
196  hists_["jetMult_"] = ibooker.book1D("JetMult", "N_{30}(jet)", 10, 0., 10.);
197  // multiplicity of loose Id jets with pt>30
198  hists_["jetLooseMult_"] = ibooker.book1D("JetLooseMult", "N_{30,loose}(jet)", 10, 0., 10.);
199 
200  // MET (pflow)
201  hists_["metPflow_"] = ibooker.book1D("METPflow", "MET_{Pflow}", 50, 0., 200.);
202  // W mass estimate
203  hists_["massW_"] = ibooker.book1D("MassW", "M(W)", 60, 0., 300.);
204  // Top mass estimate
205  hists_["massTop_"] = ibooker.book1D("MassTop", "M(Top)", 50, 0., 500.);
206  // W mass transverse estimate mu
207  hists_["MTWm_"] = ibooker.book1D("MTWm", "M_{T}^{W}(#mu)", 60, 0., 300.);
208  // Top mass transverse estimate mu
209  hists_["mMTT_"] = ibooker.book1D("mMTT", "M_{T}^{t}(#mu)", 50, 0., 500.);
210 
211  // W mass transverse estimate e
212  hists_["MTWe_"] = ibooker.book1D("MTWe", "M_{T}^{W}(e)", 60, 0., 300.);
213  // Top mass transverse estimate e
214  hists_["eMTT_"] = ibooker.book1D("eMTT", "M_{T}^{t}(e)", 50, 0., 500.);
215 
216  // set bin labels for trigger monitoring
218 
219  if (verbosity_ == STANDARD)
220  return;
221 
222  // --- [VERBOSE] --- //
223 
224  // eta of the leading muon
225  hists_["muonEta_"] = ibooker.book1D("MuonEta", "#eta(#mu TightId, TightIso)", 30, -3., 3.);
226  // relative isolation of the candidate muon (depending on the decay channel)
227  hists_["muonRelIso_"] = ibooker.book1D("MuonRelIso", "Iso_{Rel}(#mu TightId) (#Delta#beta Corrected)", 50, 0., 1.);
228  // phi of the leading muon
229  hists_["muonPhi_"] = ibooker.book1D("MuonPhi", "#phi(#mu TightId, TightIso)", 40, -4., 4.);
230  // eta of the leading electron
231  hists_["elecEta_"] = ibooker.book1D("ElecEta", "#eta(e tightId, TightIso)", 30, -3., 3.);
232  // std isolation variable of the leading electron
233  hists_["elecRelIso_"] = ibooker.book1D("ElecRelIso", "Iso_{Rel}(e TightId)", 50, 0., 1.);
234  // phi of the leading electron
235  hists_["elecPhi_"] = ibooker.book1D("ElecPhi", "#phi(e tightId, TightIso)", 40, -4., 4.);
236  // multiplicity of tight Id, tight Iso electorns
237  hists_["elecMultTight_"] = ibooker.book1D("ElecMultTight", "N_{TightIso,TightId}(e)", 10, 0., 10.);
238 
239  hists_["jet1Eta_"] = ibooker.book1D("Jet1Eta", "#eta_{30,loose}(jet1)", 60, -3., 3.);
240  // pt of the 1. leading jet (corrected to L2+L3)
241  hists_["jet1Pt_"] = ibooker.book1D("Jet1Pt", "pt_{30,loose}(jet1)", 60, 0., 300.);
242  // eta of the 2. leading jet (corrected to L2+L3)
243  hists_["jet2Eta_"] = ibooker.book1D("Jet2Eta", "#eta_{30,loose}(jet2)", 60, -3., 3.);
244  // pt of the 2. leading jet (corrected to L2+L3)
245  hists_["jet2Pt_"] = ibooker.book1D("Jet2Pt", "pt_{30,loose}(jet2)", 60, 0., 300.);
246 
247  // dz for muons (to suppress cosmis)
248  hists_["muonDelZ_"] = ibooker.book1D("MuonDelZ", "d_{z}(#mu)", 50, -25., 25.);
249  // dxy for muons (to suppress cosmics)
250  hists_["muonDelXY_"] = ibooker.book2D("MuonDelXY", "d_{xy}(#mu)", 50, -0.1, 0.1, 50, -0.1, 0.1);
251 
252  // set axes titles for dxy for muons
253  hists_["muonDelXY_"]->setAxisTitle("x [cm]", 1);
254  hists_["muonDelXY_"]->setAxisTitle("y [cm]", 2);
255 
256  if (verbosity_ == VERBOSE)
257  return;
258 
259  // --- [DEBUG] --- //
260  // charged hadron isolation component of the candidate muon (depending on the
261  // decay channel)
262  hists_["muonChHadIso_"] = ibooker.book1D("MuonChHadIsoComp", "ChHad_{IsoComponent}(#mu TightId)", 50, 0., 5.);
263  // neutral hadron isolation component of the candidate muon (depending on the
264  // decay channel)
265  hists_["muonNeHadIso_"] = ibooker.book1D("MuonNeHadIsoComp", "NeHad_{IsoComponent}(#mu TightId)", 50, 0., 5.);
266  // photon isolation component of the candidate muon (depending on the decay
267  // channel)
268  hists_["muonPhIso_"] = ibooker.book1D("MuonPhIsoComp", "Photon_{IsoComponent}(#mu TightId)", 50, 0., 5.);
269  // charged hadron isolation component of the candidate electron (depending on
270  // the decay channel)
271  hists_["elecChHadIso_"] = ibooker.book1D("ElectronChHadIsoComp", "ChHad_{IsoComponent}(e tightId)", 50, 0., 5.);
272  // neutral hadron isolation component of the candidate electron (depending on
273  // the decay channel)
274  hists_["elecNeHadIso_"] = ibooker.book1D("ElectronNeHadIsoComp", "NeHad_{IsoComponent}(e tightId)", 50, 0., 5.);
275  // photon isolation component of the candidate electron (depending on the
276  // decay channel)
277  hists_["elecPhIso_"] = ibooker.book1D("ElectronPhIsoComp", "Photon_{IsoComponent}(e tightId)", 50, 0., 5.);
278 
279  // multiplicity for combined secondary vertex
280  hists_["jetMultBCSVM_"] = ibooker.book1D("JetMultBCSVM", "N_{30}(CSVM)", 10, 0., 10.);
281  // btag discriminator for combined secondary vertex
282  hists_["jetBCSV_"] = ibooker.book1D("JetDiscCSV", "BJet Disc_{CSV}(JET)", 100, -1., 2.);
283  // pt of the 1. leading jet (uncorrected)
284  // hists_["jet1PtRaw_"] = ibooker.book1D("Jet1PtRaw", "pt_{Raw}(jet1)", 60, 0., 300.);
285  // pt of the 2. leading jet (uncorrected)
286  // hists_["jet2PtRaw_"] = ibooker.book1D("Jet2PtRaw", "pt_{Raw}(jet2)", 60, 0., 300.);
287  // pt of the 3. leading jet (uncorrected)
288  // hists_["jet3PtRaw_"] = ibooker.book1D("Jet3PtRaw", "pt_{Raw}(jet3)", 60, 0., 300.);
289  // pt of the 4. leading jet (uncorrected)
290  // hists_["jet4PtRaw_"] = ibooker.book1D("Jet4PtRaw", "pt_{Raw}(jet4)", 60, 0., 300.);
291  // selected events
292  hists_["eventLogger_"] = ibooker.book2D("EventLogger", "Logged Events", 9, 0., 9., 10, 0., 10.);
293 
294  // set axes titles for selected events
295  hists_["eventLogger_"]->getTH1()->SetOption("TEXT");
296  hists_["eventLogger_"]->setBinLabel(1, "Run", 1);
297  hists_["eventLogger_"]->setBinLabel(2, "Block", 1);
298  hists_["eventLogger_"]->setBinLabel(3, "Event", 1);
299  hists_["eventLogger_"]->setBinLabel(4, "pt_{30,loose}(jet1)", 1);
300  hists_["eventLogger_"]->setBinLabel(5, "pt_{30,loose}(jet2)", 1);
301  hists_["eventLogger_"]->setBinLabel(6, "pt_{30,loose}(jet3)", 1);
302  hists_["eventLogger_"]->setBinLabel(7, "pt_{30,loose}(jet4)", 1);
303  hists_["eventLogger_"]->setBinLabel(8, "M_{W}", 1);
304  hists_["eventLogger_"]->setBinLabel(9, "M_{Top}", 1);
305  hists_["eventLogger_"]->setAxisTitle("logged evts", 2);
306  return;
307  }

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::MonitorEnsemble::booked ( const std::string  histName) const
inlineprivate

check if histogram was booked

Definition at line 91 of file SingleTopTChannelLeptonDQM.h.

91 { 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 309 of file SingleTopTChannelLeptonDQM.cc.

309  {
310  // fetch trigger event if configured such
312 
313  /*
314  ------------------------------------------------------------
315 
316  Primary Vertex Monitoring
317 
318  ------------------------------------------------------------
319  */
320 
321  // fill monitoring plots for primary verices
323 
324  if (!event.getByToken(pvs_, pvs))
325  return;
326  const reco::Vertex& Pvertex = pvs->front();
327  unsigned int pvMult = 0;
328  for (edm::View<reco::Vertex>::const_iterator pv = pvs->begin(); pv != pvs->end(); ++pv) {
329  if (!pvSelect_ || (*pvSelect_)(*pv))
330  pvMult++;
331  }
332  fill("pvMult_", pvMult);
333  /*
334  ------------------------------------------------------------
335 
336  Electron Monitoring
337 
338  ------------------------------------------------------------
339  */
340 
341  // fill monitoring plots for electrons
344  edm::Handle<double> _rhoHandle;
345  event.getByLabel(rhoTag, _rhoHandle);
346 
347  if (!event.getByToken(elecs_, elecs))
348  return;
349 
350  // check availability of electron id
352  if (!electronId_.isUninitialized()) {
353  if (!event.getByToken(electronId_, electronId)) {
354  return;
355  }
356  }
357  // loop electron collection
358  unsigned int eMult = 0, eMultIso = 0;
359  std::vector<const reco::PFCandidate*> isoElecs;
360 
361  for (edm::View<reco::PFCandidate>::const_iterator elec = elecs->begin(); elec != elecs->end(); ++elec) {
362  if (elec->gsfElectronRef().isNull()) {
363  continue;
364  }
365  reco::GsfElectronRef gsf_el = elec->gsfElectronRef();
366  // restrict to electrons with good electronId
368  ? true
369  : ((double)(*electronId)[gsf_el] >=
370  eidCutValue_)) { //This Electron Id is not currently used, but we can keep this for future needs
371  if (!elecSelect_ || (*elecSelect_)(*elec)) {
372  double el_ChHadIso = gsf_el->pfIsolationVariables().sumChargedHadronPt;
373  double el_NeHadIso = gsf_el->pfIsolationVariables().sumNeutralHadronEt;
374  double el_PhIso = gsf_el->pfIsolationVariables().sumPhotonEt;
375  double absEta = std::abs(gsf_el->superCluster()->eta());
376 
377  //Effective Area computation
378  double eA = 0;
379  if (absEta < 1.000)
380  eA = 0.1703;
381  else if (absEta < 1.479)
382  eA = 0.1715;
383  else if (absEta < 2.000)
384  eA = 0.1213;
385  else if (absEta < 2.200)
386  eA = 0.1230;
387  else if (absEta < 2.300)
388  eA = 0.1635;
389  else if (absEta < 2.400)
390  eA = 0.1937;
391  else if (absEta < 5.000)
392  eA = 0.2393;
393 
394  double rho = _rhoHandle.isValid() ? (float)(*_rhoHandle) : 0;
395  double el_pfRelIso = (el_ChHadIso + max(0., el_NeHadIso + el_PhIso - rho * eA)) / gsf_el->pt();
396 
397  //Only TightId
398  if (eMult == 0) { // Restricted to the leading tight electron
399  fill("elecRelIso_", el_pfRelIso);
400  fill("elecChHadIso_", el_ChHadIso);
401  fill("elecNeHadIso_", el_NeHadIso);
402  fill("elecPhIso_", el_PhIso);
403  }
404  ++eMult;
405 
406  if (!((el_pfRelIso < 0.0588 && absEta < 1.479) || (el_pfRelIso < 0.0571 && absEta > 1.479)))
407  continue; // PF Isolation with Effective Area Corrections according to https://twiki.cern.ch/twiki/bin/viewauth/CMS/CutBasedElectronIdentificationRun2
408 
409  // TightId and TightIso
410  if (eMultIso == 0) { //Only leading
411  e = *gsf_el;
412  fill("elecPt_", gsf_el->pt());
413  fill("elecEta_", gsf_el->eta());
414  fill("elecPhi_", gsf_el->phi());
415  }
416  ++eMultIso;
417  }
418  }
419  }
420  //fill("elecMult_", eMult);
421  fill("elecMultTight_", eMultIso);
422 
423  /*
424  ------------------------------------------------------------
425 
426  Muon Monitoring
427 
428  ------------------------------------------------------------
429  */
430 
431  // fill monitoring plots for muons
432  unsigned int mMult = 0, mTight = 0, mTightId = 0;
433 
437  reco::Muon mu;
438 
439  if (!event.getByToken(muons_, muons))
440  return;
441 
442  for (edm::View<reco::PFCandidate>::const_iterator muonit = muons->begin(); muonit != muons->end(); ++muonit) {
443  if (muonit->muonRef().isNull())
444  continue;
445  reco::MuonRef muon = muonit->muonRef();
446 
447  // restrict to globalMuons
448  if (muon->isGlobalMuon()) {
449  fill("muonDelZ_", muon->innerTrack()->vz()); // CB using inner track!
450  fill("muonDelXY_", muon->innerTrack()->vx(), muon->innerTrack()->vy());
451 
452  // apply preselection
453  if ((!muonSelect_ || (*muonSelect_)(*muonit))) {
454  mMult++;
455  double chHadPt = muon->pfIsolationR04().sumChargedHadronPt;
456  double neHadEt = muon->pfIsolationR04().sumNeutralHadronEt;
457  double phoEt = muon->pfIsolationR04().sumPhotonEt;
458  double pfRelIso = (chHadPt + max(0., neHadEt + phoEt - 0.5 * muon->pfIsolationR04().sumPUPt)) /
459  muon->pt(); // CB dBeta corrected iso!
460 
461  if (!(muon->isGlobalMuon() && muon->isPFMuon() && muon->globalTrack()->normalizedChi2() < 10. &&
462  muon->globalTrack()->hitPattern().numberOfValidMuonHits() > 0 && muon->numberOfMatchedStations() > 1 &&
463  muon->innerTrack()->hitPattern().numberOfValidPixelHits() > 0 &&
464  muon->innerTrack()->hitPattern().trackerLayersWithMeasurement() > 5 &&
465  fabs(muon->muonBestTrack()->dxy(Pvertex.position())) < 0.2 &&
466  fabs(muon->muonBestTrack()->dz(Pvertex.position())) < 0.5))
467  continue; //Only tight muons
468 
469  if (mTightId == 0) {
470  fill("muonRelIso_", pfRelIso);
471  fill("muonChHadIso_", chHadPt);
472  fill("muonNeHadIso_", neHadEt);
473  fill("muonPhIso_", phoEt);
474  }
475  mTightId++;
476 
477  if (!(pfRelIso < 0.15))
478  continue; //Tight Iso
479 
480  if (mTight == 0) { //Leading tightId tightIso muon
481  mu = *(muon);
482  fill("muonPt_", muon->pt());
483  fill("muonEta_", muon->eta());
484  fill("muonPhi_", muon->phi());
485  }
486  mTight++;
487  }
488  }
489  }
490  fill("muonMult_", mMult);
491  fill("muonMultTight_", mTight);
492 
493  /*
494  ------------------------------------------------------------
495 
496  Jet Monitoring
497 
498  ------------------------------------------------------------
499  */
500 
501  // check availability of the btaggers
502  edm::Handle<reco::JetTagCollection> btagEff, btagPur, btagVtx, btagCSV;
503  if (includeBTag_) {
504  if (!event.getByToken(btagCSV_, btagCSV))
505  return;
506  }
507 
509  event.getByToken(mJetCorrector, corrector);
510  if (!event.getByToken(mJetCorrector, corrector))
511  return;
512  // load jet
513  // corrector if configured such
514  // const JetCorrector* corrector = 0;
515  // if (!jetCorrector_.empty()) {
516 
517  // check whether a jet correcto is in the event setup or not
518  // if (setup.find(edm::eventsetup::EventSetupRecordKey::makeKey<
519  // JetCorrectionsRecord>())) {
520  // corrector = JetCorrector::getJetCorrector(jetCorrector_, setup);
521  // } else {
522  // edm::LogVerbatim("SingleTopTChannelLeptonDQM")
523  // << "\n"
524  // << "-----------------------------------------------------------------"
525  // "-------------------- \n"
526  // << " No JetCorrectionsRecord available from EventSetup:\n"
527  // << " - Jets will not be corrected.\n"
528  // << " - If you want to change this add the following lines to your "
529  // "cfg file:\n"
530  // << "\n"
531  // << " ## load jet corrections\n"
532  // << " "
533  // "process.load(\"JetMETCorrections.Configuration."
534  // "JetCorrectionServicesAllAlgos_cff\") \n"
535  // << " process.prefer(\"ak5CaloL2L3\")\n"
536  // << "\n"
537  // << "-----------------------------------------------------------------"
538  // "-------------------- \n";
539  // }
540  //}
541  // loop jet collection
542  std::vector<reco::Jet> correctedJets;
543  std::vector<double> JetTagValues;
544  reco::Jet TaggedJetCand;
545  unsigned int mult = 0, multLoose = 0, multCSV = 0;
546  vector<double> bJetDiscVal;
547 
549  if (!event.getByToken(jets_, jets)) {
550  return;
551  }
552 
553  for (edm::View<reco::Jet>::const_iterator jet = jets->begin(); jet != jets->end(); ++jet) {
554  bool isLoose = false;
555  // check jetID for calo jets, keep functionality if we ever want to go back to those
556  // unsigned int idx = jet - jets->begin();
557  // if (dynamic_cast<const reco::CaloJet*>(&*jet)) {
558  // if (jetIDSelect_ &&
559  // dynamic_cast<const reco::CaloJet*>(jets->refAt(idx).get())) {
560  // if (!(*jetIDSelect_)((*jetID)[jets->refAt(idx)])) continue;
561  // }
562  // }
563 
564  // check additional jet selection for pf jets
565  if (dynamic_cast<const reco::PFJet*>(&*jet)) {
566  reco::PFJet sel = dynamic_cast<const reco::PFJet&>(*jet);
567  if ((*jetlooseSelection_)(sel))
568  isLoose = true;
569  sel.scaleEnergy(corrector->correction(*jet));
570  if (!(*jetSelection_)(sel))
571  continue;
572  // else if (dynamic_cast<const reco::CaloJet*>(&*jet)) {
573  // reco::CaloJet sel = dynamic_cast<const reco::CaloJet&>(*jet);
574  // sel.scaleEnergy(corrector ? corrector->correction(*jet) : 1.);
575  // if ( jetSelectCalo==nullptr)
576  // jetSelectCalo.reset(new StringCutObjectSelector<reco::CaloJet>(jetSelect_));
577  // if (!((*jetSelectCalo)(sel))) {
578  // continue;
579  // }
580  }
581  // else {
582  // reco::Jet sel = *jet;
583  // sel.scaleEnergy(corrector ? corrector->correction(*jet) : 1.);
584  // if ( jetSelectJet==nullptr)
585  // jetSelectJet.reset(new StringCutObjectSelector<reco::Jet>(jetSelect_));
586  //
587  // if (!((*jetSelectJet)(sel))) continue;
588  // }
589 
590  // prepare jet to fill monitor histograms
591  reco::Jet monitorJet = *jet;
592 
593  ++mult; // determine jet (no Id) multiplicity
594  monitorJet.scaleEnergy(corrector->correction(*jet));
595 
596  if (isLoose) { //Loose Id
597  unsigned int idx = jet - jets->begin();
598  correctedJets.push_back(monitorJet);
599  if (includeBTag_) {
600  // fill b-discriminators
601  edm::RefToBase<reco::Jet> jetRef = jets->refAt(idx);
602  fill("jetBCSV_", (*btagCSV)[jetRef]);
603  if ((*btagCSV)[jetRef] > btagCSVWP_) {
604  if (multCSV == 0) {
605  TaggedJetCand = monitorJet;
606  bJetDiscVal.push_back((*btagCSV)[jetRef]);
607  } else if (multCSV == 1) {
608  bJetDiscVal.push_back((*btagCSV)[jetRef]);
609  if (bJetDiscVal[1] > bJetDiscVal[0])
610  TaggedJetCand = monitorJet;
611  }
612  ++multCSV;
613  }
614  JetTagValues.push_back((*btagCSV)[jetRef]);
615  }
616 
617  // fill pt/eta for the leading four jets
618  if (multLoose == 0) {
619  fill("jet1Pt_", monitorJet.pt());
620  fill("jet1Eta_", monitorJet.eta());
621  };
622  if (multLoose == 1) {
623  fill("jet2Pt_", monitorJet.pt());
624  fill("jet2Eta_", monitorJet.eta());
625  }
626  multLoose++;
627  }
628  }
629  fill("jetMult_", mult);
630  fill("jetMultLoose_", multLoose);
631  fill("jetMultBCSVM_", multCSV);
632 
633  /*
634  ------------------------------------------------------------
635 
636  MET Monitoring
637 
638  ------------------------------------------------------------
639  */
640 
641  // fill monitoring histograms for met
642  reco::MET mET;
643  for (std::vector<edm::EDGetTokenT<edm::View<reco::MET>>>::const_iterator met_ = mets_.begin(); met_ != mets_.end();
644  ++met_) {
646  if (!event.getByToken(*met_, met))
647  continue;
648  if (met->begin() != met->end()) {
649  unsigned int idx = met_ - mets_.begin();
650  if (idx == 0) {
651  fill("metPflow_", met->begin()->et());
652  mET = *(met->begin());
653  }
654  }
655  }
656 
657  /*
658  ------------------------------------------------------------
659 
660  Event Monitoring
661 
662  ------------------------------------------------------------
663  */
664 
665  // fill W boson and top mass estimates
666  Calculate eventKinematics(MAXJETS, WMASS);
667  double wMass = eventKinematics.massWBoson(correctedJets);
668  double topMass = eventKinematics.massTopQuark(correctedJets);
669  if (wMass >= 0 && topMass >= 0) {
670  fill("massW_", wMass);
671  fill("massTop_", topMass);
672  }
673  // fill plots for trigger monitoring
674  if ((lowerEdge_ == -1. && upperEdge_ == -1.) || (lowerEdge_ < wMass && wMass < upperEdge_)) {
676  fill(event, *triggerTable, "trigger", triggerPaths_);
677  if (logged_ <= hists_.find("eventLogger_")->second->getNbinsY()) {
678  // log runnumber, lumi block, event number & some
679  // more pysics infomation for interesting events
680  fill("eventLogger_", 0.5, logged_ + 0.5, event.eventAuxiliary().run());
681  fill("eventLogger_", 1.5, logged_ + 0.5, event.eventAuxiliary().luminosityBlock());
682  fill("eventLogger_", 2.5, logged_ + 0.5, event.eventAuxiliary().event());
683  if (!correctedJets.empty())
684  fill("eventLogger_", 3.5, logged_ + 0.5, correctedJets[0].pt());
685  if (correctedJets.size() > 1)
686  fill("eventLogger_", 4.5, logged_ + 0.5, correctedJets[1].pt());
687  if (correctedJets.size() > 2)
688  fill("eventLogger_", 5.5, logged_ + 0.5, correctedJets[2].pt());
689  if (correctedJets.size() > 3)
690  fill("eventLogger_", 6.5, logged_ + 0.5, correctedJets[3].pt());
691  fill("eventLogger_", 7.5, logged_ + 0.5, wMass);
692  fill("eventLogger_", 8.5, logged_ + 0.5, topMass);
693  ++logged_;
694  }
695  }
696  if (multCSV != 0 && mTight == 1) {
697  double mtW = eventKinematics.tmassWBoson(&mu, mET, TaggedJetCand);
698  fill("MTWm_", mtW);
699  double MTT = eventKinematics.tmassTopQuark(&mu, mET, TaggedJetCand);
700  fill("mMTT_", MTT);
701  }
702 
703  if (multCSV != 0 && eMultIso == 1) {
704  double mtW = eventKinematics.tmassWBoson(&e, mET, TaggedJetCand);
705  fill("MTWe_", mtW);
706  double MTT = eventKinematics.tmassTopQuark(&e, mET, TaggedJetCand);
707  fill("eMTT_", MTT);
708  }
709  }

References funct::abs(), btagCSV_, btagCSVWP_, pfClustersFromHGC3DClusters_cfi::corrector, MillePedeFileConverter_cfg::e, eidCutValue_, singleTopDQM_cfi::elecs, elecs_, elecSelect_, topSingleLeptonDQM_PU_cfi::electronId, electronId_, reco::LeafCandidate::eta(), dqmMemoryStats::float, hists_, heavyIonCSV_trainingSettings::idx, includeBTag_, edm::EDGetTokenT< T >::isUninitialized(), edm::HandleBase::isValid(), metsig::jet, jetlooseSelection_, singleTopDQM_cfi::jets, jets_, jetSelection_, logged_, lowerEdge_, Calculate::massTopQuark(), Calculate::massWBoson(), SiStripPI::max, SingleTopTChannelLepton::MAXJETS, BTaggingMonitor_cfi::met, mets_, mJetCorrector, amptDefaultParameters_cff::mu, VarParsing::mult, HLT_FULL_cff::muon, PDWG_BPHSkim_cff::muons, muons_, muonSelect_, reco::Vertex::position(), DiDispStaMuonMonitor_cfi::pt, reco::LeafCandidate::pt(), MetAnalyzer::pv(), FSQDQM_cfi::pvs, pvs_, pvSelect_, rhoTag, reco::Jet::scaleEnergy(), EgammaValidation_Wenu_cff::sel, Calculate::tmassTopQuark(), Calculate::tmassWBoson(), triggerPaths_, triggerTable_, funct::true, upperEdge_, trackerHitRTTI::vector, pseudoTop_cfi::wMass, and SingleTopTChannelLepton::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 215 of file SingleTopTChannelLeptonDQM.h.

218  {
219  for (unsigned int idx = 0; idx < labels.size(); ++idx) {
220  if (accept(event, triggerTable, monitorPath(labels[idx]))) {
221  fill(channel + "Mon_", idx + 0.5);
222  // take care to fill triggerMon_ before evts is being called
223  int evts = hists_.find(channel + "Mon_")->second->getBinContent(idx + 1);
224  double value = hists_.find(channel + "Eff_")->second->getBinContent(idx + 1);
225  fill(
226  channel + "Eff_", idx + 0.5, 1. / evts * (accept(event, triggerTable, selectionPath(labels[idx])) - value));
227  }
228  }
229  }

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

◆ fill() [3/5]

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

fill histogram if it had been booked before

Definition at line 93 of file SingleTopTChannelLeptonDQM.h.

93  {
94  if (booked(histName))
95  hists_.find(histName)->second->Fill(value);
96  };

References booked(), and hists_.

◆ fill() [4/5]

void SingleTopTChannelLepton::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 98 of file SingleTopTChannelLeptonDQM.h.

98  {
99  if (booked(histName))
100  hists_.find(histName)->second->Fill(xValue, yValue);
101  };

References booked(), and hists_.

◆ fill() [5/5]

void SingleTopTChannelLepton::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 103 of file SingleTopTChannelLeptonDQM.h.

103  {
104  if (booked(histName))
105  hists_.find(histName)->second->Fill(xValue, yValue, zValue);
106  };

References booked(), and hists_.

◆ monitorPath()

std::string SingleTopTChannelLepton::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 77 of file SingleTopTChannelLeptonDQM.h.

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

References label.

Referenced by fill(), and triggerBinLabels().

◆ selectionPath()

std::string SingleTopTChannelLepton::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 80 of file SingleTopTChannelLeptonDQM.h.

80 { 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 207 of file SingleTopTChannelLeptonDQM.h.

207  {
208  for (unsigned int idx = 0; idx < labels.size(); ++idx) {
209  hists_[channel + "Mon_"]->setBinLabel(idx + 1, "[" + monitorPath(labels[idx]) + "]", 1);
210  hists_[channel + "Eff_"]->setBinLabel(
211  idx + 1, "[" + selectionPath(labels[idx]) + "]|[" + monitorPath(labels[idx]) + "]", 1);
212  }
213  }

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

Referenced by book().

Member Data Documentation

◆ btagCombVtx_

edm::EDGetTokenT<reco::JetTagCollection> SingleTopTChannelLepton::MonitorEnsemble::btagCombVtx_
private

Definition at line 184 of file SingleTopTChannelLeptonDQM.h.

◆ btagCombVtxWP_

double SingleTopTChannelLepton::MonitorEnsemble::btagCombVtxWP_
private

Definition at line 187 of file SingleTopTChannelLeptonDQM.h.

◆ btagCSV_

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

Definition at line 184 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ btagCSVWP_

double SingleTopTChannelLepton::MonitorEnsemble::btagCSVWP_
private

Definition at line 187 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ btagEff_

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

btag discriminator labels

Definition at line 184 of file SingleTopTChannelLeptonDQM.h.

◆ btagEffWP_

double SingleTopTChannelLepton::MonitorEnsemble::btagEffWP_
private

btag working points

Definition at line 187 of file SingleTopTChannelLeptonDQM.h.

◆ btagPur_

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

Definition at line 184 of file SingleTopTChannelLeptonDQM.h.

◆ btagPurWP_

double SingleTopTChannelLepton::MonitorEnsemble::btagPurWP_
private

Definition at line 187 of file SingleTopTChannelLeptonDQM.h.

◆ btagVtx_

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

Definition at line 184 of file SingleTopTChannelLeptonDQM.h.

◆ btagVtxWP_

double SingleTopTChannelLepton::MonitorEnsemble::btagVtxWP_
private

Definition at line 187 of file SingleTopTChannelLeptonDQM.h.

◆ directory_

std::string SingleTopTChannelLepton::MonitorEnsemble::directory_
private

Definition at line 198 of file SingleTopTChannelLeptonDQM.h.

Referenced by book(), and MonitorEnsemble().

◆ eidCutValue_

double SingleTopTChannelLepton::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 151 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ elecIso

std::unique_ptr<StringCutObjectSelector<reco::PFCandidate, true> > SingleTopTChannelLepton::MonitorEnsemble::elecIso
private

Definition at line 204 of file SingleTopTChannelLeptonDQM.h.

◆ elecIso_

std::string SingleTopTChannelLepton::MonitorEnsemble::elecIso_
private

extra isolation criterion on electron

Definition at line 153 of file SingleTopTChannelLeptonDQM.h.

◆ elecs_

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

Definition at line 120 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ elecs_gsf_

edm::EDGetTokenT<edm::View<reco::GsfElectron> > SingleTopTChannelLepton::MonitorEnsemble::elecs_gsf_
private

Definition at line 119 of file SingleTopTChannelLeptonDQM.h.

◆ elecSelect

std::unique_ptr<StringCutObjectSelector<reco::PFCandidate, true> > SingleTopTChannelLepton::MonitorEnsemble::elecSelect
private

Definition at line 203 of file SingleTopTChannelLeptonDQM.h.

◆ elecSelect_

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

extra selection on electrons

Definition at line 155 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ electronId_

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

electronId label

Definition at line 135 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ hists_

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

storage manager histogram container

Definition at line 195 of file SingleTopTChannelLeptonDQM.h.

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

◆ includeBTag_

bool SingleTopTChannelLepton::MonitorEnsemble::includeBTag_
private

include btag information or not to be determined from the cfg

Definition at line 181 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ jetCorrector_

std::string SingleTopTChannelLepton::MonitorEnsemble::jetCorrector_
private

jetCorrector

Definition at line 168 of file SingleTopTChannelLeptonDQM.h.

◆ jetIDLabel_

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

jetID as an extra selection type

Definition at line 170 of file SingleTopTChannelLeptonDQM.h.

Referenced by MonitorEnsemble().

◆ jetIDSelect_

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

extra jetID selection on calo jets

Definition at line 173 of file SingleTopTChannelLeptonDQM.h.

Referenced by MonitorEnsemble().

◆ jetlooseSelection_

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

Definition at line 174 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ jets_

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

input sources for monitoring

Definition at line 117 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ jetSelect_

std::string SingleTopTChannelLepton::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 178 of file SingleTopTChannelLeptonDQM.h.

Referenced by MonitorEnsemble().

◆ jetSelection_

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

Definition at line 175 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ label_

std::string SingleTopTChannelLepton::MonitorEnsemble::label_
private

◆ logged_

int SingleTopTChannelLepton::MonitorEnsemble::logged_
private

number of logged interesting events

Definition at line 192 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill().

◆ lowerEdge_

double SingleTopTChannelLepton::MonitorEnsemble::lowerEdge_
private

mass window upper and lower edge

Definition at line 189 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ mets_

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

considers a vector of METs

Definition at line 114 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ mJetCorrector

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

Definition at line 137 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ muonIso

std::unique_ptr<StringCutObjectSelector<reco::PFCandidate, true> > SingleTopTChannelLepton::MonitorEnsemble::muonIso
private

Definition at line 201 of file SingleTopTChannelLeptonDQM.h.

◆ muonIso_

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

extra isolation criterion on muon

Definition at line 163 of file SingleTopTChannelLeptonDQM.h.

Referenced by MonitorEnsemble().

◆ muons_

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

Definition at line 118 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ muonSelect

std::unique_ptr<StringCutObjectSelector<reco::PFCandidate, true> > SingleTopTChannelLepton::MonitorEnsemble::muonSelect
private

Definition at line 200 of file SingleTopTChannelLeptonDQM.h.

◆ muonSelect_

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

extra selection on muons

Definition at line 166 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ pvs_

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

Definition at line 121 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ pvSelect_

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

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

Definition at line 160 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ rhoTag

edm::InputTag SingleTopTChannelLepton::MonitorEnsemble::rhoTag
private

Definition at line 156 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ tmpConsumerBase

edm::EDConsumerBase SingleTopTChannelLepton::MonitorEnsemble::tmpConsumerBase
private

Definition at line 196 of file SingleTopTChannelLeptonDQM.h.

◆ triggerPaths_

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

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

Definition at line 131 of file SingleTopTChannelLeptonDQM.h.

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

◆ triggerTable_

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

trigger table

Definition at line 127 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ upperEdge_

double SingleTopTChannelLepton::MonitorEnsemble::upperEdge_
private

Definition at line 189 of file SingleTopTChannelLeptonDQM.h.

Referenced by fill(), and MonitorEnsemble().

◆ verbosity_

Level SingleTopTChannelLepton::MonitorEnsemble::verbosity_
private

verbosity level for booking

Definition at line 106 of file SingleTopTChannelLeptonDQM.h.

Referenced by book(), and MonitorEnsemble().

SummaryClient_cfi.labels
labels
Definition: SummaryClient_cfi.py:61
SingleTopTChannelLepton::MonitorEnsemble::jetlooseSelection_
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetlooseSelection_
Definition: SingleTopTChannelLeptonDQM.h:174
PDWG_BPHSkim_cff.muons
muons
Definition: PDWG_BPHSkim_cff.py:47
SingleTopTChannelLepton::MonitorEnsemble::triggerPaths_
std::vector< std::string > triggerPaths_
Definition: SingleTopTChannelLeptonDQM.h:131
reco::Jet::scaleEnergy
virtual void scaleEnergy(double fScale)
scale energy of the jet
SingleTopTChannelLepton::MonitorEnsemble::electronId_
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
Definition: SingleTopTChannelLeptonDQM.h:135
reco::Jet
Base class for all types of Jets.
Definition: Jet.h:20
SingleTopTChannelLepton::MonitorEnsemble::includeBTag_
bool includeBTag_
Definition: SingleTopTChannelLeptonDQM.h:181
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
SingleTopTChannelLepton::MonitorEnsemble::btagCSV_
edm::EDGetTokenT< reco::JetTagCollection > btagCSV_
Definition: SingleTopTChannelLeptonDQM.h:184
SingleTopTChannelLepton::MonitorEnsemble::jetSelect_
std::string jetSelect_
Definition: SingleTopTChannelLeptonDQM.h:178
muon
Definition: MuonCocktails.h:17
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::MonitorEnsemble::jetIDSelect_
std::unique_ptr< StringCutObjectSelector< reco::JetID > > jetIDSelect_
extra jetID selection on calo jets
Definition: SingleTopTChannelLeptonDQM.h:173
ZElectronSkim_cff.rho
rho
Definition: ZElectronSkim_cff.py:38
singleTopDQM_cfi.elecExtras
elecExtras
Definition: singleTopDQM_cfi.py:52
reco::JetCorrector
Definition: JetCorrector.h:33
SingleTopTChannelLepton::MonitorEnsemble::label_
std::string label_
instance label
Definition: SingleTopTChannelLeptonDQM.h:112
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
SingleTopTChannelLepton::MonitorEnsemble::pvs_
edm::EDGetTokenT< edm::View< reco::Vertex > > pvs_
Definition: SingleTopTChannelLeptonDQM.h:121
edm::EDGetTokenT::isUninitialized
constexpr bool isUninitialized() const noexcept
Definition: EDGetToken.h:99
CalibrationSummaryClient_cfi.sources
sources
Definition: CalibrationSummaryClient_cfi.py:23
reco::Vertex::position
const Point & position() const
position
Definition: Vertex.h:114
SingleTopTChannelLepton::MonitorEnsemble::fill
void fill(const edm::Event &event, const edm::EventSetup &setup)
fill monitor histograms with electronId and jetCorrections
Definition: SingleTopTChannelLeptonDQM.cc:309
singleTopDQM_cfi.jets
jets
Definition: singleTopDQM_cfi.py:42
SingleTopTChannelLepton::MonitorEnsemble::mJetCorrector
edm::EDGetTokenT< reco::JetCorrector > mJetCorrector
Definition: SingleTopTChannelLeptonDQM.h:137
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
topSingleLeptonDQM_PU_cfi.electronId
electronId
when omitted electron plots will be filled w/o cut on electronId
Definition: topSingleLeptonDQM_PU_cfi.py:39
Calculate
Helper class for the calculation of a top and a W boson mass estime.
Definition: TopDQMHelpers.h:128
SingleTopTChannelLepton::MonitorEnsemble::lowerEdge_
double lowerEdge_
mass window upper and lower edge
Definition: SingleTopTChannelLeptonDQM.h:189
edm::Handle< edm::TriggerResults >
reco::Muon
Definition: Muon.h:27
edm::Ref
Definition: AssociativeIterator.h:58
BTaggingMonitor_cfi.met
met
Definition: BTaggingMonitor_cfi.py:84
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
pfClustersFromHGC3DClusters_cfi.corrector
corrector
Definition: pfClustersFromHGC3DClusters_cfi.py:5
SingleTopTChannelLepton::MonitorEnsemble::VERBOSE
Definition: SingleTopTChannelLeptonDQM.h:58
SingleTopTChannelLepton::MonitorEnsemble::DEBUG
Definition: SingleTopTChannelLeptonDQM.h:58
accept
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:31
reco::MET
Definition: MET.h:41
SingleTopTChannelLepton::MonitorEnsemble::triggerTable_
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
Definition: SingleTopTChannelLeptonDQM.h:127
singleTopDQM_cfi.pvExtras
pvExtras
Definition: singleTopDQM_cfi.py:49
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
HLT_FULL_cff.muon
muon
Definition: HLT_FULL_cff.py:11710
singleTopDQM_cfi.muonExtras
muonExtras
Definition: singleTopDQM_cfi.py:56
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
singleTopDQM_cfi.elecs
elecs
Definition: singleTopDQM_cfi.py:41
reco::GsfElectron
Definition: GsfElectron.h:34
SingleTopTChannelLepton::MonitorEnsemble::elecs_
edm::EDGetTokenT< edm::View< reco::PFCandidate > > elecs_
Definition: SingleTopTChannelLeptonDQM.h:120
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SingleTopTChannelLepton::MonitorEnsemble::elecSelect_
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > elecSelect_
extra selection on electrons
Definition: SingleTopTChannelLeptonDQM.h:155
edm::AssociationVector
Definition: AssociationVector.h:67
SingleTopTChannelLepton::MonitorEnsemble::jets_
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
input sources for monitoring
Definition: SingleTopTChannelLeptonDQM.h:117
SingleTopTChannelLepton::MonitorEnsemble::triggerBinLabels
void triggerBinLabels(std::string channel, const std::vector< std::string > labels)
set configurable labels for trigger monitoring histograms
Definition: SingleTopTChannelLeptonDQM.h:207
singleTopDQM_cfi.massExtras
massExtras
Definition: singleTopDQM_cfi.py:70
edm::View< reco::PFCandidate >
funct::true
true
Definition: Factorize.h:173
edm::ParameterSet
Definition: ParameterSet.h:47
SingleTopTChannelLepton::WMASS
static const double WMASS
Definition: SingleTopTChannelLeptonDQM.cc:24
SingleTopTChannelLepton::MonitorEnsemble::muonSelect_
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > muonSelect_
extra selection on muons
Definition: SingleTopTChannelLeptonDQM.h:166
SingleTopTChannelLepton::MonitorEnsemble::booked
bool booked(const std::string histName) const
check if histogram was booked
Definition: SingleTopTChannelLeptonDQM.h:91
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
SingleTopTChannelLepton::MAXJETS
static const unsigned int MAXJETS
Definition: SingleTopTChannelLeptonDQM.cc:21
SingleTopTChannelLepton::MonitorEnsemble::jetIDLabel_
edm::EDGetTokenT< reco::JetIDValueMap > jetIDLabel_
jetID as an extra selection type
Definition: SingleTopTChannelLeptonDQM.h:170
SingleTopTChannelLepton::MonitorEnsemble::hists_
std::map< std::string, MonitorElement * > hists_
Definition: SingleTopTChannelLeptonDQM.h:195
SingleTopTChannelLepton::MonitorEnsemble::logged_
int logged_
number of logged interesting events
Definition: SingleTopTChannelLeptonDQM.h:192
MetAnalyzer.pv
def pv(vc)
Definition: MetAnalyzer.py:7
SingleTopTChannelLepton::MonitorEnsemble::jetSelection_
std::unique_ptr< StringCutObjectSelector< reco::PFJet > > jetSelection_
Definition: SingleTopTChannelLeptonDQM.h:175
value
Definition: value.py:1
SingleTopTChannelLepton::MonitorEnsemble::STANDARD
Definition: SingleTopTChannelLeptonDQM.h:58
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
FSQDQM_cfi.pvs
pvs
Definition: FSQDQM_cfi.py:12
looper.cfg
cfg
Definition: looper.py:297
SingleTopTChannelLepton::MonitorEnsemble::directory_
std::string directory_
Definition: SingleTopTChannelLeptonDQM.h:198
SingleTopTChannelLepton::MonitorEnsemble::pvSelect_
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > pvSelect_
Definition: SingleTopTChannelLeptonDQM.h:160
SingleTopTChannelLepton::MonitorEnsemble::upperEdge_
double upperEdge_
Definition: SingleTopTChannelLeptonDQM.h:189
singleTopDQM_cfi.jetExtras
jetExtras
Definition: singleTopDQM_cfi.py:60
SingleTopTChannelLepton::MonitorEnsemble::btagCSVWP_
double btagCSVWP_
Definition: SingleTopTChannelLeptonDQM.h:187
singleTopDQM_cfi.monitoring
monitoring
Definition: singleTopDQM_cfi.py:46
metsig::jet
Definition: SignAlgoResolutions.h:47
edm::ValueMap< float >
dqm::implementation::IBooker::book2D
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
reco::PFJet
Jets made from PFObjects.
Definition: PFJet.h:20
pseudoTop_cfi.wMass
wMass
Definition: pseudoTop_cfi.py:12
SingleTopTChannelLepton::MonitorEnsemble::muons_
edm::EDGetTokenT< edm::View< reco::PFCandidate > > muons_
Definition: SingleTopTChannelLeptonDQM.h:118
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::RefToBase< reco::Jet >
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::MonitorEnsemble::rhoTag
edm::InputTag rhoTag
Definition: SingleTopTChannelLeptonDQM.h:156
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
SingleTopTChannelLepton::MonitorEnsemble::eidCutValue_
double eidCutValue_
Definition: SingleTopTChannelLeptonDQM.h:151
EgammaValidation_Wenu_cff.sel
sel
Definition: EgammaValidation_Wenu_cff.py:33
SingleTopTChannelLepton::MonitorEnsemble::monitorPath
std::string monitorPath(const std::string &label) const
Definition: SingleTopTChannelLeptonDQM.h:77
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
event
Definition: event.py:1
SingleTopTChannelLepton::MonitorEnsemble::mets_
std::vector< edm::EDGetTokenT< edm::View< reco::MET > > > mets_
considers a vector of METs
Definition: SingleTopTChannelLeptonDQM.h:114
SingleTopTChannelLepton::MonitorEnsemble::selectionPath
std::string selectionPath(const std::string &label) const
Definition: SingleTopTChannelLeptonDQM.h:80
edm::InputTag
Definition: InputTag.h:15
label
const char * label
Definition: PFTauDecayModeTools.cc:11
edm::TriggerResults
Definition: TriggerResults.h:35
reco::Vertex
Definition: Vertex.h:35
SingleTopTChannelLepton::MonitorEnsemble::muonIso_
std::unique_ptr< StringCutObjectSelector< reco::PFCandidate > > muonIso_
extra isolation criterion on muon
Definition: SingleTopTChannelLeptonDQM.h:163
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
SingleTopTChannelLepton::MonitorEnsemble::verbosity_
Level verbosity_
verbosity level for booking
Definition: SingleTopTChannelLeptonDQM.h:106