22 if (
abs(ebId.
ieta())==85 && avoidIeta85)
return 0;
28 if ( e1 == 0 )
return 0;
29 s4 +=
recHitE(
id, recHits, 1, 0 );
30 s4 +=
recHitE(
id, recHits, -1, 0 );
31 s4 +=
recHitE(
id, recHits, 0, 1 );
32 s4 +=
recHitE(
id, recHits, 0, -1 );
38 if ( e1 < recHitThreshold )
return 0;
41 if ( e1 == 0 )
return 0;
42 s4 +=
recHitE(
id, recHits, 1, 0 );
43 s4 +=
recHitE(
id, recHits, -1, 0 );
44 s4 +=
recHitE(
id, recHits, 0, 1 );
45 s4 +=
recHitE(
id, recHits, 0, -1 );
59 if ( chIt != dch->end() ) {
63 <<
"No NextToDead status found for xtal "
73 int chStatusThreshold) {
75 if (
deadNeighbour(
id,chs, chStatusThreshold, 1, 0))
return true;
76 if (
deadNeighbour(
id,chs, chStatusThreshold,-1, 0))
return true;
77 if (
deadNeighbour(
id,chs, chStatusThreshold, 0, 1))
return true;
78 if (
deadNeighbour(
id,chs, chStatusThreshold, 0,-1))
return true;
79 if (
deadNeighbour(
id,chs, chStatusThreshold, 1,-1))
return true;
80 if (
deadNeighbour(
id,chs, chStatusThreshold, 1, 1))
return true;
81 if (
deadNeighbour(
id,chs, chStatusThreshold,-1, 1))
return true;
82 if (
deadNeighbour(
id,chs, chStatusThreshold,-1,-1))
return true;
90 int chStatusThreshold,
98 if (!nid)
return false;
101 uint16_t dbStatus = 0;
102 if ( chIt != chs.
end() ) {
104 dbStatus = chIt->getStatusCode() ;
107 <<
"No channel status found for xtal "
109 <<
"! something wrong with EcalChannelStatus in your DB? ";
112 return (dbStatus>=chStatusThreshold );
129 return ( nid ==
DetId(0) ? 0 :
recHitE( nid, recHits ) );
133 if (
id ==
DetId(0) ) {
137 if ( it != recHits.
end() )
return (*it).energy();
static bool isNextToBoundary(EEDetId id)
std::vector< EcalRecHit >::const_iterator const_iterator
EEDetId offsetBy(int nrStepsX, int nrStepsY) const
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