14 float recHitThreshold ,
23 if (
abs(ebId.
ieta())==85 && avoidIeta85)
return 0;
27 float e1 =
recHitE(
id, recHits );
29 if ( e1 == 0 )
return 0;
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 )
return 0;
42 if ( e1 == 0 )
return 0;
43 s4 +=
recHitE(
id, recHits, 1, 0 );
44 s4 +=
recHitE(
id, recHits, -1, 0 );
45 s4 +=
recHitE(
id, recHits, 0, 1 );
46 s4 +=
recHitE(
id, recHits, 0, -1 );
60 if ( chIt != dch->end() ) {
64 <<
"No NextToDead status found for xtal "
74 int chStatusThreshold) {
76 if (
deadNeighbour(
id,chs, chStatusThreshold, 1, 0))
return true;
77 if (
deadNeighbour(
id,chs, chStatusThreshold,-1, 0))
return true;
78 if (
deadNeighbour(
id,chs, chStatusThreshold, 0, 1))
return true;
79 if (
deadNeighbour(
id,chs, chStatusThreshold, 0,-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;
83 if (
deadNeighbour(
id,chs, chStatusThreshold,-1,-1))
return true;
91 int chStatusThreshold,
99 if (!nid)
return false;
102 uint16_t dbStatus = 0;
103 if ( chIt != chs.
end() ) {
105 dbStatus = chIt->getStatusCode() ;
108 <<
"No channel status found for xtal "
110 <<
"! something wrong with EcalChannelStatus in your DB? ";
113 return (dbStatus>=chStatusThreshold );
130 return ( nid ==
DetId(0) ? 0 :
recHitE( nid, recHits ) );
134 if (
id ==
DetId(0) ) {
138 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)
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