The track length added to the reference hit
[u/mrichter/AliRoot.git] / STEER / AliTrackReference.h
... / ...
CommitLineData
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 void SetLength(Float_t length){fLength=length;}
17 virtual Float_t GetLength(){return fLength;}
18 virtual Float_t X() const {return fX;}
19 virtual Float_t Y() const {return fY;}
20 virtual Float_t Z() const {return fZ;}
21 virtual Float_t Px() const {return fPx;}
22 virtual Float_t Py() const {return fPy;}
23 virtual Float_t Pz() const {return fPz;}
24 virtual void SetPosition(Float_t x, Float_t y, Float_t z){fX=x; fY=y; fZ=z;}
25 virtual void SetMomentum(Float_t px, Float_t py, Float_t pz){fPx=px; fPy=py; fPz=pz;}
26
27protected:
28 Int_t fTrack; // Track number
29 Float_t fX; // X reference position of the track
30 Float_t fY; // Y reference position of the track
31 Float_t fZ; // Z reference position of the track
32 Float_t fPx; // momentum
33 Float_t fPy; // momentum
34 Float_t fPz; // momentum
35 Float_t fLength; // track lenght from its origin
36
37 ClassDef(AliTrackReference,2) //Base class for all Alice hits
38};
39#endif