]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITStrackSA.h
Transfer of the initialisation of the QA Data objects in the framework; clean the...
[u/mrichter/AliRoot.git] / ITS / AliITStrackSA.h
index 2a4c8b6286b27143983ea0232781d34d5379e259..96f4b13381033de26726416e9b69ca44915a3b57 100755 (executable)
@@ -9,6 +9,8 @@
 //                                                //
 ////////////////////////////////////////////////////
 
+/* $Id$ */
+
 #include "AliITStrackMI.h"
 
 class AliITStrackSA : public AliITStrackMI {
@@ -22,23 +24,34 @@ class AliITStrackSA : public AliITStrackMI {
   AliITStrackSA(Int_t layer, Int_t ladder, Int_t detector, 
                 Double_t Ycoor, Double_t Zcoor, Double_t phi, 
                 Double_t tanlambda, Double_t curv, Int_t lab);
-
-
   Int_t GetClusterIndexSA(Int_t i) const {return fSain[i];}
+  Int_t GetClusterMark(Int_t layer,Int_t i) const {return fCluMark[layer][i];}
   Int_t GetNumberOfClustersSA() const {return fNSA;}
+  Int_t GetNumberOfMarked(Int_t lay) const {return fNM[lay];}
+  static Int_t GetMaxNumberOfClusters() {return kMaxNumberOfClusters;}
+  Int_t GetMaxNMarkedPerLayer() const {return kMaxNumberOfClustersL;}
   void  AddClusterSA(Int_t layer, Int_t clnumb);
   void  AddClusterV2(Int_t layer,Int_t clnumb);
+  void  AddClusterMark(Int_t layer, Int_t clnumb);
+
+  enum {kMaxNumberOfClustersL = 4};// Max. n. of clusters/layer 
+  enum {kMaxNumberOfClusters = 15};// Max. number of clusters
 
  protected: 
 
   void SetNumberOfClustersSA(Int_t n){fNSA = n;}
-  void ResetIndexSA(){for(Int_t k=0; k<fgkMaxNumberOfClusters; k++) fSain[k]=0;}
-  static const Int_t fgkMaxNumberOfClusters = 20; // Max. number of clusters 
-                                            // per trackSA
-  UInt_t  fSain[fgkMaxNumberOfClusters];   // cluster index (SA)
+  void SetNumberOfMarked(Int_t lay,Int_t n) {fNM[lay] = n;}
+  void ResetIndexSA(){for(Int_t k=0; k<kMaxNumberOfClusters; k++) fSain[k]=0;}
+  void ResetMarked(); 
+
+
+  UInt_t  fSain[kMaxNumberOfClusters];   // cluster index (SA)
   Int_t fNSA;          // number of clusters SA 
-  ClassDef(AliITStrackSA,2)
+
+  Int_t fCluMark[AliITSgeomTGeo::kNLayers][kMaxNumberOfClustersL]; //indices for cluster used
+  Int_t fNM[AliITSgeomTGeo::kNLayers]; //number of marked clusters
+
+  ClassDef(AliITStrackSA,4)
 };
 
 #endif