]>
Commit | Line | Data |
---|---|---|
f7336fa3 | 1 | #ifndef ALITRDSEGMENTID_H |
2 | #define ALITRDSEGMENTID_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
04eeac11 | 7 | /* $Id$*/ |
f7336fa3 | 8 | |
04eeac11 | 9 | //////////////////////////////////////////////////////////////////////////// |
10 | // // | |
11 | // Base class for a detector segment // | |
12 | // // | |
13 | //////////////////////////////////////////////////////////////////////////// | |
f7336fa3 | 14 | |
793ff80c | 15 | #include <TObject.h> |
f7336fa3 | 16 | |
8230f242 | 17 | class AliTRDsegmentID : public TObject { |
18 | ||
19 | public: | |
20 | ||
f7336fa3 | 21 | AliTRDsegmentID(); |
8230f242 | 22 | AliTRDsegmentID(Int_t index); |
23 | virtual ~AliTRDsegmentID(); | |
24 | ||
04eeac11 | 25 | Int_t GetID() const { return fSegmentID; } |
26 | virtual Int_t GetSize() const { return sizeof(*this); } | |
8230f242 | 27 | |
04eeac11 | 28 | void SetID(Int_t index) { fSegmentID = index; } |
8230f242 | 29 | |
30 | protected: | |
31 | ||
04eeac11 | 32 | Int_t fSegmentID; // Identification number of a segment |
8230f242 | 33 | |
04eeac11 | 34 | ClassDef(AliTRDsegmentID,1) // Detector segment base class |
8230f242 | 35 | |
f7336fa3 | 36 | }; |
37 | ||
8230f242 | 38 | #endif |
f7336fa3 | 39 |