20 if (
abs(ebId.
ieta()) == 85 && avoidIeta85)
26 float e1 =
recHitE(
id, recHits);
30 s4 +=
recHitE(
id, recHits, 1, 0);
31 s4 +=
recHitE(
id, recHits, -1, 0);
32 s4 +=
recHitE(
id, recHits, 0, 1);
33 s4 +=
recHitE(
id, recHits, 0, -1);
38 float e1 =
recHitE(
id, recHits);
39 if (e1 < recHitThreshold)
45 s4 +=
recHitE(
id, recHits, 1, 0);
46 s4 +=
recHitE(
id, recHits, -1, 0);
47 s4 +=
recHitE(
id, recHits, 0, 1);
48 s4 +=
recHitE(
id, recHits, 0, -1);
57 if (chIt != dch.
end()) {
60 edm::LogError(
"EcalDBError") <<
"No NextToDead status found for xtal " <<
id.rawId();
98 uint16_t dbStatus = 0;
99 if (chIt != chs.
end()) {
101 dbStatus = chIt->getStatusCode();
103 edm::LogError(
"EcalDBError") <<
"No channel status found for xtal " <<
id.rawId()
104 <<
"! something wrong with EcalChannelStatus in your DB? ";
107 return (dbStatus >= chStatusThreshold);
124 if (
id ==
DetId(0)) {
128 if (it != recHits.
end())
129 return (*it).energy();
static bool isNextToBoundary(EEDetId id)
std::vector< EcalRecHit >::const_iterator const_iterator
EEDetId offsetBy(int nrStepsX, int nrStepsY) const
Log< level::Error, false > LogError
static bool isNextToBoundary(EBDetId id)
Abs< T >::type abs(const T &t)
EBDetId offsetBy(int nrStepsEta, int nrStepsPhi) const
int ieta() const
get the crystal ieta
const_iterator end() const
std::vector< Item >::const_iterator const_iterator
iterator find(key_type k)
const_iterator find(uint32_t rawId) const
const_iterator end() const