#include <ReducedEGProducer.h>
Public Member Functions | |
void | beginRun (edm::Run const &, const edm::EventSetup &) final |
void | produce (edm::Event &evt, const edm::EventSetup &es) final |
ReducedEGProducer (const edm::ParameterSet &ps) | |
~ReducedEGProducer () 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 |
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 | linkHcalHits (const reco::SuperCluster &superClus, const HBHERecHitCollection &recHits, std::unordered_set< DetId > &hcalDetIds) |
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 | relinkGsfTrack (reco::GsfElectronCore &electroncore, const std::map< reco::GsfTrackRef, unsigned int > &gsfTrackMap, const edm::OrphanHandle< reco::GsfTrackCollection > &outGsfTrackHandle) |
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) |
template<typename T > | |
void | setToken (edm::EDGetTokenT< T > &token, const edm::ParameterSet &config, const std::string &name) |
Static Private Member Functions | |
static void | calibrateElectron (reco::GsfElectron &gsfElectron, const reco::GsfElectronRef &oldEleRef, const edm::ValueMap< float > &energyMap, const edm::ValueMap< float > &energyErrMap, const edm::ValueMap< float > &ecalEnergyMap, const edm::ValueMap< float > &ecalEnergyErrMap) |
static void | calibratePhoton (reco::Photon &photon, const reco::PhotonRef &oldPhoRef, const edm::ValueMap< float > &energyMap, const edm::ValueMap< float > &energyErrMap) |
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 |
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 44 of file ReducedEGProducer.h.
ReducedEGProducer::ReducedEGProducer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 43 of file ReducedEGProducer.cc.
References applyGsfElectronCalibOnData_, applyGsfElectronCalibOnMC_, applyPhotonCalibOnData_, applyPhotonCalibOnMC_, doPreshowerEcalHits_, edm::ParameterSet::getParameter(), gsfElectronCalibEcalEnergyErrT_, gsfElectronCalibEcalEnergyT_, gsfElectronCalibEnergyErrT_, gsfElectronCalibEnergyT_, gsfElectronFloatValueMapTs_, gsfElectronIdTs_, edm::EDGetTokenT< T >::isUninitialized(), edm::InputTag::label(), ootPhotonFloatValueMapTs_, ootPhotonT_, outConversions_, outEBEEClusters_, outEBRecHits_, outEERecHits_, outESClusters_, outESRecHits_, outGsfElectronCores_, outGsfElectronFloatValueMaps_, outGsfElectronIds_, outGsfElectronPfCandMap_, outGsfElectrons_, outGsfTracks_, outHBHERecHits_, outOOTEBEEClusters_, outOOTESClusters_, outOOTPhotonCores_, outOOTPhotonFloatValueMaps_, outOOTPhotons_, outOOTSuperClusters_, outPhotonCores_, outPhotonFloatValueMaps_, outPhotonIds_, outPhotonPfCandMap_, outPhotons_, outSingleConversions_, outSuperClusters_, photonCalibEnergyErrT_, photonCalibEnergyT_, photonFloatValueMapTs_, photonIdTs_, setToken(), AlCaHLTBitMon_QueryRunRegistry::string, and GlobalPosition_Frontier_DevDB_cff::tag.
|
override |
Definition at line 191 of file ReducedEGProducer.cc.
|
final |
Definition at line 193 of file ReducedEGProducer.cc.
References hcalHitSel_, and EGHcalRecHitSelector::setup().
|
staticprivate |
Definition at line 1073 of file ReducedEGProducer.cc.
References corr, reco::GsfElectron::correctMomentum(), reco::GsfElectron::p4(), reco::GsfElectron::setCorrectedEcalEnergy(), reco::GsfElectron::setCorrectedEcalEnergyError(), and reco::GsfElectron::trackMomentumError().
Referenced by produce().
|
staticprivate |
Definition at line 1064 of file ReducedEGProducer.cc.
References reco::Photon::setCorrectedEnergy().
Referenced by produce().
|
private |
Definition at line 897 of file ReducedEGProducer.cc.
Referenced by linkCaloClusters(), and produce().
|
private |
Definition at line 906 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 888 of file ReducedEGProducer.cc.
Referenced by linkConversions(), and linkConversionsByTrackRef().
|
private |
Definition at line 848 of file ReducedEGProducer.cc.
References linkConversion().
Referenced by produce().
|
private |
Definition at line 856 of file ReducedEGProducer.cc.
References edm::conversion(), linkConversion(), muonTagProbeFilters_cff::matched, and ConversionTools::matchesConversion().
Referenced by produce().
|
private |
Definition at line 872 of file ReducedEGProducer.cc.
References edm::conversion(), linkConversion(), muonTagProbeFilters_cff::matched, and ConversionTools::matchesConversion().
|
private |
Definition at line 819 of file ReducedEGProducer.cc.
Referenced by produce().
|
private |
Definition at line 941 of file ReducedEGProducer.cc.
References EGHcalRecHitSelector::addDetIds(), and hcalHitSel_.
Referenced by produce().
|
private |
|
final |
Definition at line 195 of file ReducedEGProducer.cc.
References applyGsfElectronCalibOnData_, applyGsfElectronCalibOnMC_, applyPhotonCalibOnData_, applyPhotonCalibOnMC_, barrelEcalHits_, calibrateElectron(), calibratePhoton(), printConversionInfo::conversionHandle, pwdgSkimBPark_cfi::conversions, conversionT_, doPreshowerEcalHits_, endcapEcalHits_, ev, Exception, trigObjTnPSource_cfi::filler, edm::EventSetup::get(), edm::Event::getByToken(), gsfElectronCalibEcalEnergyErrT_, gsfElectronCalibEcalEnergyT_, gsfElectronCalibEnergyErrT_, gsfElectronCalibEnergyT_, gsfElectronFloatValueMapTs_, gsfElectronIdTs_, gsfElectronPfCandMapT_, electronIsolatorFromEffectiveArea_cfi::gsfElectrons, gsfElectronT_, ecalDrivenGsfElectronCoresFromMultiCl_cff::gsfTracks, gsfTrackT_, hbheHits_, edm::EventBase::isRealData(), edm::EDGetTokenT< T >::isUninitialized(), keep, keepGsfElectronSel_, keepOOTPhotonSel_, keepPhotonSel_, linkCaloCluster(), linkCaloClusters(), linkConversions(), linkConversionsByTrackRef(), linkCore(), linkHcalHits(), linkSuperCluster(), eostools::move(), ootPhotonCore_cff::ootPhotonCore, ootPhotonFloatValueMapTs_, ootPhotons_cff::ootPhotons, ootPhotonT_, outConversions_, outEBEEClusters_, outEBRecHits_, outEERecHits_, outESClusters_, outESRecHits_, outGsfElectronCores_, outGsfElectronFloatValueMaps_, outGsfElectronIds_, outGsfElectronPfCandMap_, outGsfElectrons_, outGsfTracks_, outHBHERecHits_, outOOTEBEEClusters_, outOOTESClusters_, outOOTPhotonCores_, outOOTPhotonFloatValueMaps_, outOOTPhotons_, outOOTSuperClusters_, outPhotonCores_, outPhotonFloatValueMaps_, outPhotonIds_, outPhotonPfCandMap_, outPhotons_, outSingleConversions_, outSuperClusters_, muons2muons_cfi::photon, photonCalibEnergyErrT_, photonCalibEnergyT_, photonCore_cfi::photonCore, photonFloatValueMapTs_, photonIdTs_, photonPfCandMapT_, BPHMonitor_cfi::photons, photonT_, preshowerEcalHits_, edm::Event::put(), relinkCaloClusters(), relinkConversions(), relinkGsfElectronCore(), relinkGsfElectronSel_, relinkGsfTrack(), relinkOOTPhotonSel_, relinkPhotonCore(), relinkPhotonSel_, relinkSuperCluster(), reducedEgamma_cfi::singleConversions, singleConversionT_, slimRelinkGsfElectronSel_, slimRelinkOOTPhotonSel_, slimRelinkPhotonSel_, AlCaHLTBitMon_QueryRunRegistry::string, and HLT_2018_cff::superClusters.
|
private |
Definition at line 947 of file ReducedEGProducer.cc.
References edm::PtrVectorBase::clear(), bsc_activity_cfg::clusters, reco::SuperCluster::clusters(), edm::PtrVectorBase::empty(), reco::SuperCluster::preshowerClusters(), edm::PtrVector< T >::push_back(), reco::SuperCluster::seed(), reco::SuperCluster::setClusters(), reco::SuperCluster::setPreshowerClusters(), and reco::SuperCluster::setSeed().
Referenced by produce().
|
private |
Definition at line 1020 of file ReducedEGProducer.cc.
References edm::RefVector< C, T, F >::clear(), edm::RefVector< C, T, F >::empty(), and reco::PhotonCore::setConversions().
Referenced by produce().
|
private |
Definition at line 1052 of file ReducedEGProducer.cc.
References reco::GsfElectron::core(), and reco::GsfElectron::setCore().
Referenced by produce().
|
private |
Definition at line 1010 of file ReducedEGProducer.cc.
References reco::GsfElectronCore::gsfTrack(), and reco::GsfElectronCore::setGsfTrack().
Referenced by produce().
|
private |
Definition at line 1041 of file ReducedEGProducer.cc.
References reco::Photon::photonCore(), and reco::Photon::setPhotonCore().
Referenced by produce().
|
private |
Definition at line 998 of file ReducedEGProducer.cc.
Referenced by produce().
|
inlineprivate |
Definition at line 139 of file ReducedEGProducer.h.
References edm::ParameterSet::getParameter(), and Skims_PA_cff::name.
Referenced by ReducedEGProducer().
|
private |
Definition at line 169 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 170 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 168 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 151 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 148 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 153 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 152 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 176 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 175 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 174 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 173 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 161 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 158 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 146 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 147 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 155 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 216 of file ReducedEGProducer.h.
Referenced by beginRun(), and linkHcalHits().
|
private |
Definition at line 212 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 209 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 206 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 164 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 145 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 186 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 189 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 194 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 195 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 190 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 196 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 184 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 204 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 201 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 199 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 183 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 185 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 197 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 192 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 193 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 182 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 203 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 181 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 191 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 180 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 202 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 200 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 198 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 179 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 187 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 188 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 172 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 171 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 160 of file ReducedEGProducer.h.
Referenced by produce(), and ReducedEGProducer().
|
private |
Definition at line 157 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 144 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 154 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 214 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 211 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 208 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 149 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 213 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 210 of file ReducedEGProducer.h.
Referenced by produce().
|
private |
Definition at line 207 of file ReducedEGProducer.h.
Referenced by produce().