8 std::vector<int>::const_iterator badbegin =
chambers.begin();
9 std::vector<int>::const_iterator badend =
chambers.end();
10 std::vector<int>::const_iterator it =
std::find( badbegin, badend, ichamber );
11 if ( it != badend )
return true;
std::vector< int > chambers
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool isInBadChamber(IndexType ichamber) const
Is the chamber with index 'ichamber' flagged as bad?
IndexType chamberIndex(IndexType ie, IndexType is, IndexType ir, IndexType ic) const
int numberOfChambers() const
How many bad chambers are there>