/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id: AliTRDsegmentID.h,v */
+/* $Id$*/
-////////////////////////////////////////////////
-// Manager class generaol Alice segment
-// segment is for example one pad row in TPC //
-////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////
+// //
+// Base class for a detector segment //
+// //
+////////////////////////////////////////////////////////////////////////////
-#include "TObject.h"
+#include <TObject.h>
+
+class AliTRDsegmentID : public TObject {
+
+ public:
-class AliTRDsegmentID: public TObject{
-public:
AliTRDsegmentID();
- AliTRDsegmentID(Int_t index){fSegmentID = index;}
- Int_t GetID() {return fSegmentID;}
- void SetID(Int_t index){fSegmentID = index;}
- virtual Int_t GetSize() {return sizeof(*this);} //function which return size of object
-protected:
- Int_t fSegmentID; //identification number of Segment
- ClassDef(AliTRDsegmentID,1)
+ AliTRDsegmentID(Int_t index);
+ virtual ~AliTRDsegmentID();
+
+ Int_t GetID() const { return fSegmentID; }
+ virtual Int_t GetSize() const { return sizeof(*this); }
+
+ void SetID(Int_t index) { fSegmentID = index; }
+
+ protected:
+
+ Int_t fSegmentID; // Identification number of a segment
+
+ ClassDef(AliTRDsegmentID,1) // Detector segment base class
+
};
-#endif //ALISEGMENTID_H
+#endif