21 emObjectProducer_ (consumes<
T1Collection>(config.getParameter<
edm::InputTag>(
"candidateProducer"))),
23 drMax_ (config.getParameter<double>(
"drMax")),
24 drVetoBarrel_ (config.getParameter<double>(
"drVetoBarrel")),
25 drVetoEndcap_ (config.getParameter<double>(
"drVetoEndcap")),
26 etaStripBarrel_ (config.getParameter<double>(
"etaStripBarrel")),
27 etaStripEndcap_ (config.getParameter<double>(
"etaStripEndcap")),
28 energyBarrel_ (config.getParameter<double>(
"energyBarrel")),
29 energyEndcap_ (config.getParameter<double>(
"energyEndcap")) {
31 produces <edm::ValueMap<float>>();
44 desc.
add<
double>(
"drMax", 0.3);
45 desc.
add<
double>(
"drVetoBarrel", 0.0);
46 desc.
add<
double>(
"drVetoEndcap", 0.0);
47 desc.
add<
double>(
"etaStripBarrel", 0.0);
48 desc.
add<
double>(
"etaStripEndcap", 0.0);
49 desc.
add<
double>(
"energyBarrel", 0.0);
50 desc.
add<
double>(
"energyEndcap", 0.0);
60 auto isoMap = std::make_unique<edm::ValueMap<float>>();
62 std::vector<float> retV(emObjectHandle->size(),0);
69 for (
unsigned int iReco = 0; iReco < emObjectHandle->size(); iReco++) {
70 T1Ref candRef(emObjectHandle, iReco);
71 retV[iReco] = isoAlgo.
getSum(candRef, clusterHandle);
74 filler.insert(emObjectHandle,retV.begin(),retV.end());
std::string defaultModuleLabel()
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const edm::EDGetTokenT< reco::PFClusterCollection > pfClusterProducer_
const double etaStripBarrel_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
EgammaEcalPFClusterIsolationProducer< reco::GsfElectron > ElectronEcalPFClusterIsolationProducer
~EgammaEcalPFClusterIsolationProducer() override
EgammaEcalPFClusterIsolationProducer(const edm::ParameterSet &)
EgammaEcalPFClusterIsolationProducer< reco::Photon > PhotonEcalPFClusterIsolationProducer
const double energyBarrel_
const double drVetoBarrel_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const edm::EDGetTokenT< T1Collection > emObjectProducer_
const double energyEndcap_
double getSum(T1Ref, edm::Handle< std::vector< reco::PFCluster > >)
const double drVetoEndcap_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
std::vector< T1 > T1Collection
const double etaStripEndcap_
void produce(edm::Event &, const edm::EventSetup &) override