X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliHit.h;h=b0e1886e28c55fa576600deba576eb601abb1b4c;hb=6c0c994810707f6e4bdcc7d305277d2bedb7848f;hp=9413cea319fc87cbd0fdb97565d5d3fb8e969c83;hpb=8918e70084c0bd41164dfeb3795567b013b2693e;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliHit.h b/STEER/AliHit.h index 9413cea319f..b0e1886e28c 100644 --- a/STEER/AliHit.h +++ b/STEER/AliHit.h @@ -5,15 +5,13 @@ /* $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); @@ -23,8 +21,14 @@ public: 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