61 produces < edm::ValueMap<double> >();
100 auto isoMap = std::make_unique<edm::ValueMap<double>>();
102 std::vector<double> retV(emObjectHandle->size(),0);
113 for(
size_t i = 0 ;
i < emObjectHandle->size(); ++
i) {
124 if(
useIsolEt_) isoValue = ecalBarrelIsol.getEtSum(&(emObjectHandle->at(
i))) + ecalEndcapIsol.
getEtSum(&(emObjectHandle->at(
i)));
125 else isoValue = ecalBarrelIsol.getEnergySum(&(emObjectHandle->at(
i))) + ecalEndcapIsol.
getEnergySum(&(emObjectHandle->at(
i)));
127 else if( fabs(superClus->eta())<1.479) {
128 if(
useIsolEt_) isoValue = ecalBarrelIsol.getEtSum(&(emObjectHandle->at(
i)));
129 else isoValue = ecalBarrelIsol.getEnergySum(&(emObjectHandle->at(
i)));
133 else isoValue = ecalEndcapIsol.
getEnergySum(&(emObjectHandle->at(
i)));
137 double subtractVal=0;
140 else subtractVal = superClus.
get()->rawEnergy();
149 filler.insert(emObjectHandle,retV.begin(),retV.end());
edm::InputTag ecalEndcapRecHitProducer_
edm::InputTag emObjectProducer_
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
double egIsoConeSizeInEndcap_
double getEtSum(const reco::Candidate *emObject) const
Sin< T >::type sin(const T &t)
EgammaEcalRecHitIsolationProducer(const edm::ParameterSet &)
edm::InputTag ecalEndcapRecHitCollection_
double getEnergySum(const reco::Candidate *emObject) const
~EgammaEcalRecHitIsolationProducer()
void setUseNumCrystals(bool b=true)
edm::InputTag ecalBarrelRecHitProducer_
double egIsoJurassicWidth_
double egIsoConeSizeInBarrel_
T const * get() const
Returns C++ pointer to the item.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void produce(edm::Event &, const edm::EventSetup &)
void setVetoClustered(bool b=true)
T const * product() const
edm::InputTag ecalBarrelRecHitCollection_