22 RecEmcHitMap::iterator pHitMap,pBufferHitMap;
34 while(!tHitMap.empty())
41 pHitMap=tHitMap.begin();
42 aBufferHitMap[pHitMap->first]=pHitMap->second;
43 tHitMap.erase(pHitMap);
45 while(!aBufferHitMap.empty())
47 pBufferHitMap=aBufferHitMap.begin();
48 CellId=pBufferHitMap->first;
50 for(pNearCell=NearCell.begin();
51 pNearCell!=NearCell.end();
54 pHitMap=tHitMap.find(*pNearCell);
55 if(pHitMap!=tHitMap.end())
57 aBufferHitMap[pHitMap->first]=pHitMap->second;
58 tHitMap.erase(pHitMap);
63 if(pBufferHitMap->second.getEnergy()>emax) {
64 emax=pBufferHitMap->second.getEnergy();
65 idmax=pBufferHitMap->first;
68 eCluster+=pBufferHitMap->second.getEnergy();
69 aCluster.
Insert(pBufferHitMap->second);
70 aBufferHitMap.erase(pBufferHitMap);
76 aClusterMap[idmax]=aCluster;
map< RecEmcID, RecEmcCluster, less< RecEmcID > > RecEmcClusterMap
RecEmcIDVector::iterator i_RecEmcIDVector
vector< RecEmcID > RecEmcIDVector
map< RecEmcID, RecEmcHit, less< RecEmcID > > RecEmcHitMap
void Convert(const RecEmcHitMap &aHitMap, RecEmcClusterMap &aClusterMap)
RecEmcIDVector GetNeighbors(const Identifier &id)
static EmcRecParameter & GetInstance()
double EThresholdCluster() const
void Insert(const RecEmcHit &aHit)
void ClusterId(const RecEmcID id)