]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCclusterKr.h
Update of the cluster finder (Marian, Adam Matyja)
[u/mrichter/AliRoot.git] / TPC / AliTPCclusterKr.h
index f2a63ea191f1f60c089a16a6f859ced8b7287e87..bae3d3e0712c0dbbce7ade1a3ed398892214d569 100644 (file)
@@ -12,6 +12,7 @@
 //-------------------------------------------------------
 
 #include <vector>
+#include <list>
 #include "TObject.h"
 #include "AliTPCvtpr.h"
 
@@ -23,27 +24,40 @@ public:
   AliTPCclusterKr &operator = (const AliTPCclusterKr & param); 
   ~AliTPCclusterKr();
 
+  void SetCenter();//set center of the cluster weighted by charge
 
   void SetMax(AliTPCvtpr q){fMax=q;}//set values of max. in cluster
   void SetADCcluster(Int_t q){fADCcluster=q;}
-  void SetSec(Short_t q){fNsec=q;}
-  void SetNpads(Short_t q){fNpads=q;}
+  void SetSec(Short_t q){fSec=q;}
+  void SetNPads(Short_t q){fNPads=q;}
+  void SetNRows(Short_t q){fNRows=q;}
   void SetSize(){fSize=fCluster.size();}
+  void SetCenterX(Double_t q){fCenterX=q;}
+  void SetCenterY(Double_t q){fCenterY=q;}
+  void SetCenterT(Double_t q){fCenterT=q;}
 
   AliTPCvtpr GetMax(){return fMax;}
   Int_t GetADCcluster(){return  fADCcluster;}
-  Short_t GetSec(){return fNsec;}
-  Short_t GetNpads(){return fNpads;}
+  Short_t GetSec(){return fSec;}
+  Short_t GetNPads(){return fNPads;}
+  Short_t GetNRows(){return fNRows;}
   Short_t GetSize(){return fSize;}
+  Double_t GetCenterX(){return fCenterX;}
+  Double_t GetCenterY(){return fCenterY;}
+  Double_t GetCenterT(){return fCenterT;}
 
   std::vector< AliTPCvtpr*> fCluster;//cluster contents(adc,nt,np,nr)
 
 private:
   AliTPCvtpr fMax;//max (ADC,timebin,pad,row) in cluster
   Int_t fADCcluster; //ADC of cluster
-  Short_t fNsec;  //sector of the cluster
-  Short_t fNpads; //number of pads in cluster
+  Short_t fSec;  //sector of the cluster
+  Short_t fNPads; //number of pads in cluster
+  Short_t fNRows; //number of rows in cluster
   Short_t fSize; //size of vector
+  Double_t fCenterX;// X coordinate of the cluster center in cm
+  Double_t fCenterY;// Y coordinate of the cluster center in cm
+  Double_t fCenterT;// time coordinate of the cluster center in timebins
 
   ClassDef(AliTPCclusterKr,2)  // Time Projection Chamber Kr clusters
 };