16 namespace SingleTopTChannelLepton {
23 static const double WMASS = 80.4;
25 MonitorEnsemble::MonitorEnsemble(
const char*
label,
47 sources.
getParameter<std::vector<edm::InputTag>>(
"mets"))
141 .getParameter<edm::ParameterSet>(
"trackCountingEff");
147 .getParameter<edm::ParameterSet>(
"trackCountingPur");
150 btagPurWP_ = btagPur.getParameter<
double>(
"workingPoint");
153 .getParameter<edm::ParameterSet>(
"secondaryVertex");
156 btagVtxWP_ = btagVtx.getParameter<
double>(
"workingPoint");
159 .getParameter<edm::ParameterSet>(
"combinedSecondaryVertex");
162 btagCombVtxWP_ = btagCombVtx.getParameter<
double>(
"workingPoint");
173 triggerExtras.
getParameter<std::vector<std::string>>(
"paths");
216 hists_[
"pvMult_"] = ibooker.
book1D(
"PvMult",
"N_{pvs}", 100, 0., 100.);
218 hists_[
"muonPt_"] = ibooker.
book1D(
"MuonPt",
"pt(#mu)", 50, 0., 250.);
220 hists_[
"muonMult_"] = ibooker.
book1D(
"MuonMult",
"N_{20}(#mu)", 10, 0., 10.);
222 hists_[
"muonMultIso_"] = ibooker.
book1D(
"MuonMultIso",
"N_{Iso}(#mu)", 10, 0., 10.);
224 hists_[
"elecPt_"] = ibooker.
book1D(
"ElecPt",
"pt(e)", 50, 0., 250.);
226 hists_[
"elecMult_"] = ibooker.
book1D(
"ElecMult",
"N_{30}(e)", 10, 0., 10.);
228 hists_[
"elecMultIso_"] = ibooker.
book1D(
"ElecMultIso",
"N_{Iso}(e)", 10, 0., 10.);
230 hists_[
"jetMult_"] = ibooker.
book1D(
"JetMult",
"N_{30}(jet)", 10, 0., 10.);
233 "Eff(trigger)", nPaths, 0., nPaths);
236 "Mon(trigger)", nPaths, 0., nPaths);
238 hists_[
"metCalo_"] = ibooker.
book1D(
"METCalo",
"MET_{Calo}", 50, 0., 200.);
240 hists_[
"massW_"] = ibooker.
book1D(
"MassW",
"M(W)", 60, 0., 300.);
242 hists_[
"massTop_"] = ibooker.
book1D(
"MassTop",
"M(Top)", 50, 0., 500.);
244 hists_[
"MTWm_"] = ibooker.
book1D(
"MTWm",
"M_{T}^{W}(#mu)", 60, 0., 300.);
246 hists_[
"mMTT_"] = ibooker.
book1D(
"mMTT",
"M_{T}^{t}(#mu)", 50, 0., 500.);
249 hists_[
"MTWe_"] = ibooker.
book1D(
"MTWe",
"M_{T}^{W}(e)", 60, 0., 300.);
251 hists_[
"eMTT_"] = ibooker.
book1D(
"eMTT",
"M_{T}^{t}(e)", 50, 0., 500.);
261 hists_[
"muonEta_"] = ibooker.
book1D(
"MuonEta",
"#eta(#mu)", 30, -3., 3.);
263 hists_[
"muonPFRelIso_"] = ibooker.
book1D(
"MuonPFRelIso",
264 "PFIso_{Rel}(#mu)", 50, 0., 1.);
265 hists_[
"muonRelIso_"] = ibooker.
book1D(
"MuonRelIso",
"Iso_{Rel}(#mu)", 50, 0., 1.);
268 hists_[
"elecEta_"] = ibooker.
book1D(
"ElecEta",
"#eta(e)", 30, -3., 3.);
270 hists_[
"elecRelIso_"] = ibooker.
book1D(
"ElecRelIso",
"Iso_{Rel}(e)", 50, 0., 1.);
271 hists_[
"elecPFRelIso_"] = ibooker.
book1D(
"ElecPFRelIso",
272 "PFIso_{Rel}(e)", 50, 0., 1.);
277 "N_{30}(b/eff)", 10, 0., 10.);
281 "Disc_{b/eff}(jet)", 100, 0., 10.);
284 hists_[
"jet1Eta_"] = ibooker.
book1D(
"Jet1Eta",
"#eta (jet1)", 50, -5., 5.);
286 hists_[
"jet2Eta_"] = ibooker.
book1D(
"Jet2Eta",
"#eta (jet2)", 50, -5., 5.);
289 hists_[
"jet1Pt_"] = ibooker.
book1D(
"Jet1Pt",
"pt_{L2L3}(jet1)", 60, 0., 300.);
291 hists_[
"jet2Pt_"] = ibooker.
book1D(
"Jet2Pt",
"pt_{L2L3}(jet2)", 60, 0., 300.);
294 hists_[
"TaggedJetEta_"] = ibooker.
book1D(
"TaggedJetEta",
295 "#eta (Tagged jet)", 50, -5., 5.);
297 "pt_{L2L3}(Tagged jet)", 60, 0., 300.);
300 hists_[
"UnTaggedJetEta_"] = ibooker.
book1D(
"UnTaggedJetEta",
301 "#eta (UnTagged jet)", 50, -5., 5.);
302 hists_[
"UnTaggedJetPt_"] = ibooker.
book1D(
"UnTaggedJetPt",
303 "pt_{L2L3}(UnTagged jet)", 60, 0., 300.);
306 hists_[
"FwdJetEta_"] = ibooker.
book1D(
"FwdJetEta",
"#eta (Fwd jet)", 50, -5., 5.);
308 "pt_{L2L3}(Fwd jet)", 60, 0., 300.);
311 hists_[
"TaggedJetPtEta_"] = ibooker.
book2D(
"TaggedJetPt_Eta",
312 "(pt vs #eta)_{L2L3}(Tagged jet)", 60, 0., 300., 50, -5., 5.);
315 hists_[
"UnTaggedJetPtEta_"] = ibooker.
book2D(
"UnTaggedJetPt_Eta",
316 "(pt vs #eta)_{L2L3}(UnTagged jet)", 60, 0., 300., 50, -5., 5.);
319 hists_[
"metTC_"] = ibooker.
book1D(
"METTC",
"MET_{TC}", 50, 0., 200.);
321 hists_[
"metPflow_"] = ibooker.
book1D(
"METPflow",
"MET_{Pflow}", 50, 0., 200.);
324 hists_[
"muonDelZ_"] = ibooker.
book1D(
"MuonDelZ",
"d_{z}(#mu)", 50, -25., 25.);
327 "d_{xy}(#mu)", 50, -0.1, 0.1, 50, -0.1, 0.1);
330 hists_[
"muonDelXY_"]->setAxisTitle(
"x [cm]", 1);
331 hists_[
"muonDelXY_"]->setAxisTitle(
"y [cm]", 2);
338 hists_[
"muonChHadIso_"] = ibooker.
book1D(
"MuonChHadIso",
339 "Iso_{ChHad}(#mu)", 100, 0., 1.);
341 hists_[
"muonNeuHadIso_"] = ibooker.
book1D(
"MuonNeuHadIso",
342 "Iso_{NeuHad}(#mu)", 100, 0., 1.);
344 hists_[
"muonPhIso_"] = ibooker.
book1D(
"MuonPhIso",
"Iso_{Ph}(#mu)", 100, 0., 1.);
347 hists_[
"elecChHadIso_"] = ibooker.
book1D(
"ElecChHadIso",
348 "Iso_{ChHad}(e)", 100, 0., 1.);
350 hists_[
"elecNeuHadIso_"] = ibooker.
book1D(
"ElecNeuHadIso",
351 "Iso_{NeuHad}(e)", 100, 0., 1.);
353 hists_[
"elecPhIso_"] = ibooker.
book1D(
"ElecPhIso",
"Iso_{Ph}(e)", 100, 0., 1.);
358 "N_{30}(b/pur)", 10, 0., 10.);
361 "Disc_{b/pur}(Jet)", 200, -10., 10.);
363 hists_[
"jet1BDiscPur_"] = ibooker.
book1D(
"Jet1BDiscPur",
364 "Disc_{b/pur}(Jet1)", 200, -10., 10.);
366 hists_[
"jet2BDiscPur_"] = ibooker.
book1D(
"Jet2BDiscPur",
367 "Disc_{b/pur}(Jet2)", 200, -10., 10.);
371 "N_{30}(b/vtx)", 10, 0., 10.);
374 "Disc_{b/vtx}(Jet)", 35, -1., 6.);
378 hists_[
"jetMultBCombVtx_"] = ibooker.
book1D(
"JetMultBCombVtx",
379 "N_{30}(b/CSV)", 10, 0., 10.);
381 hists_[
"jetBDiscCombVtx_"] = ibooker.
book1D(
"JetBDiscCombVtx",
382 "Disc_{b/CSV}(Jet)", 60, -1., 2.);
384 hists_[
"jet1BDiscCombVtx_"] = ibooker.
book1D(
"Jet1BDiscCombVtx",
385 "Disc_{b/CSV}(Jet1)", 60, -1., 2.);
387 hists_[
"jet2BDiscCombVtx_"] = ibooker.
book1D(
"Jet2BDiscCombVtx",
388 "Disc_{b/CSV}(Jet2)", 60, -1., 2.);
391 hists_[
"jet1PtRaw_"] = ibooker.
book1D(
"Jet1PtRaw",
"pt_{Raw}(jet1)", 60, 0., 300.);
393 hists_[
"jet2PtRaw_"] = ibooker.
book1D(
"Jet2PtRaw",
"pt_{Raw}(jet2)", 60, 0., 300.);
397 "Logged Events", 9, 0., 9., 10, 0., 10.);
400 hists_[
"eventLogger_"]->getTH1()->SetOption(
"TEXT");
401 hists_[
"eventLogger_"]->setBinLabel(1,
"Run", 1);
402 hists_[
"eventLogger_"]->setBinLabel(2,
"Block", 1);
403 hists_[
"eventLogger_"]->setBinLabel(3,
"Event", 1);
404 hists_[
"eventLogger_"]->setBinLabel(4,
"pt_{L2L3}(jet1)", 1);
405 hists_[
"eventLogger_"]->setBinLabel(5,
"pt_{L2L3}(jet2)", 1);
406 hists_[
"eventLogger_"]->setBinLabel(6,
"pt_{L2L3}(jet3)", 1);
407 hists_[
"eventLogger_"]->setBinLabel(7,
"pt_{L2L3}(jet4)", 1);
408 hists_[
"eventLogger_"]->setBinLabel(8,
"M_{W}", 1);
409 hists_[
"eventLogger_"]->setBinLabel(9,
"M_{Top}", 1);
410 hists_[
"eventLogger_"]->setAxisTitle(
"logged evts", 2);
433 unsigned int pvMult = 0;
435 pv != pvs->end(); ++
pv) {
438 fill(
"pvMult_", pvMult);
468 unsigned int eMult = 0, eMultIso = 0;
469 std::vector<const reco::GsfElectron*> isoElecs;
472 unsigned int idx_gsf = 0;
473 for (elec_it = elecs->begin(); elec_it != elecs->end(); ++elec_it) {
474 if (elec_it->gsfElectronRef().isNull())
continue;
477 if (elec->gsfTrack().
isNull())
continue;
482 if ((elecSelect)(*elec_it)) {
483 double isolationRel =
484 (elec->dr03TkSumPt() + elec->dr03EcalRecHitSumEt() +
485 elec->dr03HcalTowerSumEt()) /
488 double isolationChHad =
490 (elec->pt() + elec->pfIsolationVariables().sumChargedHadronPt);
491 double isolationNeuHad =
493 (elec->pt() + elec->pfIsolationVariables().sumNeutralHadronEt);
494 double isolationPhoton =
496 (elec->pt() + elec->pfIsolationVariables().sumPhotonEt);
497 double el_ChHadIso = elec->pfIsolationVariables().sumChargedHadronPt;
498 double el_NeHadIso = elec->pfIsolationVariables().sumNeutralHadronEt;
499 double el_PhIso = elec->pfIsolationVariables().sumPhotonEt;
500 double PFisolationRel =
502 max(0., el_NeHadIso + el_PhIso -
503 0.5 * elec->pfIsolationVariables().sumPUPt)) /
508 fill(
"elecPt_", elec->pt());
509 fill(
"elecEta_", elec->eta());
510 fill(
"elecRelIso_", isolationRel);
511 fill(
"elecPFRelIso_", PFisolationRel);
512 fill(
"elecChHadIso_", isolationChHad);
513 fill(
"elecNeuHadIso_", isolationNeuHad);
514 fill(
"elecPhIso_", isolationPhoton);
519 if ((elecIso)(*elec_it)) {
520 if (eMultIso == 0) e = *elec;
521 isoElecs.push_back(&(*elec));
529 fill(
"elecMult_", eMult);
530 fill(
"elecMultIso_", eMultIso);
541 unsigned int mMult = 0, mMultIso = 0;
551 for (muonit = muons->begin(); muonit != muons->end();
556 if (muonit->muonRef().isNull())
continue;
559 if (muon->innerTrack().
isNull())
continue;
562 if (muon->isGlobalMuon()) {
563 fill(
"muonDelZ_", muon->globalTrack()->vz());
564 fill(
"muonDelXY_", muon->globalTrack()->vx(), muon->globalTrack()->vy());
567 if (muonSelect(*muonit)) {
569 double isolationRel =
570 (muon->isolationR03().sumPt + muon->isolationR03().emEt +
571 muon->isolationR03().hadEt) /
573 double isolationChHad =
575 (muon->pt() + muon->pfIsolationR04().sumChargedHadronPt);
576 double isolationNeuHad =
578 (muon->pt() + muon->pfIsolationR04().sumNeutralHadronEt);
579 double isolationPhoton =
580 muon->pt() / (muon->pt() + muon->pfIsolationR04().sumPhotonEt);
581 double PFisolationRel = (muon->pfIsolationR04().sumChargedHadronPt +
582 muon->pfIsolationR04().sumNeutralHadronEt +
583 muon->pfIsolationR04().sumPhotonEt) /
588 fill(
"muonPt_", muon->pt());
589 fill(
"muonEta_", muon->eta());
590 fill(
"muonRelIso_", isolationRel);
591 fill(
"muonChHadIso_", isolationChHad);
592 fill(
"muonNeuHadIso_", isolationNeuHad);
593 fill(
"muonPhIso_", isolationPhoton);
594 fill(
"muonPFRelIso_", PFisolationRel);
598 if (muonIso(*muonit)) {
599 if (mMultIso == 0) mu = *
muon;
605 fill(
"muonMult_", mMult);
606 fill(
"muonMultIso_", mMultIso);
634 <<
"-----------------------------------------------------------------"
635 "-------------------- \n"
636 <<
" No JetCorrectionsRecord available from EventSetup:\n"
637 <<
" - Jets will not be corrected.\n"
638 <<
" - If you want to change this add the following lines to your "
641 <<
" ## load jet corrections\n"
643 "process.load(\"JetMETCorrections.Configuration."
644 "JetCorrectionServicesAllAlgos_cff\") \n"
645 <<
" process.prefer(\"ak5CaloL2L3\")\n"
647 <<
"-----------------------------------------------------------------"
648 "-------------------- \n";
653 std::vector<reco::Jet> correctedJets;
654 unsigned int mult = 0, multBEff = 0, multBPur = 0, multNoBPur = 0,
655 multBVtx = 0, multBCombVtx = 0;
665 vector<double> bJetDiscVal;
666 vector<double> NobJetDiscVal;
671 jet != jets->end(); ++
jet) {
673 unsigned int idx =
jet - jets->begin();
674 if (dynamic_cast<const reco::CaloJet*>(&*
jet)) {
676 dynamic_cast<const reco::CaloJet*>(jets->refAt(idx).get())) {
677 if (!(*
jetIDSelect_)((*jetID)[jets->refAt(idx)]))
continue;
682 if (dynamic_cast<const reco::CaloJet*>(&*
jet)) {
686 if (!jetSelect(sel)) {
689 }
else if (dynamic_cast<const reco::PFJet*>(&*
jet)) {
693 if (!jetSelect(sel))
continue;
698 if (!jetSelect(sel))
continue;
711 correctedJets.push_back(monitorJet);
717 if ((*btagVtx)[jetRef] >
btagVtxWP_) ++multBVtx;
721 TaggedJetCand = monitorJet;
723 bJetDiscVal.push_back((*btagPur)[jetRef]);
725 }
else if (multBPur == 1) {
726 bJetDiscVal.push_back((*btagPur)[jetRef]);
727 if (bJetDiscVal[1] > bJetDiscVal[0]) TaggedJetCand = monitorJet;
732 if (multNoBPur == 0) {
733 UnTaggedJetCand = monitorJet;
734 NobJetDiscVal.push_back((*btagPur)[jetRef]);
736 }
else if (multNoBPur == 1) {
737 NobJetDiscVal.push_back((*btagPur)[jetRef]);
738 if (NobJetDiscVal[1] < NobJetDiscVal[0]) UnTaggedJetCand = monitorJet;
744 if ((*btagEff)[jetRef] >
btagEffWP_) ++multBEff;
747 fill(
"jet1BDiscPur_", (*btagPur)[jetRef]);
748 fill(
"jet1BDiscCombVtx_", (*btagCombVtx)[jetRef]);
749 }
else if (mult == 2) {
750 fill(
"jet2BDiscPur_", (*btagPur)[jetRef]);
751 fill(
"jet2BDiscCombVtx_", (*btagCombVtx)[jetRef]);
754 fill(
"jetBDiscEff_", (*btagEff)[jetRef]);
755 fill(
"jetBDiscPur_", (*btagPur)[jetRef]);
756 fill(
"jetBDiscVtx_", (*btagVtx)[jetRef]);
757 fill(
"jetBDiscCombVtx_", (*btagCombVtx)[jetRef]);
761 fill(
"jet1Pt_", monitorJet.
pt());
762 fill(
"jet1Eta_", monitorJet.
eta());
764 FwdJetCand = monitorJet;
768 fill(
"jet2Pt_", monitorJet.
pt());
769 fill(
"jet2Eta_", monitorJet.
eta());
773 FwdJetCand = monitorJet;
776 fill(
"FwdJetPt_", FwdJetCand.
pt());
777 fill(
"FwdJetEta_", FwdJetCand.
eta());
781 if (multNoBPur == 1 && multBPur == 1) {
783 fill(
"TaggedJetPtEta_", TaggedJetCand.
pt(), TaggedJetCand.
eta());
784 fill(
"UnTaggedJetPtEta_", UnTaggedJetCand.
pt(), UnTaggedJetCand.
eta());
786 fill(
"TaggedJetPt_", TaggedJetCand.
pt());
787 fill(
"TaggedJetEta_", TaggedJetCand.
eta());
788 fill(
"UnTaggedJetPt_", UnTaggedJetCand.
pt());
789 fill(
"UnTaggedJetEta_", UnTaggedJetCand.
eta());
792 fill(
"jetMult_", mult);
793 fill(
"jetMultBEff_", multBEff);
794 fill(
"jetMultBPur_", multBPur);
795 fill(
"jetMultBVtx_", multBVtx);
796 fill(
"jetMultBCombVtx_", multBCombVtx);
809 met_ =
mets_.begin();
810 met_ !=
mets_.end(); ++met_) {
813 if (met->begin() != met->end()) {
814 unsigned int idx = met_ -
mets_.begin();
816 fill(
"metCalo_", met->begin()->et());
819 fill(
"metTC_", met->begin()->et());
822 fill(
"metPflow_", met->begin()->et());
823 mET = *(met->begin());
838 double wMass = eventKinematics.
massWBoson(correctedJets);
839 double topMass = eventKinematics.
massTopQuark(correctedJets);
840 if (wMass >= 0 && topMass >= 0) {
841 fill(
"massW_", wMass);
842 fill(
"massTop_", topMass);
849 if (
logged_ <=
hists_.find(
"eventLogger_")->second->getNbinsY()) {
856 if (correctedJets.size() > 0)
857 fill(
"eventLogger_", 3.5,
logged_ + 0.5, correctedJets[0].
pt());
858 if (correctedJets.size() > 1)
859 fill(
"eventLogger_", 4.5,
logged_ + 0.5, correctedJets[1].
pt());
860 if (correctedJets.size() > 2)
861 fill(
"eventLogger_", 5.5,
logged_ + 0.5, correctedJets[2].
pt());
862 if (correctedJets.size() > 3)
863 fill(
"eventLogger_", 6.5,
logged_ + 0.5, correctedJets[3].
pt());
869 if (multBPur != 0 && mMultIso == 1) {
871 double mtW = eventKinematics.
tmassWBoson(&mu, mET, TaggedJetCand);
873 double MTT = eventKinematics.
tmassTopQuark(&mu, mET, TaggedJetCand);
877 if (multBPur != 0 && eMultIso == 1) {
878 double mtW = eventKinematics.
tmassWBoson(&e, mET, TaggedJetCand);
880 double MTT = eventKinematics.
tmassTopQuark(&e, mET, TaggedJetCand);
929 std::vector<edm::ParameterSet>
sel =
930 cfg.
getParameter<std::vector<edm::ParameterSet>>(
"selection");
932 for (
unsigned int i = 0;
i < sel.size(); ++
i) {
936 std::unique_ptr<SingleTopTChannelLepton::MonitorEnsemble>(
940 cfg.
getParameter<std::vector<edm::ParameterSet>>(
"selection"),
943 for (std::vector<std::string>::const_iterator selIt =
selectionOrder_.begin();
947 using std::unique_ptr;
949 if (
type ==
"muons") {
953 if (
type ==
"muons/pf") {
957 if (
type ==
"elecs") {
961 if (
type ==
"elecs/pf") {
969 if (
type ==
"jets") {
974 if (
type ==
"jets/pf") {
979 if (
type ==
"jets/calo") {
995 selIt->second.second->book(ibooker);
1019 unsigned int passed = 0;
1020 unsigned int nJetSteps = -1;
1021 unsigned int nPFJetSteps = -1;
1022 unsigned int nCaloJetSteps = -1;
1023 for (std::vector<std::string>::const_iterator selIt =
selectionOrder_.begin();
1027 if (
type ==
"empty") {
1030 if (
type ==
"presel") {
1064 if (
type ==
"jets") {
1074 if (
type ==
"jets/pf") {
1084 if (
type ==
"jets/calo") {
std::vector< std::string > selectionOrder_
std::map< std::string, MonitorElement * > hists_
std::string objectType(const std::string &label)
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::JetIDValueMap > jetIDLabel_
jetID as an extra selection type
double btagEffWP_
btag working points
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
Jets made from CaloTowers.
virtual void scaleEnergy(double fScale)
scale energy of the jet
std::vector< std::string > triggerPaths_
trigger paths
Level verbosity_
verbosity level for booking
virtual float pt() const
transverse momentum
static const double WMASS
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::unique_ptr< SelectionStep< reco::Vertex > > PvStep
virtual double correction(const LorentzVector &fJet) const =0
get correction using Jet information only
std::vector< ParameterSet > VParameterSet
Base class for all types of Jets.
int logged_
number of logged interesting events
std::vector< std::unique_ptr< SelectionStep< reco::CaloJet > > > CaloJetSteps
std::vector< std::unique_ptr< SelectionStep< reco::Jet > > > JetSteps
double massTopQuark(const std::vector< reco::Jet > &jets)
calculate t-quark mass estimate
edm::EDGetTokenT< reco::JetTagCollection > btagCombVtx_
edm::EDGetTokenT< edm::TriggerResults > triggerTable__
trigger table
edm::InputTag beamspot_
beamspot
std::string muonIso_
extra isolation criterion on muon
std::vector< std::string > triggerPaths_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::string muonSelect_
extra selection on muons
edm::EDGetTokenT< edm::View< reco::PFCandidate > > muons_
Jets made from PFObjects.
double massWBoson(const std::vector< reco::Jet > &jets)
calculate W boson mass estimate
SingleTopTChannelLeptonDQM(const edm::ParameterSet &cfg)
default constructor
LuminosityBlockNumber_t luminosityBlock() const
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
edm::InputTag vertex_
primary vertex
Helper class for the calculation of a top and a W boson mass estime.
std::string elecSelect_
extra selection on electrons
double lowerEdge_
mass window upper and lower edge
void triggerBinLabels(std::string channel, const std::vector< std::string > labels)
set configurable labels for trigger monitoring histograms
std::vector< edm::ParameterSet > sel
virtual float eta() const
momentum pseudorapidity
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::EDGetTokenT< edm::View< reco::GsfElectron > > elecs_gsf_
MonitorElement * book1D(Args &&...args)
Abs< T >::type abs(const T &t)
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > pvSelect_
edm::EDGetTokenT< reco::JetTagCollection > btagPur_
double tmassTopQuark(reco::RecoCandidate *lep, const reco::MET &met, const reco::Jet &b)
calculate top quark transverse mass estimate
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::EDGetTokenT< reco::JetTagCollection > btagEff_
btag discriminator labels
std::unique_ptr< StringCutObjectSelector< reco::JetID > > jetIDSelect_
extra jetID selection on calo jets
bool isNull() const
Checks for null.
std::unique_ptr< SelectionStep< reco::PFCandidate > > PFElectronStep
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
EventAuxiliary const & eventAuxiliary() const
std::string selectionStep(const std::string &label)
double tmassWBoson(reco::RecoCandidate *lep, const reco::MET &met, const reco::Jet &b)
calculate W boson transverse mass estimate
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
std::unique_ptr< SelectionStep< reco::GsfElectron > > ElectronStep
edm::EDGetTokenT< reco::JetTagCollection > btagVtx_
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
edm::EDGetTokenT< edm::View< reco::Vertex > > pvs_
static const JetCorrector * getJetCorrector(const std::string &fName, const edm::EventSetup &fSetup)
retrieve corrector from the event setup. troughs exception if something is missing ...
edm::EDGetTokenT< edm::View< reco::PFCandidate > > elecs_
std::unique_ptr< SelectionStep< reco::MET > > METStep
static const unsigned int MAXJETS
std::vector< edm::EDGetTokenT< edm::View< reco::MET > > > mets_
considers a vector of METs
Templated helper class to allow a selection on a certain object collection.
void fill(const edm::Event &event, const edm::EventSetup &setup)
fill monitor histograms with electronId and jetCorrections
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
input sources for monitoring
virtual void analyze(const edm::Event &event, const edm::EventSetup &setup)
do this during the event loop
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > vertexSelect_
string cut selector
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
edm::EDGetTokenT< reco::Vertex > vertex__
static EventSetupRecordKey makeKey()
void book(DQMStore::IBooker &ibooker)
book histograms in subdirectory directory
edm::EDGetTokenT< reco::BeamSpot > beamspot__
std::unique_ptr< StringCutObjectSelector< reco::BeamSpot > > beamspotSelect_
string cut selector
std::map< std::string, std::pair< edm::ParameterSet, std::unique_ptr< SingleTopTChannelLepton::MonitorEnsemble > > > selection_
bool isUninitialized() const
std::string jetCorrector_
jetCorrector
volatile std::atomic< bool > shutdown_flag false
std::vector< std::unique_ptr< SelectionStep< reco::PFJet > > > PFJetSteps
std::unique_ptr< SelectionStep< reco::Muon > > MuonStep
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
EventNumber_t event() const
std::unique_ptr< SelectionStep< reco::PFCandidate > > PFMuonStep
std::string label_
instance label
std::string elecIso_
extra isolation criterion on electron