]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALITRDPIXEL_H | |
2 | #define ALITRDPIXEL_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 | ////////////////////////////////////////////////////// | |
11 | // Stores the information for one detector pixel // | |
12 | ////////////////////////////////////////////////////// | |
13 | ||
14 | class AliTRDpixel : public TObject { | |
15 | ||
16 | public: | |
17 | ||
18 | AliTRDpixel(); | |
19 | virtual ~AliTRDpixel(); | |
20 | ||
21 | virtual void Copy(TObject &p) const; | |
22 | ||
23 | static Int_t NTrackPixel() { return fgkNTrackPixel; }; | |
24 | ||
25 | virtual void SetSignal(Float_t signal) { fSignal = signal; }; | |
26 | virtual void SetTrack(Int_t i, Int_t track) { fTrack[i] = track; }; | |
27 | ||
28 | virtual Float_t GetSignal() const { return fSignal; }; | |
29 | virtual Int_t GetTrack(Int_t i) const { return fTrack[i]; }; | |
30 | ||
31 | protected: | |
32 | ||
33 | enum { kNTrackPixel = 3 }; | |
34 | static const Int_t fgkNTrackPixel; // Maximal number of stored tracks | |
35 | ||
36 | Float_t fSignal; // Signal sum | |
37 | Int_t fTrack[kNTrackPixel]; // Tracks contributing to this pixel | |
38 | ||
39 | ClassDef(AliTRDpixel,1) // Information for one detector pixel | |
40 | ||
41 | }; | |
42 | ||
43 | #endif |