]>
Commit | Line | Data |
---|---|---|
a11ef2e4 | 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: | |
a11ef2e4 | 17 | // |
18 | AliITSURecoSens(Int_t id); | |
19 | AliITSURecoSens(const AliITSURecoSens &source); | |
20 | virtual ~AliITSURecoSens() {} | |
21 | AliITSURecoSens& operator=(const AliITSURecoSens &source); | |
22 | // | |
23 | Int_t GetID() const {return (int)GetUniqueID();} | |
24 | Double_t GetXTF() const {return fXTF;} | |
25 | Double_t GetPhiTF() const {return fPhiTF;} | |
26 | Double_t GetPhiMin() const {return fPhiMin;} | |
27 | Double_t GetPhiMax() const {return fPhiMax;} | |
28 | Double_t GetZMin() const {return fZMin;} | |
29 | Double_t GetZMax() const {return fZMax;} | |
30 | // | |
32d38de2 | 31 | Int_t GetNClusters() const {return fNClusters;} |
32 | Int_t GetFirstClusterId() const {return fFirstClusterId;} | |
33 | // | |
a11ef2e4 | 34 | void SetID(Int_t i) {SetUniqueID(i);} |
35 | void SetXTF(double v) {fXTF = v;} | |
36 | void SetPhiTF(double v) {fPhiTF = v;} | |
a11ef2e4 | 37 | void SetBoundaries(double phiMn,double phiMx, double zMn, double zMx); |
38 | // | |
32d38de2 | 39 | void SetNClusters(Int_t ncl) {fNClusters = ncl;} |
40 | void IncNClusters() {fNClusters++;} | |
41 | void SetFirstClusterId(Int_t id) {fFirstClusterId = id;} | |
42 | void ResetClusters(); | |
43 | void ProcessClusters(Int_t mode=0); | |
44 | // | |
a11ef2e4 | 45 | virtual void Print(Option_t* option = "") const; |
5009207f | 46 | // |
47 | virtual Bool_t IsSortable() const {return kTRUE;} | |
48 | virtual Int_t Compare(const TObject* obj) const; | |
49 | virtual Bool_t IsEqual(const TObject* obj) const {return Compare(obj)==0;} | |
50 | // | |
a11ef2e4 | 51 | protected: |
32d38de2 | 52 | Int_t fNClusters; // number of clusters |
53 | Int_t fFirstClusterId; // index of the 1st cluster in the layer's clusters array | |
a11ef2e4 | 54 | Double_t fXTF; // X in tracking frame |
55 | Double_t fPhiTF; // phi of tracking frame | |
56 | Double_t fPhiMin; // lab phi min | |
57 | Double_t fPhiMax; // lab phi max | |
1f9b6041 | 58 | Double_t fZMin; // lab & trk Z min |
59 | Double_t fZMax; // lab & trk Z max | |
a11ef2e4 | 60 | // |
61 | ClassDef(AliITSURecoSens,1); // helper for sensor data used in reco | |
62 | }; | |
63 | ||
64 | ||
65 | #endif |