AliTrackReference added, AliDisplay modified
[u/mrichter/AliRoot.git] / STEER / AliTrackReference.h
CommitLineData
aab9c8d5 1#ifndef ALITRACKREFERENCE_H
2#define ALITRACKREFERENCE_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#include "TObject.h"
9
10class AliTrackReference : public TObject {
11public:
12 AliTrackReference();
13 virtual ~AliTrackReference() {}
14 virtual Int_t GetTrack() const {return fTrack;}
15 virtual void SetTrack(Int_t track) {fTrack=track;}
16 virtual Float_t X() const {return fX;}
17 virtual Float_t Y() const {return fY;}
18 virtual Float_t Z() const {return fZ;}
19 virtual Float_t Px() const {return fPx;}
20 virtual Float_t Py() const {return fPy;}
21 virtual Float_t Pz() const {return fPz;}
22 virtual void SetPosition(Float_t x, Float_t y, Float_t z){fX=x; fY=y; fZ=z;}
23 virtual void SetMomentum(Float_t px, Float_t py, Float_t pz){fPx=px; fPy=py; fPz=pz;}
24
25protected:
26 Int_t fTrack; // Track number
27 Float_t fX; // X reference position of the track
28 Float_t fY; // Y reference position of the track
29 Float_t fZ; // Z reference position of the track
30 Float_t fPx; // momentum
31 Float_t fPy; // momentum
32 Float_t fPz; // momentum
33
34 ClassDef(AliTrackReference,1) //Base class for all Alice hits
35};
36#endif