]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSclusterV2.h
Added the function GetModuleTypeName, and inlined some functions for speed.
[u/mrichter/AliRoot.git] / ITS / AliITSclusterV2.h
index 219ef143a1b2474289fdff3e560a204b13003025..26b1359e621c86f9a3ddfd9b478f43c9e049cc30 100644 (file)
@@ -9,33 +9,44 @@
 //      Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
 //-------------------------------------------------------------------------
 
+#include "TMath.h"
 #include "AliCluster.h"
 #include "AliITSrecoV2.h"
 
 //_____________________________________________________________________________
 class AliITSclusterV2 : public AliCluster {
 public:
-  AliITSclusterV2() : AliCluster() {fQ=0;}
-  AliITSclusterV2(Int_t *lab,Float_t *hit) : AliCluster(lab,hit) {
+  AliITSclusterV2() : AliCluster() {fQ=0; fLayer=0; fNz=0; fNy=0;}
+  AliITSclusterV2(Int_t *lab,Float_t *hit, Int_t *info) : AliCluster(lab,hit) {
     fIndex=lab[3];
     fQ=hit[4];
+    fNy    = info[0];
+    fNz    = info[1];
+    fLayer = info[2];
+
   }
-  void Use() {fSigmaY2=-fSigmaY2;}
+  void Use() {fQ=-fQ;}
   void SetQ(Float_t q) {fQ=q;}
   void SetDetectorIndex(Int_t i) { fIndex=i; }
-
-  Int_t IsUsed() const {return (fSigmaY2<0) ? 1 : 0;}
-  Float_t GetQ() const {return fQ;}
+  void SetLayer(Int_t layer) {fLayer=layer;}
+  void SetNz(Int_t nz) {fNz =nz;}
+  void SetNy(Int_t ny){fNy=ny;}
+  Int_t IsUsed() const {return (fQ<0) ? 1 : 0;}
+  Float_t GetQ() const {return TMath::Abs(fQ);}
   Int_t GetDetectorIndex() const { return 0x3FF&fIndex; }
-
+  Int_t GetLayer() const {return fLayer;}
+  Int_t GetNz() const {return fNz;}
+  Int_t GetNy() const {return fNy;}
   Int_t GetPindex() const { return 0xFFF00000&fIndex; }  //SSD clusters only
   Int_t GetNindex() const { return 0xFFC00&fIndex; }  //SSD clusters only
 
 private:
   Int_t    fIndex;    // detector index
   Float_t  fQ ;       // Q of cluster (in ADC counts)
-  
-  ClassDef(AliITSclusterV2,1)  // ITS clusters
+  Char_t   fLayer;    // layer number
+  Char_t   fNz;       //number of digits in Z direction
+  Char_t   fNy;       //number of digits in y direction 
+  ClassDef(AliITSclusterV2,2)  // ITS clusters
 };
 
 #endif