54 std::string componentType = ps.
getParameter<std::string>(
"algo");
58 componentType = ps.
getParameter<std::string>(
"algoRecover");
82 if ( pEBUncalibRecHits.isValid() ) {
83 ebUncalibRecHits = pEBUncalibRecHits.product();
84 LogDebug(
"EcalRecHitDebug") <<
"total # EB uncalibrated rechits: " << ebUncalibRecHits->size();
92 if ( pEEUncalibRecHits.isValid() ) {
93 eeUncalibRecHits = pEEUncalibRecHits.product();
94 LogDebug(
"EcalRecHitDebug") <<
"total # EE uncalibrated rechits: " << eeUncalibRecHits->size();
113 if (ebUncalibRecHits)
121 if (eeUncalibRecHits)
136 const std::set<EBDetId> * detIds = 0;
148 for( std::set<EBDetId>::const_iterator it = detIds->begin(); it != detIds->end(); ++it ) {
152 if ( chit != chStatus->end() ) {
153 chStatusCode = *chit;
155 edm::LogError(
"EcalRecHitProducerError") <<
"No channel status found for xtal "
157 <<
"! something wrong with EcalChannelStatus in your DB? ";
177 const std::set<EEDetId> * detIds = 0;
189 for( std::set<EEDetId>::const_iterator it = detIds->begin(); it != detIds->end(); ++it ) {
193 if ( chit != chStatus->end() ) {
194 chStatusCode = *chit;
196 edm::LogError(
"EcalRecHitProducerError") <<
"No channel status found for xtal "
198 <<
"! something wrong with EcalChannelStatus in your DB? ";
217 const std::set<EcalTrigTowerDetId> * ttIds = 0;
227 for( std::set<EcalTrigTowerDetId>::const_iterator it = ttIds->begin(); it != ttIds->end(); ++it ) {
229 int ieta = (((*it).ietaAbs()-1)*5+1)*(*it).zside();
230 int iphi = ((*it).iphi()-1)*5+11;
231 if( iphi <= 0 ) iphi += 360;
241 const std::set<EcalScDetId> * scIds = 0;
251 for( std::set<EcalScDetId>::const_iterator it = scIds->begin(); it != scIds->end(); ++it ) {
262 LogInfo(
"EcalRecHitInfo") <<
"total # EB calibrated rechits: " << ebRecHits->size();
263 LogInfo(
"EcalRecHitInfo") <<
"total # EE calibrated rechits: " << eeRecHits->size();
std::string eeRechitCollection_
T getParameter(std::string const &) const
edm::InputTag ebFEToBeRecovered_
#define DEFINE_FWK_MODULE(type)
std::vector< T >::const_iterator const_iterator
edm::InputTag ebDetIdToBeRecovered_
bool recoverEEIsolatedChannels_
edm::InputTag eeFEToBeRecovered_
EcalRecHitWorkerBaseClass * worker_
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
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.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
static const int ETAPHIMODE
EcalRecHitWorkerBaseClass * workerRecover_
virtual bool run(const edm::Event &evt, const EcalUncalibratedRecHit &uncalibRH, EcalRecHitCollection &result)=0
edm::InputTag eeDetIdToBeRecovered_
std::string ebRechitCollection_
std::vector< Item >::const_iterator const_iterator
T const * product() const
edm::InputTag ebUncalibRecHitCollection_
virtual void set(const edm::EventSetup &es)=0
T get(const Candidate &c)
edm::InputTag eeUncalibRecHitCollection_
bool recoverEBIsolatedChannels_