23 RecEmcHitMap::const_iterator ciHitMap;
24 RecEmcHitMap::const_iterator ciNeigh;
30 RecEmcIDVector::const_iterator ciNeighVec;
34 vector<RecEmcHit> aHitVec,tmpHitVec;
35 vector<RecEmcHit>::const_iterator ciHitVec;
39 for(ciHitMap=aCluster.
Begin();
40 ciHitMap!=aCluster.
End();
45 aHit=ciHitMap->second;
53 for(ciNeighVec=NeighVec.begin();
54 ciNeighVec!=NeighVec.end();
57 ciNeigh=aCluster.
Find(*ciNeighVec);
58 if(ciNeigh!=aCluster.
End()) {
60 if(ciNeigh->second.getEnergy()>aHit.
getEnergy()) {
70 for(ciHitVec=aHitVec.begin();
71 ciHitVec!=aHitVec.end();
81 aHitVec.push_back(aHit);
86 sort(aHitVec.begin(),aHitVec.end(),greater<RecEmcHit>());
88 for(ciHitVec=aHitVec.begin();
89 ciHitVec!=aHitVec.end();
91 aMaxVec.push_back(ciHitVec->getCellId());
vector< RecEmcID > RecEmcIDVector
RecEmcIDVector GetNeighbors(const Identifier &id)
bool IsNeighbor(const Identifier &id1, const Identifier &id2)
static EmcRecParameter & GetInstance()
double EThresholdSeed() const
virtual void Seed(const RecEmcCluster &aCluster, RecEmcIDVector &aMaxVec)
RecEmcHitMap::const_iterator Find(const RecEmcID &CellId) const
RecEmcHitMap::const_iterator Begin() const
RecEmcHitMap::const_iterator End() const
RecEmcEnergy getEnergy() const
RecEmcID getCellId() const