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