80 if (!HBHERecHitsHandle.isValid()) {
81 LogDebug(
"") <<
"HcalREcHitRecalib: Error! can't get product!" << std::endl;
87 if (!HORecHitsHandle.isValid()) {
88 LogDebug(
"") <<
"HcalREcHitRecalib: Error! can't get product!" << std::endl;
90 HORecHits = HORecHitsHandle.product();
94 if (!HFRecHitsHandle.isValid()) {
95 LogDebug(
"") <<
"HcalREcHitRecalib: Error! can't get product!" << std::endl;
113 std::auto_ptr< HFRecHitCollection > RecalibHFRecHitCollection(
new HFRecHitCollection );
114 std::auto_ptr< HORecHitCollection > RecalibHORecHitCollection(
new HORecHitCollection );
142 float icalconst=(
mapHcal_.
get().find(itHBHE->id().rawId()))->second;
146 HBHERecHit aHit(itHBHE->id(),itHBHE->energy()*icalconst,itHBHE->time());
148 RecalibHBHERecHitCollection->push_back( aHit);
175 float icalconst=(
mapHcal_.
get().find(itHF->id().rawId()))->second;
177 HFRecHit aHit(itHF->id(),itHF->energy()*icalconst,itHF->time());
179 RecalibHFRecHitCollection->push_back( aHit);
188 for (itHO=HORecHits->begin(); itHO!=HORecHits->end(); itHO++) {
206 float icalconst=(
mapHcal_.
get().find(itHO->id().rawId()))->second;
208 HORecHit aHit(itHO->id(),itHO->energy()*icalconst,itHO->time());
210 RecalibHORecHitCollection->push_back( aHit);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const std::map< uint32_t, float > & get()
std::vector< T >::const_iterator const_iterator
bool parseXMLMiscalibFile(std::string configFile)
HcalRecHitRecalib(const edm::ParameterSet &)
std::string RecalibHFHits_
std::string hcalfileinpath_
virtual void produce(edm::Event &, const edm::EventSetup &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::string RecalibHOHits_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::string RecalibHBHEHits_
CaloMiscalibMapHcal mapHcal_