Classes | |
class | DataFormat |
struct | DualToken |
Public Member Functions | |
ElectronHEEPIDValueMapProducer (const edm::ParameterSet &) | |
~ElectronHEEPIDValueMapProducer () | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
float | calTrkIso (const reco::GsfElectron &ele, const edm::View< reco::GsfElectron > &eles, const std::vector< edm::Handle< pat::PackedCandidateCollection > > &handles) |
template<typename T > | |
edm::Handle< T > | getHandle (const edm::Event &iEvent, const edm::EDGetTokenT< T > &token) |
template<typename T > | |
edm::Handle< T > | getHandle (const edm::Event &iEvent, const DualToken< T > &token) |
template<typename T > | |
std::vector< edm::Handle< T > > | getHandles (const edm::Event &iEvent, const std::vector< DualToken< T > > &tokens) |
virtual 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 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_ |
DataFormat | dataFormat_ |
DualToken< EcalRecHitCollection > | ebRecHitToken_ |
DualToken< EcalRecHitCollection > | eeRecHitToken_ |
DualToken< edm::View< reco::GsfElectron > > | eleToken_ |
EleTkIsolFromCands | trkIsoCalc_ |
Static Private Attributes | |
static const std::string | eleNrSaturateIn5x5Label_ ="eleNrSaturateIn5x5" |
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 |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
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) |
Definition at line 32 of file ElectronHEEPIDValueMapProducer.cc.
|
explicit |
Definition at line 153 of file ElectronHEEPIDValueMapProducer.cc.
References beamSpotToken_, candTokens_, dataFormat_, ebRecHitToken_, eeRecHitToken_, eleNrSaturateIn5x5Label_, eleToken_, eleTrkPtIsoLabel_, and setToken().
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()().
ElectronHEEPIDValueMapProducer::~ElectronHEEPIDValueMapProducer | ( | ) |
Definition at line 167 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()().
|
private |
Definition at line 207 of file ElectronHEEPIDValueMapProducer.cc.
References EleTkIsolFromCands::calIsolPt(), reco::GsfElectron::gsfTrack(), cmsBatch::handle, edm::Ref< C, T, F >::isNull(), hpstanc_transforms::max, and trkIsoCalc_.
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()(), and produce().
|
static |
Definition at line 236 of file ElectronHEEPIDValueMapProducer.cc.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), DEFINE_FWK_MODULE, and EleTkIsolFromCands::pSetDescript().
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()().
|
inlineprivate |
Definition at line 107 of file ElectronHEEPIDValueMapProducer.cc.
References edm::Event::getByToken(), and cmsBatch::handle.
Referenced by produce().
|
inlineprivate |
Definition at line 112 of file ElectronHEEPIDValueMapProducer.cc.
References ElectronHEEPIDValueMapProducer::DualToken< T >::aod, edm::Event::getByToken(), cmsBatch::handle, edm::HandleBase::isValid(), and ElectronHEEPIDValueMapProducer::DualToken< T >::miniAOD.
|
inlineprivate |
Definition at line 119 of file ElectronHEEPIDValueMapProducer.cc.
References ElectronHEEPIDValueMapProducer::DualToken< T >::aod, edm::Event::getByToken(), and ElectronHEEPIDValueMapProducer::DualToken< T >::miniAOD.
Referenced by produce().
|
staticprivate |
Definition at line 196 of file ElectronHEEPIDValueMapProducer.cc.
References EcalBarrel, EcalClusterToolsT< noZS >::nrSaturatedCrysIn5x5(), edm::Handle< T >::product(), edm::ESHandle< T >::product(), and reco::GsfElectron::superCluster().
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()(), and produce().
|
overrideprivatevirtual |
Definition at line 172 of file ElectronHEEPIDValueMapProducer.cc.
References beamSpotToken_, calTrkIso(), candTokens_, ebRecHitToken_, eeRecHitToken_, eleNrSaturateIn5x5Label_, eleToken_, eleTrkPtIsoLabel_, edm::EventSetup::get(), getHandle(), getHandles(), nrSaturatedCrysIn5x5(), and writeValueMap().
Referenced by ElectronHEEPIDValueMapProducer::DataFormat::operator()().
|
inlineprivate |
Definition at line 75 of file ElectronHEEPIDValueMapProducer.cc.
References GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by ElectronHEEPIDValueMapProducer(), and setToken().
|
inlineprivate |
Definition at line 76 of file ElectronHEEPIDValueMapProducer.cc.
References edm::ParameterSet::getParameter(), and GlobalPosition_Frontier_DevDB_cff::tag.
|
inlineprivate |
Definition at line 77 of file ElectronHEEPIDValueMapProducer.cc.
References edm::ParameterSet::getParameter(), setToken(), GlobalPosition_Frontier_DevDB_cff::tag, and JetPlusTrackCorrections_cff::tagName.
|
inlineprivate |
Definition at line 85 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 89 of file ElectronHEEPIDValueMapProducer.cc.
References ElectronHEEPIDValueMapProducer::DualToken< T >::aod, edm::ParameterSet::getParameter(), hpstanc_transforms::max, copyPickMerge_cfg::maxSize, ElectronHEEPIDValueMapProducer::DualToken< T >::miniAOD, setToken(), ElectronHEEPIDValueMapProducer::DataFormat::tryAOD(), and ElectronHEEPIDValueMapProducer::DataFormat::tryMiniAOD().
|
staticprivate |
Definition at line 224 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 139 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 138 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 142 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer().
|
private |
Definition at line 135 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 136 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 145 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 137 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 144 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by ElectronHEEPIDValueMapProducer(), and produce().
|
private |
Definition at line 141 of file ElectronHEEPIDValueMapProducer.cc.
Referenced by calTrkIso().