/* $Id$ */
+// Base class for hits
+// This class is used as a base class for
+// hits in the different detectors
+
#include "TObject.h"
class AliHit : public TObject {
-public:
- Int_t fTrack; // Track number
- Float_t fX; // X position of the hit
- Float_t fY; // Y position of the hit
- Float_t fZ; // Z position of the hit
-
public:
AliHit();
AliHit(Int_t shunt, Int_t track);
virtual Float_t X() const {return fX;}
virtual Float_t Y() const {return fY;}
virtual Float_t Z() const {return fZ;}
- virtual Float_t Track() const {return fTrack;}
+ virtual Int_t Track() const {return fTrack;}
+protected:
+ Int_t fTrack; // Track number
+ Float_t fX; // X position of the hit
+ Float_t fY; // Y position of the hit
+ Float_t fZ; // Z position of the hit
+
ClassDef(AliHit,1) //Base class for all Alice hits
};
#endif