]>
Commit | Line | Data |
---|---|---|
46d29e70 | 1 | #ifndef ALITRDCLUSTER_H |
2 | #define ALITRDCLUSTER_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | #include <TObject.h> | |
9 | ||
10 | class AliTRDrecPoint; | |
11 | ||
12 | class AliTRDcluster : public TObject { | |
13 | ||
14 | public: | |
15 | ||
16 | AliTRDcluster(); | |
17 | AliTRDcluster(AliTRDrecPoint *rp); | |
18 | ||
19 | virtual Int_t GetDetector() const { return fDetector; }; | |
20 | virtual Int_t GetLocalTimeBin() const { return fTimeBin; } | |
21 | ||
22 | virtual Float_t GetSigmaY2() const { return fSigmaY2; } | |
23 | virtual Float_t GetSigmaZ2() const { return fSigmaZ2; } | |
24 | virtual Float_t GetY() const { return fY; } | |
25 | virtual Float_t GetZ() const { return fZ; } | |
26 | virtual Float_t GetQ() const { return fQ; } | |
27 | ||
28 | Int_t IsUsed() const { return (fQ<0) ? 1 : 0; } | |
29 | void Use() { fQ=-fQ; } | |
30 | Int_t GetTrackIndex(Int_t i) const { return fTracks[i]; } | |
31 | ||
32 | ||
33 | protected: | |
34 | ||
35 | Int_t fDetector; // TRD detector number | |
36 | Int_t fTimeBin; // Time bin number within the detector | |
37 | ||
38 | Int_t fTracks[3]; // labels of overlapped tracks | |
39 | Float_t fQ; // amplitude | |
40 | Float_t fY; // local Rphi coordinate (cm) within tracking sector | |
41 | Float_t fZ; // local Z coordinate (cm) within tracking sector | |
42 | Float_t fSigmaY2; // Y variance (cm) | |
43 | Float_t fSigmaZ2; // Z variance (cm) | |
44 | ||
45 | ||
46 | ClassDef(AliTRDcluster,1) // Reconstructed point for the TRD | |
47 | ||
48 | }; | |
49 | ||
50 | #endif |