Classes | |
class | DataFormat |
struct | DualToken |
Public Member Functions | |
ElectronHEEPIDValueMapProducer (const edm::ParameterSet &) | |
~ElectronHEEPIDValueMapProducer () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndRuns () const final |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | produce (edm::Event &, const edm::EventSetup &) override |
template<typename T > | |
void | setToken (edm::EDGetTokenT< T > &token, edm::InputTag tag) |
template<typename T > | |
void | setToken (edm::EDGetTokenT< T > &token, const edm::ParameterSet &iPara, const std::string &tag) |
template<typename T > | |
void | setToken (std::vector< edm::EDGetTokenT< T > > &tokens, const edm::ParameterSet &iPara, const std::string &tagName) |
template<typename T > | |
void | setToken (DualToken< T > &token, const edm::ParameterSet &iPara, const std::string &tagAOD, const std::string &tagMiniAOD, DataFormat format) |
template<typename T > | |
void | setToken (std::vector< DualToken< T > > &tokens, const edm::ParameterSet &iPara, const std::string &tagAOD, const std::string &tagMiniAOD, DataFormat format) |
Static Private Member Functions | |
static float | calTrkIso (const reco::GsfElectron &ele, const edm::View< reco::GsfElectron > &eles, const std::vector< edm::Handle< pat::PackedCandidateCollection > > &handles, const std::vector< EleTkIsolFromCands::PIDVeto > &pidVetos, const EleTkIsolFromCands &trkIsoCalc) |
template<typename T > | |
static edm::Handle< T > | getHandle (const edm::Event &iEvent, const edm::EDGetTokenT< T > &token) |
template<typename T > | |
static edm::Handle< T > | getHandle (const edm::Event &iEvent, const DualToken< T > &token) |
template<typename T > | |
static std::vector< edm::Handle< T > > | getHandles (const edm::Event &iEvent, const std::vector< DualToken< T > > &tokens) |
template<typename T > | |
static bool | isEventAOD (const edm::Event &iEvent, const DualToken< T > &token) |
static int | nrSaturatedCrysIn5x5 (const reco::GsfElectron &ele, edm::Handle< EcalRecHitCollection > &ebHits, edm::Handle< EcalRecHitCollection > &eeHits, edm::ESHandle< CaloTopology > &caloTopo) |
template<typename T > | |
static void | writeValueMap (edm::Event &iEvent, const edm::Handle< edm::View< reco::GsfElectron > > &handle, const std::vector< T > &values, const std::string &label) |
Private Attributes | |
edm::EDGetTokenT< reco::BeamSpot > | beamSpotToken_ |
std::vector< DualToken< pat::PackedCandidateCollection > > | candTokens_ |
std::vector< EleTkIsolFromCands::PIDVeto > | candVetosAOD_ |
std::vector< EleTkIsolFromCands::PIDVeto > | candVetosMiniAOD_ |
DataFormat | dataFormat_ |
DualToken< EcalRecHitCollection > | ebRecHitToken_ |
DualToken< EcalRecHitCollection > | eeRecHitToken_ |
DualToken< edm::View< reco::GsfElectron > > | eleToken_ |
bool | makeTrkIso04_ |
EleTkIsolFromCands | trkIso04Calc_ |
EleTkIsolFromCands | trkIsoCalc_ |
Static Private Attributes | |
static const std::string | eleNrSaturateIn5x5Label_ = "eleNrSaturateIn5x5" |
static const std::string | eleTrkPtIso04Label_ = "eleTrkPtIso04" |
static const std::string | eleTrkPtIsoLabel_ = "eleTrkPtIso" |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Definition at line 31 of file ElectronHEEPIDValueMapProducer.cc.
|
explicit |
Definition at line 198 of file ElectronHEEPIDValueMapProducer.cc.
References beamSpotToken_, candTokens_, candVetosAOD_, candVetosMiniAOD_, dataFormat_, ebRecHitToken_, eeRecHitToken_, eleNrSaturateIn5x5Label_, eleToken_, eleTrkPtIso04Label_, eleTrkPtIsoLabel_, Exception, edm::ParameterSet::getParameter(), recoMuon::in, makeTrkIso04_, MillePedeFileConverter_cfg::out, EleTkIsolFromCands::pidVetoFromStr(), setToken(), findQualityFiles::size, and HcalDetIdTransform::transform().
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()().
|
override |
Definition at line 230 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()().
|
staticprivate |
Definition at line 271 of file ElectronHEEPIDValueMapProducer.cc.
References EleTkIsolFromCands::calIsolPt(), Exception, reco::GsfElectron::gsfTrack(), patZpeak::handle, edm::Ref< C, T, F >::isNull(), SiStripPI::max, and ZMuMuCategoriesSequences_cff::trkIso.
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()(), and produce().
|
static |
Definition at line 308 of file ElectronHEEPIDValueMapProducer.cc.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), DEFINE_FWK_MODULE, HLT_2018_cff::InputTag, and EleTkIsolFromCands::pSetDescript().
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()().
|
inlinestaticprivate |
Definition at line 131 of file ElectronHEEPIDValueMapProducer.cc.
References edm::Event::getByToken(), and patZpeak::handle.
Referenced by produce().
|
inlinestaticprivate |
Definition at line 137 of file ElectronHEEPIDValueMapProducer.cc.
References ElectronHEEPIDValueMapProducer::DualToken< T >::aod, edm::Event::getByToken(), patZpeak::handle, edm::HandleBase::isValid(), and ElectronHEEPIDValueMapProducer::DualToken< T >::miniAOD.
|
inlinestaticprivate |
Definition at line 147 of file ElectronHEEPIDValueMapProducer.cc.
References ElectronHEEPIDValueMapProducer::DualToken< T >::aod, edm::Event::getByToken(), HLTEGTnPMonitor_cfi::isAOD, ElectronHEEPIDValueMapProducer::DualToken< T >::miniAOD, and unpackBuffers-CaloStage2::token.
Referenced by produce().
|
inlinestaticprivate |
Definition at line 166 of file ElectronHEEPIDValueMapProducer.cc.
References ElectronHEEPIDValueMapProducer::DualToken< T >::aod, edm::Event::getByToken(), patZpeak::handle, and edm::HandleBase::isValid().
Referenced by produce().
|
staticprivate |
Definition at line 262 of file ElectronHEEPIDValueMapProducer.cc.
References EcalBarrel, EcalClusterToolsT< noZS >::nrSaturatedCrysIn5x5(), edm::Handle< T >::product(), edm::ESHandle< T >::product(), FastTrackerRecHitMaskProducer_cfi::recHits, and reco::GsfElectron::superCluster().
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()(), and produce().
|
overrideprivate |
Definition at line 232 of file ElectronHEEPIDValueMapProducer.cc.
References beamSpotToken_, calTrkIso(), candTokens_, candVetosAOD_, candVetosMiniAOD_, ebRecHitToken_, eeRecHitToken_, eleNrSaturateIn5x5Label_, eleToken_, eleTrkPtIso04Label_, eleTrkPtIsoLabel_, edm::EventSetup::get(), getHandle(), getHandles(), HLTEGTnPMonitor_cfi::isAOD, isEventAOD(), makeTrkIso04_, nrSaturatedCrysIn5x5(), trkIso04Calc_, trkIsoCalc_, and writeValueMap().
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()().
|
inlineprivate |
Definition at line 80 of file ElectronHEEPIDValueMapProducer.cc.
References GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by ElectronHEEPIDValueMapProducer(), and setToken().
|
inlineprivate |
Definition at line 84 of file ElectronHEEPIDValueMapProducer.cc.
References edm::ParameterSet::getParameter(), and GlobalPosition_Frontier_DevDB_cff::tag.
|
inlineprivate |
Definition at line 88 of file ElectronHEEPIDValueMapProducer.cc.
References edm::ParameterSet::getParameter(), setToken(), GlobalPosition_Frontier_DevDB_cff::tag, JetPartonCorrections_cff::tagName, triggerMatcherToHLTDebug_cfi::tags, and unpackBuffers-CaloStage2::token.
|
inlineprivate |
Definition at line 97 of file ElectronHEEPIDValueMapProducer.cc.
References ElectronHEEPIDValueMapProducer::DualToken< T >::aod, edm::ParameterSet::getParameter(), ElectronHEEPIDValueMapProducer::DualToken< T >::miniAOD, ElectronHEEPIDValueMapProducer::DataFormat::tryAOD(), and ElectronHEEPIDValueMapProducer::DataFormat::tryMiniAOD().
|
inlineprivate |
Definition at line 108 of file ElectronHEEPIDValueMapProducer.cc.
References ElectronHEEPIDValueMapProducer::DualToken< T >::aod, edm::ParameterSet::getParameter(), SiStripPI::max, reco_skim_cfg_mod::maxSize, ElectronHEEPIDValueMapProducer::DualToken< T >::miniAOD, setToken(), ElectronHEEPIDValueMapProducer::DataFormat::tryAOD(), and ElectronHEEPIDValueMapProducer::DataFormat::tryMiniAOD().
|
staticprivate |
Definition at line 297 of file ElectronHEEPIDValueMapProducer.cc.
References edm::helper::Filler< Map >::fill(), trigObjTnPSource_cfi::filler, patZpeak::handle, edm::helper::Filler< Map >::insert(), eostools::move(), and edm::Event::put().
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()(), and produce().
|
private |
Definition at line 180 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 179 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 186 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 187 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 185 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer().
|
private |
Definition at line 176 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 177 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 191 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 178 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 190 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 189 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 184 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 183 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by produce().
|
private |
Definition at line 182 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by produce().