]>
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 | ||
7 | /* $Id: AliTRDsegmentID.h,v */ | |
8 | ||
9 | //////////////////////////////////////////////// | |
8230f242 | 10 | // Base class for a detector segment // |
f7336fa3 | 11 | //////////////////////////////////////////////// |
12 | ||
13 | #include "TObject.h" | |
14 | ||
8230f242 | 15 | class AliTRDsegmentID : public TObject { |
16 | ||
17 | public: | |
18 | ||
f7336fa3 | 19 | AliTRDsegmentID(); |
8230f242 | 20 | AliTRDsegmentID(Int_t index); |
21 | virtual ~AliTRDsegmentID(); | |
22 | ||
23 | Int_t GetID() { return fSegmentID; } | |
24 | virtual Int_t GetSize() { return sizeof(*this); } | |
25 | ||
26 | void SetID(Int_t index) { fSegmentID = index;} | |
27 | ||
28 | protected: | |
29 | ||
30 | Int_t fSegmentID; // Identification number of a segment | |
31 | ||
32 | ClassDef(AliTRDsegmentID,1) // Detector segment base class | |
33 | ||
f7336fa3 | 34 | }; |
35 | ||
8230f242 | 36 | #endif |
f7336fa3 | 37 |