1 #ifndef ALIITSURECOSENS
2 #define ALIITSURECOSENS
6 ///////////////////////////////////////////////////////////////////////
8 // Class AliITSURecoSens //
9 // Interface between the framework and reconstruction for //
10 // single ITS sensor //
12 ///////////////////////////////////////////////////////////////////////
14 class AliITSURecoSens : public TObject
17 enum {kNghbR,kNghbTR,kNghbT,kNghbTL,kNghbL,kNghbBL,kNghbB,kNghbBR,kNNeighbors}; // neighbors: Top,Left etc
19 AliITSURecoSens(Int_t id);
20 AliITSURecoSens(const AliITSURecoSens &source);
21 virtual ~AliITSURecoSens() {}
22 AliITSURecoSens& operator=(const AliITSURecoSens &source);
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;}
32 Int_t GetNeighborID(int i) const {return fNeighbors[i];}
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);
40 virtual void Print(Option_t* option = "") const;
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
51 ClassDef(AliITSURecoSens,1); // helper for sensor data used in reco