]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCclusterer.cxx
compilation warnings fixed
[u/mrichter/AliRoot.git] / TPC / AliTPCclusterer.cxx
index e511bdfcdee50e8e09f67671ebe79c99f98adfa1..95c82f4d53496de6fdc7a8662799df54aa5eeaa6 100644 (file)
 
 ClassImp(AliTPCclusterer)
 
-AliTPCclusterer::AliTPCclusterer(const AliTPCParam *par) { 
-//-------------------------------------------------------
-//  The main constructor
-//-------------------------------------------------------
-  fPar=par;
-}
 
+//____________________________________________________
+AliTPCclusterer::AliTPCclusterer(const AliTPCclusterer &param)
+                :TObject(),
+                 fPar(0)
+{
+  //
+  // dummy
+  //
+  fPar = param.fPar;
+}
+//-----------------------------------------------------
+AliTPCclusterer & AliTPCclusterer::operator =(const AliTPCclusterer & param)
+{
+  //
+  // assignment operator - dummy
+  //
+    fPar = param.fPar;
+  return (*this);
+}
+//____________________________________________________
 void AliTPCclusterer::FindPeaks(Int_t k,Int_t max,
 AliBin *b,Int_t *idx,UInt_t *msk,Int_t& n) {
   //find local maxima
@@ -105,7 +119,7 @@ Int_t AliTPCclusterer::Digits2Clusters(TTree *dTree, TTree *cTree) {
   branch->SetAddress(&dummy);
   
   AliTPCClustersRow ddd,*clrow=&ddd;
-  clrow->SetClass("AliTPCcluster"); clrow->SetArray(1);
+  clrow = new AliTPCClustersRow("AliTPCcluster");
   cTree->Branch("Segment","AliTPCClustersRow",&clrow,32000,200);    
 
   const Int_t kMAXZ=fPar->GetMaxTBin()+2;
@@ -123,9 +137,6 @@ Int_t AliTPCclusterer::Digits2Clusters(TTree *dTree, TTree *cTree) {
        continue;
     }
 
-    clrow=new AliTPCClustersRow();
-
-    clrow->SetClass("AliTPCcluster"); clrow->SetArray(1);
     clrow->SetID(digarr.GetID());
 
     cTree->GetBranch("Segment")->SetAddress(&clrow);
@@ -219,7 +230,7 @@ Int_t AliTPCclusterer::Digits2Clusters(TTree *dTree, TTree *cTree) {
          c.SetY((c.GetY() - 0.5 - 0.5*npads)*fPar->GetPadPitchWidth(sec));
          c.SetZ(fPar->GetZWidth()*(c.GetZ()-1)); 
          c.SetZ(c.GetZ() - 3.*fPar->GetZSigma()); // PASA delay 
-         c.SetZ(sign*(fPar->GetZLength() - c.GetZ()));
+         c.SetZ(sign*(fPar->GetZLength(sec) - c.GetZ()));
 
          if (rx<230./250.*TMath::Abs(c.GetZ())) continue;
 
@@ -239,7 +250,7 @@ Int_t AliTPCclusterer::Digits2Clusters(TTree *dTree, TTree *cTree) {
     }
     cTree->Fill();
 
-    delete clrow;
+    clrow->GetArray()->Clear();
 
     nclusters+=ncl;