#include <L1TEGammaOffline.h>
Protected Member Functions | |
void | analyze (edm::Event const &e, edm::EventSetup const &eSetup) |
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup) |
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) override |
void | endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup) |
void | endRun (edm::Run const &run, edm::EventSetup const &eSetup) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Private Member Functions | |
void | bookElectronHistos (DQMStore::IBooker &) |
void | bookPhotonHistos (DQMStore::IBooker &) |
double | calcDeltaPhi (double phi1, double phi2) |
double | Distance (const reco::Candidate &c1, const reco::Candidate &c2) |
double | DistancePhi (const reco::Candidate &c1, const reco::Candidate &c2) |
void | fillElectrons (edm::Event const &e, const unsigned int nVertex) |
void | fillPhotons (edm::Event const &e, const unsigned int nVertex) |
bool | findTagAndProbePair (edm::Handle< reco::GsfElectronCollection > const &electrons) |
bool | passesLooseEleId (reco::GsfElectron const &electron) const |
bool | passesMediumEleId (reco::GsfElectron const &electron) const |
Definition at line 37 of file L1TEGammaOffline.h.
L1TEGammaOffline::L1TEGammaOffline | ( | const edm::ParameterSet & | ps | ) |
Definition at line 23 of file L1TEGammaOffline.cc.
|
virtual |
Definition at line 52 of file L1TEGammaOffline.cc.
|
protectedvirtual |
Implements edm::stream::EDAnalyzerBase.
Definition at line 87 of file L1TEGammaOffline.cc.
References fillElectrons(), fillPhotons(), dqmoffline::l1t::fillWithinLimits(), edm::Event::getByToken(), h_nVertex_, edm::HandleBase::isValid(), and thePVCollection_.
|
protectedvirtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 79 of file L1TEGammaOffline.cc.
|
private |
Definition at line 486 of file L1TEGammaOffline.cc.
References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::cd(), efficiencyFolder_, electronEfficiencyBins_, electronEfficiencyThresholds_, h_efficiencyElectronET_EB_EE_pass_, h_efficiencyElectronET_EB_EE_total_, h_efficiencyElectronET_EB_pass_, h_efficiencyElectronET_EB_total_, h_efficiencyElectronET_EE_pass_, h_efficiencyElectronET_EE_total_, h_L1EGammaEtavsElectronEta_, h_L1EGammaETvsElectronET_EB_, h_L1EGammaETvsElectronET_EB_EE_, h_L1EGammaETvsElectronET_EE_, h_L1EGammaPhivsElectronPhi_EB_, h_L1EGammaPhivsElectronPhi_EB_EE_, h_L1EGammaPhivsElectronPhi_EE_, h_nVertex_, h_resolutionElectronET_EB_, h_resolutionElectronET_EB_EE_, h_resolutionElectronET_EE_, h_resolutionElectronEta_, h_resolutionElectronPhi_EB_, h_resolutionElectronPhi_EB_EE_, h_resolutionElectronPhi_EE_, h_tagAndProbeMass_, histFolder_, DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and ctppsDiamondLocalTracks_cfi::threshold.
Referenced by bookHistograms().
|
overrideprotectedvirtual |
Implements DQMEDAnalyzer.
Definition at line 68 of file L1TEGammaOffline.cc.
References bookElectronHistos(), and bookPhotonHistos().
|
private |
Definition at line 572 of file L1TEGammaOffline.cc.
References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::cd(), DEFINE_FWK_MODULE, efficiencyFolder_, h_efficiencyPhotonET_EB_EE_pass_, h_efficiencyPhotonET_EB_EE_total_, h_efficiencyPhotonET_EB_pass_, h_efficiencyPhotonET_EB_total_, h_efficiencyPhotonET_EE_pass_, h_efficiencyPhotonET_EE_total_, h_L1EGammaEtavsPhotonEta_, h_L1EGammaETvsPhotonET_EB_, h_L1EGammaETvsPhotonET_EB_EE_, h_L1EGammaETvsPhotonET_EE_, h_L1EGammaPhivsPhotonPhi_EB_, h_L1EGammaPhivsPhotonPhi_EB_EE_, h_L1EGammaPhivsPhotonPhi_EE_, h_resolutionPhotonET_EB_, h_resolutionPhotonET_EB_EE_, h_resolutionPhotonET_EE_, h_resolutionPhotonEta_, h_resolutionPhotonPhi_EB_, h_resolutionPhotonPhi_EB_EE_, h_resolutionPhotonPhi_EE_, histFolder_, photonEfficiencyBins_, photonEfficiencyThresholds_, DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and ctppsDiamondLocalTracks_cfi::threshold.
Referenced by bookHistograms().
|
private |
|
private |
|
private |
|
overrideprotectedvirtual |
Reimplemented from DQMEDAnalyzer.
Definition at line 60 of file L1TEGammaOffline.cc.
|
protectedvirtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 470 of file L1TEGammaOffline.cc.
|
protectedvirtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 478 of file L1TEGammaOffline.cc.
|
private |
Definition at line 106 of file L1TEGammaOffline.cc.
References funct::abs(), BXVector< T >::begin(), deltaR(), electronEfficiencyThresholds_, BXVector< T >::end(), reco::LeafCandidate::et(), reco::LeafCandidate::eta(), dqmoffline::l1t::fill2DWithinLimits(), dqmoffline::l1t::fillWithinLimits(), findTagAndProbePair(), edm::Event::getByToken(), gsfElectrons_cfi::gsfElectrons, h_efficiencyElectronET_EB_EE_pass_, h_efficiencyElectronET_EB_EE_total_, h_efficiencyElectronET_EB_pass_, h_efficiencyElectronET_EB_total_, h_efficiencyElectronET_EE_pass_, h_efficiencyElectronET_EE_total_, h_L1EGammaEtavsElectronEta_, h_L1EGammaETvsElectronET_EB_, h_L1EGammaETvsElectronET_EB_EE_, h_L1EGammaETvsElectronET_EE_, h_L1EGammaPhivsElectronPhi_EB_, h_L1EGammaPhivsElectronPhi_EB_EE_, h_L1EGammaPhivsElectronPhi_EE_, h_resolutionElectronET_EB_, h_resolutionElectronET_EB_EE_, h_resolutionElectronET_EE_, h_resolutionElectronEta_, h_resolutionElectronPhi_EB_, h_resolutionElectronPhi_EB_EE_, h_resolutionElectronPhi_EE_, edm::HandleBase::isValid(), LogDebug, reco::LeafCandidate::phi(), probeElectron_, stage2CaloLayer2EGammaToken_, theGsfElectronCollection_, and ctppsDiamondLocalTracks_cfi::threshold.
Referenced by analyze().
|
private |
Definition at line 352 of file L1TEGammaOffline.cc.
References funct::abs(), BXVector< T >::begin(), deltaR(), BXVector< T >::end(), reco::LeafCandidate::et(), reco::LeafCandidate::eta(), dqmoffline::l1t::fill2DWithinLimits(), dqmoffline::l1t::fillWithinLimits(), edm::Event::getByToken(), h_efficiencyPhotonET_EB_EE_pass_, h_efficiencyPhotonET_EB_EE_total_, h_efficiencyPhotonET_EB_pass_, h_efficiencyPhotonET_EB_total_, h_efficiencyPhotonET_EE_pass_, h_efficiencyPhotonET_EE_total_, h_L1EGammaEtavsPhotonEta_, h_L1EGammaETvsPhotonET_EB_, h_L1EGammaETvsPhotonET_EB_EE_, h_L1EGammaETvsPhotonET_EE_, h_L1EGammaPhivsPhotonPhi_EB_, h_L1EGammaPhivsPhotonPhi_EB_EE_, h_L1EGammaPhivsPhotonPhi_EE_, h_resolutionPhotonET_EB_, h_resolutionPhotonET_EB_EE_, h_resolutionPhotonET_EE_, h_resolutionPhotonEta_, h_resolutionPhotonPhi_EB_, h_resolutionPhotonPhi_EB_EE_, h_resolutionPhotonPhi_EE_, edm::HandleBase::isValid(), LogDebug, reco::LeafCandidate::phi(), photonEfficiencyThresholds_, jetCleaner_cfi::photons, stage2CaloLayer2EGammaToken_, thePhotonCollection_, and ctppsDiamondLocalTracks_cfi::threshold.
Referenced by analyze().
|
private |
From https://cds.cern.ch/record/2202966/files/DP2016_044.pdf slide 8 Filter on HLT_Ele30WP60_Ele8_Mass55 (TODO) HLT_Ele30WP60_SC4_Mass55 (TODO) Seeded by L1SingleEG, unprescaled required
Tag & probe selection Electron required to be within ECAL fiducial volume (|η|<1.4442 || 1.566<|η|<2.5). 60 < m(ee) < 120 GeV. Opposite charge requirement. Tag required to pass medium electron ID and ET > 30 GeV. Probe required to pass loose electron ID.
electrons |
Definition at line 242 of file L1TEGammaOffline.cc.
References funct::abs(), dqmoffline::l1t::fillWithinLimits(), h_tagAndProbeMass_, passesLooseEleId(), passesMediumEleId(), probeElectron_, and tagElectron_.
Referenced by fillElectrons().
|
private |
Structure from https://github.com/cms-sw/cmssw/blob/CMSSW_9_0_X/DQMOffline/EGamma/plugins/ElectronAnalyzer.cc Values from https://twiki.cern.ch/twiki/bin/view/CMS/CutBasedElectronIdentificationRun2
Definition at line 288 of file L1TEGammaOffline.cc.
References funct::abs(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::GsfElectron::ecalEnergy(), reco::GsfElectron::eSuperClusterOverP(), reco::GsfElectron::hadronicOverEm(), reco::GsfElectron::isEB(), reco::GsfElectron::isEE(), and reco::GsfElectron::scSigmaIEtaIEta().
Referenced by findTagAndProbePair().
|
private |
Definition at line 323 of file L1TEGammaOffline.cc.
References funct::abs(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::GsfElectron::ecalEnergy(), reco::GsfElectron::eSuperClusterOverP(), reco::GsfElectron::hadronicOverEm(), reco::GsfElectron::isEB(), reco::GsfElectron::isEE(), and reco::GsfElectron::scSigmaIEtaIEta().
Referenced by findTagAndProbePair().
|
private |
Definition at line 80 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and bookPhotonHistos().
|
private |
Definition at line 85 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos().
|
private |
Definition at line 84 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 124 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 130 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 122 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 128 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 123 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 129 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 157 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 163 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 155 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 161 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 156 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 162 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 108 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 141 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 100 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 102 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 101 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 133 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 135 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 134 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 104 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 106 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 105 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 137 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 139 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 138 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 96 of file L1TEGammaOffline.h.
Referenced by analyze(), and bookElectronHistos().
|
private |
Definition at line 111 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 113 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 112 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 119 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 115 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 117 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 116 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and fillElectrons().
|
private |
Definition at line 144 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 146 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 145 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 152 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 148 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 150 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 149 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 97 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and findTagAndProbePair().
|
private |
Definition at line 79 of file L1TEGammaOffline.h.
Referenced by bookElectronHistos(), and bookPhotonHistos().
|
private |
Definition at line 88 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos().
|
private |
Definition at line 87 of file L1TEGammaOffline.h.
Referenced by bookPhotonHistos(), and fillPhotons().
|
private |
Definition at line 91 of file L1TEGammaOffline.h.
Referenced by fillElectrons(), and findTagAndProbePair().
|
private |
Definition at line 68 of file L1TEGammaOffline.h.
|
private |
Definition at line 82 of file L1TEGammaOffline.h.
Referenced by fillElectrons(), and fillPhotons().
|
private |
Definition at line 92 of file L1TEGammaOffline.h.
|
private |
Definition at line 90 of file L1TEGammaOffline.h.
Referenced by findTagAndProbePair().
|
private |
Definition at line 74 of file L1TEGammaOffline.h.
|
private |
Definition at line 71 of file L1TEGammaOffline.h.
Referenced by fillElectrons().
|
private |
Definition at line 72 of file L1TEGammaOffline.h.
Referenced by fillPhotons().
|
private |
Definition at line 73 of file L1TEGammaOffline.h.
Referenced by analyze().
|
private |
Definition at line 75 of file L1TEGammaOffline.h.
|
private |
Definition at line 77 of file L1TEGammaOffline.h.
|
private |
Definition at line 78 of file L1TEGammaOffline.h.
|
private |
Definition at line 76 of file L1TEGammaOffline.h.