X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliHit.h;h=b0e1886e28c55fa576600deba576eb601abb1b4c;hb=36f26a561b4714628d6b02e4d7ba4bf2ef02ab25;hp=da6babdc98e259b4a91546778dbe5cbd7339bfd7;hpb=3da306186bdfe9b8dedf54c4b9cdcf2bff5b132c;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliHit.h b/STEER/AliHit.h index da6babdc98e..b0e1886e28c 100644 --- a/STEER/AliHit.h +++ b/STEER/AliHit.h @@ -1,27 +1,34 @@ -#ifndef AliHit_H -#define AliHit_H +#ifndef ALIHIT_H +#define ALIHIT_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $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 - //Position of the hit - Float_t fX; - Float_t fY; - Float_t fZ; - public: AliHit(); AliHit(Int_t shunt, Int_t track); virtual ~AliHit() {} - virtual int GetTrack() const {return fTrack;} - inline virtual void SetTrack(int track) {fTrack=track;} + virtual Int_t GetTrack() const {return fTrack;} + virtual void SetTrack(Int_t track) {fTrack=track;} + virtual Float_t X() const {return fX;} + virtual Float_t Y() const {return fY;} + virtual Float_t Z() const {return fZ;} + 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