]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSclusterV2.h
Improved cuts for the reconstruction of V0s (M.Ivanov)
[u/mrichter/AliRoot.git] / ITS / AliITSclusterV2.h
1 #ifndef ALIITSCLUSTERV2_H
2 #define ALIITSCLUSTERV2_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 //-------------------------------------------------------------------------
7 //                        ITS Cluster Class
8 //
9 //      Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
10 //-------------------------------------------------------------------------
11
12 #include "TMath.h"
13 #include "AliCluster.h"
14 #include "AliITSrecoV2.h"
15
16 //_____________________________________________________________________________
17 class AliITSclusterV2 : public AliCluster {
18 public:
19   AliITSclusterV2() : AliCluster() {fQ=0; fLayer=0; fNz=0; fNy=0;}
20   AliITSclusterV2(Int_t *lab,Float_t *hit, Int_t *info) : AliCluster(lab,hit) {
21     fIndex=lab[3];
22     fQ=hit[4];
23     fNy    = info[0];
24     fNz    = info[1];
25     fLayer = info[2];
26
27   }
28   void Use() {fQ=-fQ;}
29   void SetQ(Float_t q) {fQ=q;}
30   void SetDetectorIndex(Int_t i) { fIndex=i; }
31   void SetLayer(Int_t layer) {fLayer=layer;}
32   void SetNz(Int_t nz) {fNz =nz;}
33   void SetNy(Int_t ny){fNy=ny;}
34   Int_t IsUsed() const {return (fQ<0) ? 1 : 0;}
35   Float_t GetQ() const {return TMath::Abs(fQ);}
36   Int_t GetDetectorIndex() const { return 0x3FF&fIndex; }
37   Int_t GetLayer() const {return fLayer;}
38   Int_t GetNz() const {return fNz;}
39   Int_t GetNy() const {return fNy;}
40   Int_t GetPindex() const { return 0xFFF00000&fIndex; }  //SSD clusters only
41   Int_t GetNindex() const { return 0xFFC00&fIndex; }  //SSD clusters only
42
43 private:
44   Int_t    fIndex;    // detector index
45   Float_t  fQ ;       // Q of cluster (in ADC counts)
46   Char_t   fLayer;    // layer number
47   Char_t   fNz;       //number of digits in Z direction
48   Char_t   fNy;       //number of digits in y direction 
49   ClassDef(AliITSclusterV2,2)  // ITS clusters
50 };
51
52 #endif
53
54