53 std::vector< Int_t > onecluster;
59 for (std::map<SensorSide,Indexpair>::iterator itSide = (itSensors->second).begin();
60 itSide != (itSensors->second).end(); ++itSide)
65 for (Indexpair::iterator itStrip = (itSide->second).begin();
66 itStrip!= (itSide->second).end(); ++itStrip)
67 {flagmap[itStrip->second]=1;}
69 for (Indexpair::iterator itStrip = (itSide->second).begin();
70 itStrip!= (itSide->second).end(); ++itStrip) {
71 if( !(1==flagmap[itStrip->second]) )
continue;
72 for(Indexpair::iterator itStrip3 = itStrip; itStrip3 != (itSide->second).end(); ++itStrip3)
74 if( !(1==flagmap[itStrip3->second]) )
continue;
75 if( std::abs(itStrip->first - itStrip3->first) > 1)
continue;
77 onecluster.push_back(itStrip3->second);
79 flagmap[itStrip3->second]=-1;
86 if (onecluster.size()>0)
88 std::cout<<
"mvd strip clusterfinder: cluster hangover? "<<onecluster.size()<<std::endl;
126 }
else if(side ==
kTOP)
std::vector< PndHypCluster > SearchClusters()
Class to store the Digis which belong to one cluster This class holds the information which Digi belo...
std::vector< Int_t > fTopclusters
PndHypCluster GetBotCluster(Int_t i)
void Reinit()
-----------------------------------------------------------------------—///
void SetSensorSide(SensorSide s)
PndHypCluster GetTopCluster(Int_t i)
std::map< Int_t, Int_t > Indexpair
PndHypCluster GetCluster(Int_t i)
std::vector< Int_t > fBotclusters
virtual ~PndHypStripClusterBuilder()
void AddDigi(std::string detname, SensorSide side, Int_t strip, Int_t iPoint)
void AddCluster(const std::vector< Int_t > &onecluster, SensorSide side)
--------------------------------------------------------------------——///
PndHypStripClusterBuilder()
std::vector< PndHypCluster > fClusters