//*****************************************************************************
//
//_____________________________________________________________________________
-AliClusters::AliClusters()
+AliClusters::AliClusters()
+ :AliSegmentID(),
+ fClusters(0),
+ fNclusters(0),
+ fClass(0)
{
//
//default constructor
//
- fNclusters=0;
- fClusters =0;
- fClass =0;
-}
+}
+//________________________________________________________________________
+AliClusters::AliClusters(const AliClusters ¶m)
+ :AliSegmentID(),
+ fClusters(0),
+ fNclusters(0),
+ fClass(0)
+{
+ //
+ // copy constructor - dummy
+ //
+ fNclusters = param.fNclusters;
+}
+AliClusters & AliClusters::operator =(const AliClusters & param)
+{
+ //
+ // assignment operator - dummy
+ //
+ fNclusters=param.fNclusters;
+ return (*this);
+}
//________________________________________________________________________
AliClusters::~AliClusters()
{
//
//default destructor
//
- if (fClusters !=0) fClusters->Clear();
+ if (fClusters !=0) fClusters->Delete();
delete fClusters;
}
//
AliComplexCluster* cl;
cl=(AliComplexCluster*)fClusters->UncheckedAt(0);
- if (y <= cl->fY) return 0;
+ if (y <= cl->GetY()) return 0;
cl=(AliComplexCluster*)fClusters->UncheckedAt(fNclusters-1);
- if (y > cl->fY) return fNclusters;
+ if (y > cl->GetY()) return fNclusters;
Int_t b=0, e=fNclusters-1, m=(b+e)/2;
for (; b<e; m=(b+e)/2) {
cl = (AliComplexCluster*)fClusters->UncheckedAt(m);
- if (y > cl->fY) b=m+1;
+ if (y > cl->GetY()) b=m+1;
else e=m;
}
return m;
for (Int_t i=0;i<ncl;i++){
AliComplexCluster *cl = (AliComplexCluster*)fClusters->UncheckedAt(i);
TMarker * marker = new TMarker;
- marker->SetX(cl->fX+shiftx);
- marker->SetY(cl->fY+shifty);
+ marker->SetX(cl->GetX()+shiftx);
+ marker->SetY(cl->GetY()+shifty);
marker->SetMarkerSize(size);
marker->SetMarkerStyle(style);
marker->SetMarkerColor(color);