85 ebUncalibRecHits = pEBUncalibRecHits.
product();
86 LogDebug(
"EcalRecHitDebug") <<
"total # EB uncalibrated rechits: " << ebUncalibRecHits->
size();
89 eeUncalibRecHits = pEEUncalibRecHits.
product();
90 LogDebug(
"EcalRecHitDebug") <<
"total # EE uncalibrated rechits: " << eeUncalibRecHits->
size();
93 auto ebRecHits = std::make_unique<EBRecHitCollection>();
94 auto eeRecHits = std::make_unique<EERecHitCollection>();
103 if (ebUncalibRecHits) {
107 worker_->run(evt, *it, *ebRecHits);
111 if (eeUncalibRecHits) {
115 worker_->run(evt, *it, *eeRecHits);
125 const std::set<EBDetId>* detIds =
nullptr;
132 for (std::set<EBDetId>::const_iterator it = detIds->begin(); it != detIds->end(); ++it) {
136 if (chit != chStatus->
end()) {
137 chStatusCode = *chit;
139 edm::LogError(
"EcalRecHitProducerError") <<
"No channel status found for xtal " << (*it).rawId()
140 <<
"! something wrong with EcalChannelStatus in your DB? ";
160 const std::set<EEDetId>* detIds =
nullptr;
168 for (std::set<EEDetId>::const_iterator it = detIds->begin(); it != detIds->end(); ++it) {
172 if (chit != chStatus->
end()) {
173 chStatusCode = *chit;
175 edm::LogError(
"EcalRecHitProducerError") <<
"No channel status found for xtal " << (*it).rawId()
176 <<
"! something wrong with EcalChannelStatus in your DB? ";
196 const std::set<EcalTrigTowerDetId>* ttIds =
nullptr;
202 for (std::set<EcalTrigTowerDetId>::const_iterator it = ttIds->begin(); it != ttIds->end(); ++it) {
204 int ieta = (((*it).ietaAbs() - 1) * 5 + 1) * (*it).zside();
205 int iphi = (((*it).iphi() - 1) * 5 + 11) % 360;
217 const std::set<EcalScDetId>* scIds =
nullptr;
223 for (std::set<EcalScDetId>::const_iterator it = scIds->begin(); it != scIds->end(); ++it) {
225 if (
EEDetId::validDetId(((*it).ix() - 1) * 5 + 1, ((*it).iy() - 1) * 5 + 1, (*it).zside())) {
250 LogInfo(
"EcalRecHitInfo") <<
"total # EB calibrated rechits: " << ebRecHits->size();
251 LogInfo(
"EcalRecHitInfo") <<
"total # EE calibrated rechits: " << eeRecHits->size();
std::string eeRechitCollection_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::unique_ptr< EcalCleaningAlgo > cleaningAlgo_
Code getStatusCode() const
return decoded status
std::vector< T >::const_iterator const_iterator
bool recoverEEIsolatedChannels_
edm::EDGetTokenT< EEUncalibratedRecHitCollection > eeUncalibRecHitToken_
edm::EDGetTokenT< std::set< EcalScDetId > > eeFEToBeRecoveredToken_
static const int ETAPHIMODE
edm::EDGetTokenT< EBUncalibratedRecHitCollection > ebUncalibRecHitToken_
const_iterator end() const
edm::EDGetTokenT< std::set< EBDetId > > ebDetIdToBeRecoveredToken_
T const * product() const
std::unique_ptr< EcalRecHitWorkerBaseClass > workerRecover_
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
std::string ebRechitCollection_
std::vector< Item >::const_iterator const_iterator
const_iterator find(uint32_t rawId) const
const_iterator end() const
std::unique_ptr< EcalRecHitWorkerBaseClass > worker_
edm::EDGetTokenT< std::set< EEDetId > > eeDetIdToBeRecoveredToken_
const_iterator begin() const
edm::EDGetTokenT< std::set< EcalTrigTowerDetId > > ebFEToBeRecoveredToken_
bool recoverEBIsolatedChannels_