]>
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); | |
bbf92647 | 18 | AliTRDcluster(AliTRDcluster *cl); |
46d29e70 | 19 | |
bbf92647 | 20 | Int_t GetDetector() const { return fDetector; }; |
21 | Int_t GetLocalTimeBin() const { return fTimeBin; } | |
22 | ||
23 | Float_t GetSigmaY2() const { return fSigmaY2; } | |
24 | Float_t GetSigmaZ2() const { return fSigmaZ2; } | |
25 | Float_t GetY() const { return fY; } | |
26 | Float_t GetZ() const { return fZ; } | |
27 | Float_t GetQ() const { return fQ; } | |
28 | ||
29 | Int_t IsUsed() const { return (fQ<0) ? 1 : 0; } | |
30 | void Use() { fQ=-fQ; } | |
31 | Int_t GetTrackIndex(Int_t i) const { return fTracks[i]; } | |
32 | ||
33 | void SetSigmaY2(Float_t s) { fSigmaY2 = s; } | |
34 | void SetSigmaZ2(Float_t s) { fSigmaZ2 = s; } | |
46d29e70 | 35 | |
36 | ||
37 | protected: | |
38 | ||
39 | Int_t fDetector; // TRD detector number | |
40 | Int_t fTimeBin; // Time bin number within the detector | |
41 | ||
42 | Int_t fTracks[3]; // labels of overlapped tracks | |
43 | Float_t fQ; // amplitude | |
44 | Float_t fY; // local Rphi coordinate (cm) within tracking sector | |
45 | Float_t fZ; // local Z coordinate (cm) within tracking sector | |
46 | Float_t fSigmaY2; // Y variance (cm) | |
47 | Float_t fSigmaZ2; // Z variance (cm) | |
48 | ||
49 | ||
50 | ClassDef(AliTRDcluster,1) // Reconstructed point for the TRD | |
51 | ||
52 | }; | |
53 | ||
54 | #endif |