AliRoot Core  3dc7879 (3dc7879)
AliHit.h
Go to the documentation of this file.
1 #ifndef ALIHIT_H
2 #define ALIHIT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 /* $Id$ */
7 
8 // Base class for hits
9 // This class is used as a base class for
10 // hits in the different detectors
11 
12 #include "TObject.h"
13 
14 class AliHit : public TObject {
15 public:
16  AliHit();
17  AliHit(Int_t shunt, Int_t track);
18  virtual ~AliHit() {}
19  Int_t GetTrack() const {return fTrack;}
20  void SetTrack(Int_t track) {fTrack=track;}
21  Float_t X() const {return fX;}
22  Float_t Y() const {return fY;}
23  Float_t Z() const {return fZ;}
24  Int_t Track() const {return fTrack;}
25 
26 protected:
27  Int_t fTrack; // Track number
28  Float_t fX; // X position of the hit
29  Float_t fY; // Y position of the hit
30  Float_t fZ; // Z position of the hit
31 
32  ClassDef(AliHit,1) //Base class for all Alice hits
33 };
34 #endif
Definition: AliHit.h:14
Int_t GetTrack() const
Definition: AliHit.h:19
AliHit()
Definition: AliHit.cxx:35
AliTPCfastTrack * track
Float_t Z() const
Definition: AliHit.h:23
Float_t X() const
Definition: AliHit.h:21
Int_t Track() const
Definition: AliHit.h:24
Float_t Y() const
Definition: AliHit.h:22
Float_t fZ
Definition: AliHit.h:30
Int_t fTrack
Definition: AliHit.h:27
void SetTrack(Int_t track)
Definition: AliHit.h:20
Float_t fX
Definition: AliHit.h:28
virtual ~AliHit()
Definition: AliHit.h:18
Float_t fY
Definition: AliHit.h:29