1 #ifndef RecoEgamma_EgammaElectronProducers_PhotonGSCrysSimpleFixer_h
2 #define RecoEgamma_EgammaElectronProducers_PhotonGSCrysSimpleFixer_h
85 produces<reco::PhotonCollection >();
90 auto outPhos = std::make_unique<reco::PhotonCollection>();
98 for(
size_t phoNr=0;phoNr<phosHandle->size();phoNr++){
107 &ebMultiRecHits,&ebMultiAndWeightsRecHits);
108 float energyCorr = newRawEnergy / phoRef->superCluster()->rawEnergy();
132 outPhos->push_back(newPho);
134 outPhos->push_back(*phoRef);
T getParameter(std::string const &) const
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
void setCorrectedEnergy(P4type type, float E, float dE, bool toCand=true)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
PhotonGSCrysSimpleFixer(const edm::ParameterSet &)
const CaloTopology * topology_
const CaloGeometry * geometry_
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
void getToken(edm::EDGetTokenT< T > &token, const edm::ParameterSet &pset, const std::string &label)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
const std::vector< int > energyTypesToFix_
edm::EDGetTokenT< reco::PhotonCollection > oldPhosToken_
void setShowerShapeVariables(const ShowerShape &a)
virtual ~PhotonGSCrysSimpleFixer()
float getCorrectedEnergyError(P4type type) const
T const * product() const
edm::EDGetTokenT< EcalRecHitCollection > ebMultiAndWeightsRecHitsToken_
float getCorrectedEnergy(P4type type) const
void full5x5_setShowerShapeVariables(const ShowerShape &a)
int StringToEnumValue(std::string const &enumConstName)
const ShowerShape & full5x5_showerShapeVariables() const
const reco::Photon::P4type energyTypeForP4_
edm::EDGetTokenT< EcalRecHitCollection > ebMultiRecHitsToken_
void produce(edm::Event &, const edm::EventSetup &) override
const ShowerShape & showerShapeVariables() const