]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/UPGRADE/AliITSURecoSens.h
Possibility to not create RecPoints tree, using clusters directly in the reco.
[u/mrichter/AliRoot.git] / ITS / UPGRADE / AliITSURecoSens.h
1 #ifndef ALIITSURECOSENS
2 #define ALIITSURECOSENS
3
4 #include <TObject.h>
5
6 ///////////////////////////////////////////////////////////////////////
7 //                                                                   //
8 //  Class AliITSURecoSens                                            //
9 //  Interface between the framework and reconstruction for           //
10 //  single ITS sensor                                                //
11 //                                                                   //
12 ///////////////////////////////////////////////////////////////////////
13
14 class AliITSURecoSens : public TObject
15 {
16  public:
17   enum {kNghbR,kNghbTR,kNghbT,kNghbTL,kNghbL,kNghbBL,kNghbB,kNghbBR,kNNeighbors}; // neighbors: Top,Left etc
18   //
19   AliITSURecoSens(Int_t id);
20   AliITSURecoSens(const AliITSURecoSens &source); 
21   virtual ~AliITSURecoSens() {}
22   AliITSURecoSens& operator=(const AliITSURecoSens &source); 
23   //
24   Int_t              GetID()                       const {return (int)GetUniqueID();}
25   Double_t           GetXTF()                      const {return fXTF;}
26   Double_t           GetPhiTF()                    const {return fPhiTF;}
27   Double_t           GetPhiMin()                   const {return fPhiMin;}
28   Double_t           GetPhiMax()                   const {return fPhiMax;}
29   Double_t           GetZMin()                     const {return fZMin;}
30   Double_t           GetZMax()                     const {return fZMax;}
31   //
32   Int_t              GetNeighborID(int i)          const {return fNeighbors[i];}
33   //
34   void               SetID(Int_t i)                      {SetUniqueID(i);}
35   void               SetXTF(double v)                    {fXTF = v;}
36   void               SetPhiTF(double v)                  {fPhiTF = v;}
37   void               SetNeighborID(int i, int id)        {fNeighbors[i] = id;}
38   void               SetBoundaries(double phiMn,double phiMx, double zMn, double zMx);
39   //
40   virtual void       Print(Option_t* option = "")  const;
41
42  protected:
43   Int_t              fNeighbors[kNNeighbors];      // id of neighbors  
44   Double_t           fXTF;                         // X in tracking frame
45   Double_t           fPhiTF;                       // phi of tracking frame
46   Double_t           fPhiMin;                      // lab phi min
47   Double_t           fPhiMax;                      // lab phi max
48   Double_t           fZMin;                        // lab & trk Z min
49   Double_t           fZMax;                        // lab & trk Z max
50   //
51   ClassDef(AliITSURecoSens,1); // helper for sensor data used in reco
52 };
53
54
55 #endif