|
|
Go to the documentation of this file. 1 #ifndef RecoEgamma_EgammaPhotonProducers_ReducedEGProducer_h
2 #define RecoEgamma_EgammaPhotonProducers_ReducedEGProducer_h
51 template <
typename T,
typename U>
55 std::map<reco::SuperClusterRef, unsigned int>& superClusterMap,
58 std::unordered_set<unsigned int>& superClusterFullRelinkMap);
62 std::map<reco::ConversionRef, unsigned int>& conversionMap);
67 std::map<reco::ConversionRef, unsigned int>& conversionMap);
72 std::map<reco::ConversionRef, unsigned int>& conversionMap);
76 std::map<reco::ConversionRef, unsigned int>& conversionMap);
80 std::map<reco::CaloClusterPtr, unsigned int>& caloClusterMap);
84 std::map<reco::CaloClusterPtr, unsigned int>& ebeeClusterMap,
85 std::unordered_set<DetId>& rechitMap,
90 std::map<reco::CaloClusterPtr, unsigned int>& esClusterMap);
94 std::unordered_set<DetId>& hcalDetIds);
97 const std::map<reco::CaloClusterPtr, unsigned int>& ebeeClusterMap,
98 const std::map<reco::CaloClusterPtr, unsigned int>& esClusterMap,
102 template <
typename T>
104 const std::map<reco::SuperClusterRef, unsigned int>& superClusterMap,
108 const std::map<reco::GsfTrackRef, unsigned int>& gsfTrackMap,
113 const std::map<reco::ConversionRef, unsigned int>& conversionMap,
117 const std::map<reco::PhotonCoreRef, unsigned int>& photonCoreMap,
121 const std::map<reco::GsfElectronCoreRef, unsigned int>& gsfElectronCoreMap,
136 template <
typename T>
const std::string outPhotonPfCandMap_
const edm::EDGetTokenT< EcalRecHitCollection > endcapEcalHits_
const bool applyGsfElectronCalibOnMC_
edm::EDGetTokenT< edm::ValueMap< float > > photonCalibEnergyT_
ReducedEGProducer(const edm::ParameterSet &ps)
const std::vector< std::string > outPhotonFloatValueMaps_
const edm::EDGetTokenT< reco::ConversionCollection > singleConversionT_
const bool doPreshowerEcalHits_
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)
const StringCutObjectSelector< reco::Photon > relinkOOTPhotonSel_
const std::string outOOTPhotons_
void linkHcalHits(const reco::SuperCluster &superClus, const HBHERecHitCollection &recHits, std::unordered_set< DetId > &hcalDetIds)
void beginRun(edm::Run const &, const edm::EventSetup &) final
static void calibratePhoton(reco::Photon &photon, const reco::PhotonRef &oldPhoRef, const edm::ValueMap< float > &energyMap, const edm::ValueMap< float > &energyErrMap)
const std::string outEBEEClusters_
const StringCutObjectSelector< reco::Photon > keepPhotonSel_
const edm::EDGetTokenT< reco::ConversionCollection > conversionT_
edm::EDGetTokenT< edm::ValueMap< float > > gsfElectronCalibEnergyT_
const std::string outGsfTracks_
const StringCutObjectSelector< reco::Photon > slimRelinkPhotonSel_
void relinkGsfTrack(reco::GsfElectronCore &electroncore, const std::map< reco::GsfTrackRef, unsigned int > &gsfTrackMap, const edm::OrphanHandle< reco::GsfTrackCollection > &outGsfTrackHandle)
const std::vector< std::string > outOOTPhotonFloatValueMaps_
EGHcalRecHitSelector hcalHitSel_
const StringCutObjectSelector< reco::GsfElectron > keepGsfElectronSel_
const edm::EDGetTokenT< edm::ValueMap< std::vector< reco::PFCandidateRef > > > photonPfCandMapT_
const std::string outHBHERecHits_
void setToken(edm::EDGetTokenT< T > &token, const edm::ParameterSet &config, const std::string &name)
const std::string outEBRecHits_
const std::string outESRecHits_
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
void relinkConversions(reco::PhotonCore &photonCore, const reco::ConversionRefVector &convrefs, const std::map< reco::ConversionRef, unsigned int > &conversionMap, const edm::OrphanHandle< reco::ConversionCollection > &outConversionHandle)
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
const StringCutObjectSelector< reco::GsfElectron > relinkGsfElectronSel_
void linkConversionsByTrackRef(const edm::Handle< reco::ConversionCollection > &conversionHandle, const reco::GsfElectron &gsfElectron, reco::ConversionCollection &conversions, std::map< reco::ConversionRef, unsigned int > &conversionMap)
void linkConversion(const reco::ConversionRef &convref, reco::ConversionCollection &conversions, std::map< reco::ConversionRef, unsigned int > &conversionMap)
std::vector< CaloCluster > CaloClusterCollection
collection of CaloCluster objects
const edm::EDGetTokenT< EcalRecHitCollection > preshowerEcalHits_
const bool applyPhotonCalibOnMC_
const bool applyGsfElectronCalibOnData_
edm::EDGetTokenT< edm::ValueMap< float > > photonCalibEnergyErrT_
edm::EDGetTokenT< reco::PhotonCollection > ootPhotonT_
void relinkSuperCluster(T &core, const std::map< reco::SuperClusterRef, unsigned int > &superClusterMap, const edm::OrphanHandle< reco::SuperClusterCollection > &outSuperClusterHandle)
const std::string outSingleConversions_
const edm::EDGetTokenT< edm::ValueMap< std::vector< reco::PFCandidateRef > > > gsfElectronPfCandMapT_
const StringCutObjectSelector< reco::Photon > keepOOTPhotonSel_
void relinkPhotonCore(reco::Photon &photon, const std::map< reco::PhotonCoreRef, unsigned int > &photonCoreMap, const edm::OrphanHandle< reco::PhotonCoreCollection > &outPhotonCoreHandle)
const std::string outOOTESClusters_
void linkConversions(const reco::ConversionRefVector &convrefs, reco::ConversionCollection &conversions, std::map< reco::ConversionRef, unsigned int > &conversionMap)
const edm::EDGetTokenT< HBHERecHitCollection > hbheHits_
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)
const std::vector< std::string > outGsfElectronIds_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > ootPhotonFloatValueMapTs_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > gsfElectronFloatValueMapTs_
const std::string outGsfElectronPfCandMap_
const std::string outGsfElectrons_
const std::string outESClusters_
const std::string outOOTSuperClusters_
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)
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > gsfElectronIdTs_
edm::EDGetTokenT< edm::ValueMap< float > > gsfElectronCalibEnergyErrT_
edm::EDGetTokenT< edm::ValueMap< float > > gsfElectronCalibEcalEnergyErrT_
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)
const std::string outPhotons_
void relinkGsfElectronCore(reco::GsfElectron &gsfElectron, const std::map< reco::GsfElectronCoreRef, unsigned int > &gsfElectronCoreMap, const edm::OrphanHandle< reco::GsfElectronCoreCollection > &outGsfElectronCoreHandle)
const std::string outGsfElectronCores_
const std::string outOOTEBEEClusters_
const StringCutObjectSelector< reco::GsfElectron > slimRelinkGsfElectronSel_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > photonFloatValueMapTs_
void linkCore(const T &core, U &cores, std::map< T, unsigned int > &coreMap)
const StringCutObjectSelector< reco::Photon > relinkPhotonSel_
const std::string outConversions_
std::vector< edm::EDGetTokenT< edm::ValueMap< bool > > > photonIdTs_
const std::string outOOTPhotonCores_
const std::string outEERecHits_
const StringCutObjectSelector< reco::Photon > slimRelinkOOTPhotonSel_
void produce(edm::Event &evt, const edm::EventSetup &es) final
const edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHits_
const edm::EDGetTokenT< reco::PhotonCollection > photonT_
const std::string outSuperClusters_
edm::ESGetToken< CaloTopology, CaloTopologyRecord > caloTopology_
void linkCaloCluster(const reco::CaloClusterPtr &caloCluster, reco::CaloClusterCollection &caloClusters, std::map< reco::CaloClusterPtr, unsigned int > &caloClusterMap)
edm::EDGetTokenT< edm::ValueMap< float > > gsfElectronCalibEcalEnergyT_
const std::vector< std::string > outGsfElectronFloatValueMaps_
const edm::EDGetTokenT< reco::GsfElectronCollection > gsfElectronT_
const std::string outPhotonCores_
const bool applyPhotonCalibOnData_
const edm::EDGetTokenT< reco::GsfTrackCollection > gsfTrackT_
const std::string recoHIPhotonIsolationMapOutputName_
const std::vector< std::string > outPhotonIds_
const edm::EDGetTokenT< reco::HIPhotonIsolationMap > recoHIPhotonIsolationMapInputToken_