]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDsegmentID.h
New digitisation per particle type
[u/mrichter/AliRoot.git] / TRD / AliTRDsegmentID.h
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 //     Base class for a detector segment      // 
11 ////////////////////////////////////////////////
12
13 #include "TObject.h"
14
15 class AliTRDsegmentID : public TObject {
16
17  public:
18
19   AliTRDsegmentID();
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
34 };
35    
36 #endif 
37