#include <ReducedEGProducer.h>
Public Member Functions | |
virtual void | produce (edm::Event &evt, const edm::EventSetup &es) override final |
ReducedEGProducer (const edm::ParameterSet &ps) | |
~ReducedEGProducer () | |
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) |
Private Member Functions | |
void | linkCaloCluster (const reco::CaloClusterPtr &caloCluster, reco::CaloClusterCollection &caloClusters, std::map< reco::CaloClusterPtr, unsigned int > &caloClusterMap) |
void | linkCaloClusters (const reco::SuperCluster &superCluster, reco::CaloClusterCollection &ebeeClusters, std::map< reco::CaloClusterPtr, unsigned int > &ebeeClusterMap, std::unordered_set< DetId > &rechitMap, const edm::Handle< EcalRecHitCollection > &barrelHitHandle, const edm::Handle< EcalRecHitCollection > &endcapHitHandle, const CaloTopology *caloTopology, reco::CaloClusterCollection &esClusters, std::map< reco::CaloClusterPtr, unsigned int > &esClusterMap) |
void | linkConversion (const reco::ConversionRef &convref, reco::ConversionCollection &conversions, std::map< reco::ConversionRef, unsigned int > &conversionMap) |
void | linkConversions (const reco::ConversionRefVector &convrefs, reco::ConversionCollection &conversions, std::map< reco::ConversionRef, unsigned int > &conversionMap) |
void | linkConversionsByTrackRef (const edm::Handle< reco::ConversionCollection > &conversionHandle, const reco::GsfElectron &gsfElectron, reco::ConversionCollection &conversions, std::map< reco::ConversionRef, unsigned int > &conversionMap) |
void | linkConversionsByTrackRef (const edm::Handle< reco::ConversionCollection > &conversionHandle, const reco::SuperCluster &superCluster, reco::ConversionCollection &conversions, std::map< reco::ConversionRef, unsigned int > &conversionMap) |
template<typename T , typename U > | |
void | linkCore (const T &core, U &cores, std::map< T, unsigned int > &coreMap) |
void | linkSuperCluster (const reco::SuperClusterRef &superCluster, std::map< reco::SuperClusterRef, unsigned int > &superClusterMap, reco::SuperClusterCollection &superClusters, const bool relink, std::unordered_set< unsigned int > &superClusterFullRelinkMap) |
void | relinkCaloClusters (reco::SuperCluster &superCluster, const std::map< reco::CaloClusterPtr, unsigned int > &ebeeClusterMap, const std::map< reco::CaloClusterPtr, unsigned int > &esClusterMap, const edm::OrphanHandle< reco::CaloClusterCollection > &outEBEEClusterHandle, const edm::OrphanHandle< reco::CaloClusterCollection > &outESClusterHandle) |
void | relinkConversions (reco::PhotonCore &photonCore, const reco::ConversionRefVector &convrefs, const std::map< reco::ConversionRef, unsigned int > &conversionMap, const edm::OrphanHandle< reco::ConversionCollection > &outConversionHandle) |
void | relinkGsfElectronCore (reco::GsfElectron &gsfElectron, const std::map< reco::GsfElectronCoreRef, unsigned int > &gsfElectronCoreMap, const edm::OrphanHandle< reco::GsfElectronCoreCollection > &outGsfElectronCoreHandle) |
void | relinkPhotonCore (reco::Photon &photon, const std::map< reco::PhotonCoreRef, unsigned int > &photonCoreMap, const edm::OrphanHandle< reco::PhotonCoreCollection > &outPhotonCoreHandle) |
template<typename T > | |
void | relinkSuperCluster (T &core, const std::map< reco::SuperClusterRef, unsigned int > &superClusterMap, const edm::OrphanHandle< reco::SuperClusterCollection > &outSuperClusterHandle) |
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 |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
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) |
Select subset of electrons and photons from input collections and produced consistently relinked output collections including associated SuperClusters, CaloClusters and ecal RecHits
Definition at line 47 of file ReducedEGProducer.h.
ReducedEGProducer::ReducedEGProducer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 56 of file ReducedEGProducer.cc.
References edm::EDConsumerBase::consumes(), doPreshowerEcalHits_, edm::ParameterSet::getParameter(), gsfElectronIdTs_, gsfElectronPFClusterIsoTs_, ootPhotonPFClusterIsoTs_, outConversions_, outEBEEClusters_, outEBRecHits_, outEERecHits_, outESClusters_, outESRecHits_, outGsfElectronCores_, outGsfElectronIds_, outGsfElectronPfCandMap_, outGsfElectronPFClusterIsos_, outGsfElectrons_, outOOTEBEEClusters_, outOOTESClusters_, outOOTPhotonCores_, outOOTPhotonPFClusterIsos_, outOOTPhotons_, outOOTSuperClusters_, outPhotonCores_, outPhotonIds_, outPhotonPfCandMap_, outPhotonPFClusterIsos_, outPhotons_, outSingleConversions_, outSuperClusters_, photonIdTs_, photonPFClusterIsoTs_, AlCaHLTBitMon_QueryRunRegistry::string, and GlobalPosition_Frontier_DevDB_cff::tag.
ReducedEGProducer::~ReducedEGProducer | ( | ) |
Definition at line 169 of file ReducedEGProducer.cc.
|
private |
Definition at line 720 of file ReducedEGProducer.cc.
Referenced by linkCaloClusters(), and produce().
|
private |
Definition at line 730 of file ReducedEGProducer.cc.
References Reference_intrackfit_cff::barrel, reco::SuperCluster::clusters(), DetId::Ecal, EcalBarrel, EcalEndcap, CaloTopology::getSubdetectorTopology(), CaloSubdetectorTopology::getWindow(), linkCaloCluster(), reco::SuperCluster::preshowerClusters(), edm::Handle< T >::product(), and SurveyInfoScenario_cff::seed.
Referenced by produce().
|
private |
Definition at line 710 of file ReducedEGProducer.cc.
Referenced by linkConversions(), and linkConversionsByTrackRef().
|
private |
Definition at line 667 of file ReducedEGProducer.cc.
References linkConversion().
Referenced by produce().
|
private |
Definition at line 676 of file ReducedEGProducer.cc.
References edm::conversion(), diffTreeTool::index, linkConversion(), electronMatch_cfi::matched, and ConversionTools::matchesConversion().
Referenced by produce().
|
private |
Definition at line 693 of file ReducedEGProducer.cc.
References edm::conversion(), diffTreeTool::index, linkConversion(), electronMatch_cfi::matched, and ConversionTools::matchesConversion().
|
private |
Definition at line 636 of file ReducedEGProducer.cc.
Referenced by produce().
|
private |
|
finaloverridevirtual |
Definition at line 173 of file ReducedEGProducer.cc.
References barrelEcalHits_, printConversionInfo::conversionHandle, conversions_cfi::conversions, conversionT_, doPreshowerEcalHits_, endcapEcalHits_, ev, objects.autophobj::filler, edm::EventSetup::get(), edm::Event::getByToken(), gsfElectronCores_cfi::gsfElectronCores, gsfElectronIdTs_, gsfElectronPfCandMapT_, gsfElectronPFClusterIsoTs_, gsfElectrons_cfi::gsfElectrons, gsfElectronT_, diffTreeTool::index, keep, keepGsfElectronSel_, keepOOTPhotonSel_, keepPhotonSel_, linkCaloCluster(), linkCaloClusters(), linkConversions(), linkConversionsByTrackRef(), linkCore(), linkSuperCluster(), eostools::move(), ootPhotonCore_cff::ootPhotonCore, ootPhotonPFClusterIsoTs_, ootPhotons_cff::ootPhotons, ootPhotonT_, outConversions_, outEBEEClusters_, outEBRecHits_, outEERecHits_, outESClusters_, outESRecHits_, outGsfElectronCores_, outGsfElectronIds_, outGsfElectronPfCandMap_, outGsfElectronPFClusterIsos_, outGsfElectrons_, outOOTEBEEClusters_, outOOTESClusters_, outOOTPhotonCores_, outOOTPhotonPFClusterIsos_, outOOTPhotons_, outOOTSuperClusters_, outPhotonCores_, outPhotonIds_, outPhotonPfCandMap_, outPhotonPFClusterIsos_, outPhotons_, outSingleConversions_, outSuperClusters_, muons2muons_cfi::photon, photonCore_cfi::photonCore, photonIdTs_, photonPfCandMapT_, photonPFClusterIsoTs_, jetCleaner_cfi::photons, photonT_, preshowerEcalHits_, edm::Event::put(), relinkCaloClusters(), relinkConversions(), relinkGsfElectronCore(), relinkGsfElectronSel_, relinkOOTPhotonSel_, relinkPhotonCore(), relinkPhotonSel_, relinkSuperCluster(), reducedEgamma_cfi::singleConversions, singleConversionT_, slimRelinkGsfElectronSel_, slimRelinkOOTPhotonSel_, slimRelinkPhotonSel_, AlCaHLTBitMon_QueryRunRegistry::string, and create_public_pileup_plots::vals.
|
private |
Definition at line 766 of file ReducedEGProducer.cc.
References edm::PtrVectorBase::clear(), fastPrimaryVertexProducer_cfi::clusters, reco::SuperCluster::clusters(), reco::SuperCluster::preshowerClusters(), edm::PtrVector< T >::push_back(), reco::SuperCluster::seed(), reco::SuperCluster::setClusters(), reco::SuperCluster::setPreshowerClusters(), reco::SuperCluster::setSeed(), and edm::PtrVectorBase::size().
Referenced by produce().
|
private |
Definition at line 832 of file ReducedEGProducer.cc.
References edm::RefVector< C, T, F >::clear(), reco::PhotonCore::setConversions(), and edm::RefVector< C, T, F >::size().
Referenced by produce().
|
private |
Definition at line 867 of file ReducedEGProducer.cc.
References reco::GsfElectron::core(), and reco::GsfElectron::setCore().
Referenced by produce().
|
private |
Definition at line 855 of file ReducedEGProducer.cc.
References reco::Photon::photonCore(), and reco::Photon::setPhotonCore().
Referenced by produce().
|
private |
Definition at line 820 of file ReducedEGProducer.cc.
Referenced by produce().
|
private |
Definition at line 130 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 127 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 132 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 131 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 139 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 136 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 143 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 126 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 177 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 174 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 171 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 142 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 125 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 152 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 155 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 160 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 161 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 156 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 162 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 151 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 166 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 164 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 169 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 150 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 158 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 159 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 149 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 168 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 148 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 157 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 147 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 165 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 163 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 167 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 146 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 153 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 154 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 138 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 135 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 141 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 124 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 133 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 179 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 176 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 173 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 128 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 178 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 175 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 172 of file ReducedEGProducer.h.
Referenced by produce().