]>
Commit | Line | Data |
---|---|---|
dd9a6ee3 | 1 | #ifndef ALITRDPIXEL_H |
2 | #define ALITRDPIXEL_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
99d5402e | 7 | |
8 | #include <TObject.h> | |
9 | ||
10 | ////////////////////////////////////////////////////// | |
11 | // Stores the information for one detector pixel // | |
12 | ////////////////////////////////////////////////////// | |
13 | ||
99d5402e | 14 | class AliTRDpixel : public TObject { |
15 | ||
99d5402e | 16 | public: |
8230f242 | 17 | |
99d5402e | 18 | AliTRDpixel(); |
8230f242 | 19 | virtual ~AliTRDpixel(); |
20 | ||
dd9a6ee3 | 21 | virtual void Copy(TObject &p); |
99d5402e | 22 | |
793ff80c | 23 | static Int_t NTrackPixel() { return fgkNTrackPixel; }; |
24 | ||
99d5402e | 25 | virtual void SetSignal(Float_t signal) { fSignal = signal; }; |
26 | virtual void SetTrack(Int_t i, Int_t track) { fTrack[i] = track; }; | |
27 | ||
793ff80c | 28 | virtual Float_t GetSignal() const { return fSignal; }; |
29 | virtual Int_t GetTrack(Int_t i) const { return fTrack[i]; }; | |
99d5402e | 30 | |
8230f242 | 31 | protected: |
32 | ||
793ff80c | 33 | enum { kNTrackPixel = 3 }; |
34 | static const Int_t fgkNTrackPixel; // Maximal number of stored tracks | |
35 | ||
8230f242 | 36 | Float_t fSignal; // Signal sum |
793ff80c | 37 | Int_t fTrack[kNTrackPixel]; // Tracks contributing to this pixel |
8230f242 | 38 | |
5c7f4665 | 39 | ClassDef(AliTRDpixel,1) // Information for one detector pixel |
99d5402e | 40 | |
41 | }; | |
42 | ||
43 | #endif |