No default compilation of static libs
[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"
2d74ba4f 9#include "TVirtualMC.h"
aab9c8d5 10
11class AliTrackReference : public TObject {
2d74ba4f 12
aab9c8d5 13public:
2d74ba4f 14
aab9c8d5 15 AliTrackReference();
2d74ba4f 16 AliTrackReference(Int_t label, TVirtualMC *vMC);
aab9c8d5 17 virtual ~AliTrackReference() {}
2d74ba4f 18
aab9c8d5 19 virtual Int_t GetTrack() const {return fTrack;}
20 virtual void SetTrack(Int_t track) {fTrack=track;}
4930c251 21 virtual void SetLength(Float_t length){fLength=length;}
2d74ba4f 22 virtual void SetTime(Float_t time) {fTime = time;}
688d460d 23 virtual Float_t GetLength(){return fLength;}
2d74ba4f 24 virtual Float_t GetTime(){return fTime;}
aab9c8d5 25 virtual Float_t X() const {return fX;}
26 virtual Float_t Y() const {return fY;}
27 virtual Float_t Z() const {return fZ;}
28 virtual Float_t Px() const {return fPx;}
29 virtual Float_t Py() const {return fPy;}
30 virtual Float_t Pz() const {return fPz;}
31 virtual void SetPosition(Float_t x, Float_t y, Float_t z){fX=x; fY=y; fZ=z;}
32 virtual void SetMomentum(Float_t px, Float_t py, Float_t pz){fPx=px; fPy=py; fPz=pz;}
2d74ba4f 33
34
aab9c8d5 35protected:
36 Int_t fTrack; // Track number
37 Float_t fX; // X reference position of the track
38 Float_t fY; // Y reference position of the track
39 Float_t fZ; // Z reference position of the track
40 Float_t fPx; // momentum
41 Float_t fPy; // momentum
42 Float_t fPz; // momentum
2d74ba4f 43 Float_t fLength; // track lenght from its origin in cm
44 Float_t fTime; // time of flight in cm
aab9c8d5 45
14f9f6b4 46 ClassDef(AliTrackReference,3) //Base class for all Alice track references
aab9c8d5 47};
48#endif