149 list<ecalPreCluster*>::const_iterator p1=
fPreClusters.begin();
150 list<ecalPreCluster*>::const_iterator p2;
151 list<ecalCell*> cluster;
152 list<ecalMaximum*> maxs;
153 list<ecalCell*>::const_iterator pc;
154 list<ecalCell*>::const_iterator pc1;
163 Info(
"FormClusters",
"Total %d preclusters found.", (Int_t)
fPreClusters.size());
168 cluster.clear(); oldsize=0; maxs.clear();
169 cluster=(*p1)->fCells; maxs.push_back((*p1)->fMax); type=(*p1)->fMaximum->GetType();
171 while(cluster.size()!=oldsize)
173 oldsize=cluster.size();
179 for(;pc!=cluster.end();++pc)
181 pc1=find((*p2)->fCells.begin(), (*p2)->fCells.end(), (*pc));
182 if (pc1==(*p2)->fCells.end())
continue;
185 if (pc!=cluster.end())
188 pc=(*p2)->fCells.begin();
189 for(;pc!=(*p2)->fCells.end();++pc)
190 if (find(cluster.begin(), cluster.end(), (*pc))==cluster.end())
191 cluster.push_back(*pc);
192 maxs.push_back((*p2)->fMax);
198 if ((Int_t)cluster.size()>MaxSize)
199 MaxSize=cluster.size();
200 if (max>Maximums) Maximums=max;
206 Info(
"FormClusters",
"Total %d clusters formed.", fN);
207 Info(
"FormClusters",
"Maximum size of cluster is %d cells.", MaxSize);
208 Info(
"FormClusters",
"Maximum number of photons per cluster is %d.", Maximums);