]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDsegmentID.h
Bug fix reported by Jiri. Make atoi input zero terminated in StepManager()
[u/mrichter/AliRoot.git] / TRD / AliTRDsegmentID.h
index 6a98df341295e5b96575a91b7483ab2b6b3dc519..a5344d00a46e38490b890a104543ec8ed078930b 100644 (file)
@@ -7,23 +7,31 @@
 /* $Id: AliTRDsegmentID.h,v */
 
 ////////////////////////////////////////////////
-//  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()          { 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