97 ebUncalibRecHits = pEBUncalibRecHits.product();
98 LogDebug(
"EcalRecHitDebug") <<
"total # EB uncalibrated rechits: " << ebUncalibRecHits->size();
103 eeUncalibRecHits = pEEUncalibRecHits.product();
104 LogDebug(
"EcalRecHitDebug") <<
"total # EE uncalibrated rechits: " << eeUncalibRecHits->size();
119 if (ebUncalibRecHits)
127 if (eeUncalibRecHits)
142 const std::set<EBDetId> * detIds = 0;
150 for( std::set<EBDetId>::const_iterator it = detIds->begin(); it != detIds->end(); ++it ) {
154 if ( chit != chStatus->end() ) {
155 chStatusCode = *chit;
157 edm::LogError(
"EcalRecHitProducerError") <<
"No channel status found for xtal "
159 <<
"! something wrong with EcalChannelStatus in your DB? ";
179 const std::set<EEDetId> * detIds = 0;
187 for( std::set<EEDetId>::const_iterator it = detIds->begin(); it != detIds->end(); ++it ) {
191 if ( chit != chStatus->end() ) {
192 chStatusCode = *chit;
194 edm::LogError(
"EcalRecHitProducerError") <<
"No channel status found for xtal "
196 <<
"! something wrong with EcalChannelStatus in your DB? ";
215 const std::set<EcalTrigTowerDetId> * ttIds = 0;
221 for( std::set<EcalTrigTowerDetId>::const_iterator it = ttIds->begin(); it != ttIds->end(); ++it ) {
223 int ieta = (((*it).ietaAbs()-1)*5+1)*(*it).zside();
224 int iphi = ((*it).iphi()-1)*5+11;
225 if( iphi <= 0 ) iphi += 360;
235 const std::set<EcalScDetId> * scIds = 0;
242 for( std::set<EcalScDetId>::const_iterator it = scIds->begin(); it != scIds->end(); ++it ) {
265 LogInfo(
"EcalRecHitInfo") <<
"total # EB calibrated rechits: " << ebRecHits->size();
266 LogInfo(
"EcalRecHitInfo") <<
"total # EE calibrated rechits: " << eeRecHits->size();
std::string eeRechitCollection_
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< EcalUncalibratedRecHit >::const_iterator const_iterator
bool recoverEEIsolatedChannels_
EcalRecHitWorkerBaseClass * worker_
EcalRecHitProducer(const edm::ParameterSet &ps)
virtual void produce(edm::Event &evt, const edm::EventSetup &es)
uint16_t getStatusCode() const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
EcalCleaningAlgo * cleaningAlgo_
edm::EDGetTokenT< EEUncalibratedRecHitCollection > eeUncalibRecHitToken_
edm::EDGetTokenT< std::set< EcalScDetId > > eeFEToBeRecoveredToken_
static const int ETAPHIMODE
edm::EDGetTokenT< EBUncalibratedRecHitCollection > ebUncalibRecHitToken_
EcalRecHitWorkerBaseClass * workerRecover_
virtual bool run(const edm::Event &evt, const EcalUncalibratedRecHit &uncalibRH, EcalRecHitCollection &result)=0
edm::EDGetTokenT< std::set< EBDetId > > ebDetIdToBeRecoveredToken_
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
std::string ebRechitCollection_
std::vector< Item >::const_iterator const_iterator
T const * product() const
virtual void set(const edm::EventSetup &es)=0
void setFlags(EcalRecHitCollection &rhs)
edm::EDGetTokenT< std::set< EEDetId > > eeDetIdToBeRecoveredToken_
T get(const Candidate &c)
edm::EDGetTokenT< std::set< EcalTrigTowerDetId > > ebFEToBeRecoveredToken_
bool recoverEBIsolatedChannels_