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