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 | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () 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 32 of file ElectronHEEPIDValueMapProducer.cc.
|
explicit |
Definition at line 175 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 create_public_lumi_plots::transform.
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()().
|
override |
Definition at line 206 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()().
|
staticprivate |
Definition at line 253 of file ElectronHEEPIDValueMapProducer.cc.
References EleTkIsolFromCands::calIsolPt(), Exception, reco::GsfElectron::gsfTrack(), cmsBatch::handle, edm::Ref< C, T, F >::isNull(), and SiStripPI::max.
Referenced by nrSaturatedCrysIn5x5(), ElectronHEEPIDValueMapProducer::DataFormat::operator()(), and produce().
|
static |
Definition at line 289 of file ElectronHEEPIDValueMapProducer.cc.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), DEFINE_FWK_MODULE, and EleTkIsolFromCands::pSetDescript().
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()().
|
inlinestaticprivate |
Definition at line 110 of file ElectronHEEPIDValueMapProducer.cc.
References edm::Event::getByToken(), and cmsBatch::handle.
Referenced by produce().
|
inlinestaticprivate |
Definition at line 117 of file ElectronHEEPIDValueMapProducer.cc.
References ElectronHEEPIDValueMapProducer::DualToken< T >::aod, edm::Event::getByToken(), cmsBatch::handle, edm::HandleBase::isValid(), and ElectronHEEPIDValueMapProducer::DualToken< T >::miniAOD.
|
inlinestaticprivate |
Definition at line 127 of file ElectronHEEPIDValueMapProducer.cc.
References ElectronHEEPIDValueMapProducer::DualToken< T >::aod, edm::Event::getByToken(), and ElectronHEEPIDValueMapProducer::DualToken< T >::miniAOD.
Referenced by produce().
|
inlinestaticprivate |
Definition at line 142 of file ElectronHEEPIDValueMapProducer.cc.
References ElectronHEEPIDValueMapProducer::DualToken< T >::aod, edm::Event::getByToken(), cmsBatch::handle, and edm::HandleBase::isValid().
Referenced by produce().
|
staticprivate |
Definition at line 241 of file ElectronHEEPIDValueMapProducer.cc.
References calTrkIso(), EcalBarrel, EcalClusterToolsT< noZS >::nrSaturatedCrysIn5x5(), edm::Handle< T >::product(), edm::ESHandle< T >::product(), and reco::GsfElectron::superCluster().
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()(), and produce().
|
overrideprivate |
Definition at line 211 of file ElectronHEEPIDValueMapProducer.cc.
References beamSpotToken_, calTrkIso(), candTokens_, candVetosAOD_, candVetosMiniAOD_, ebRecHitToken_, eeRecHitToken_, eleNrSaturateIn5x5Label_, eleToken_, eleTrkPtIso04Label_, eleTrkPtIsoLabel_, edm::EventSetup::get(), getHandle(), getHandles(), isEventAOD(), makeTrkIso04_, nrSaturatedCrysIn5x5(), trkIso04Calc_, trkIsoCalc_, and writeValueMap().
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()().
|
inlineprivate |
Definition at line 77 of file ElectronHEEPIDValueMapProducer.cc.
References GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by ElectronHEEPIDValueMapProducer(), and setToken().
|
inlineprivate |
Definition at line 78 of file ElectronHEEPIDValueMapProducer.cc.
References edm::ParameterSet::getParameter(), and GlobalPosition_Frontier_DevDB_cff::tag.
|
inlineprivate |
Definition at line 79 of file ElectronHEEPIDValueMapProducer.cc.
References edm::ParameterSet::getParameter(), setToken(), GlobalPosition_Frontier_DevDB_cff::tag, and JetPlusTrackCorrections_cff::tagName.
|
inlineprivate |
Definition at line 87 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 91 of file ElectronHEEPIDValueMapProducer.cc.
References ElectronHEEPIDValueMapProducer::DualToken< T >::aod, edm::ParameterSet::getParameter(), SiStripPI::max, copyPickMerge_cfg::maxSize, ElectronHEEPIDValueMapProducer::DualToken< T >::miniAOD, setToken(), ElectronHEEPIDValueMapProducer::DataFormat::tryAOD(), and ElectronHEEPIDValueMapProducer::DataFormat::tryMiniAOD().
|
staticprivate |
Definition at line 277 of file ElectronHEEPIDValueMapProducer.cc.
References edm::helper::Filler< Map >::fill(), objects.autophobj::filler, cmsBatch::handle, edm::helper::Filler< Map >::insert(), eostools::move(), and edm::Event::put().
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()(), and produce().
|
private |
Definition at line 155 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 154 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 161 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 162 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 160 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer().
|
private |
Definition at line 151 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 152 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 166 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 153 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 165 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 164 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 159 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 158 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by produce().
|
private |
Definition at line 157 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by produce().