77 if (
config.exists(
"energyFloat")) {
104 if (conf.
exists(
"patPhotons")) {
108 if (conf.
exists(
"gedPhotons")) {
112 if (conf.
exists(
"patElectrons")) {
116 if (conf.
exists(
"gsfElectrons")) {
161 <<
"Electron energy corrections not fully implemented yet:" << std::endl
162 <<
"Still need E/p combination" << std::endl
163 <<
"Do not enable DRN for electrons" << std::endl;
180 <<
"Electron energy corrections not fully implemented yet:" << std::endl
181 <<
"Still need E/p combination" << std::endl
182 <<
"Do not enable DRN for electrons" << std::endl;
209 template <
typename T>
213 std::pair<float, float>
correction = (*corrections)[ptr];
const void doUserFloat(T &part, const std::pair< float, float > &correction) const
Analysis-level Photon class.
void modifyObject(reco::GsfElectron &) const final
bool get(ProductID const &oid, Handle< PROD > &result) const
void setCorrectedEnergy(P4type type, float E, float dE, bool toCand=true)
std::unique_ptr< partVars< pat::Electron > > patElectrons_
uint32_t cc[maxCellsPerHit]
bool exists(std::string const ¶meterName) const
checks if a parameter exists
ParameterSet const & getParameterSet(std::string const &) const
void setEventContent(const edm::EventSetup &) final
edm::EDGetTokenT< edm::View< T > > token
partVars(const edm::ParameterSet &config, edm::ConsumesCollector &cc)
void setCorrectedEcalEnergyError(float newEnergyError)
edm::InputTag correctionsSource
std::unique_ptr< partVars< reco::GsfElectron > > gsfElectrons_
std::unique_ptr< partVars< pat::Photon > > patPhotons_
const edm::ValueMap< std::pair< float, float > > * corrections
std::unique_ptr< partVars< reco::Photon > > gedPhotons_
EGRegressionModifierDRN(const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
edm::EDGetTokenT< edm::ValueMap< std::pair< float, float > > > correctionsToken
const std::pair< float, float > getCorrection(T &part)
Analysis-level electron class.
void setCorrectedEcalEnergy(float newEnergy)
void setEvent(const edm::Event &) final
#define DEFINE_EDM_PLUGIN(factory, type, name)
const edm::View< T > * particles