#ifndef Track_H #define Track_H #include "TObject.h" #include "TClonesArray.h" #include "TMath.h" class Track : public TObject { protected: Float_t ft; //Eigentime of particle in fm/c Float_t frx; //x coordinate in fm Float_t fry; //y coordinate in fm Float_t frz; //z coordinate in fm Float_t fE; //Energy Float_t fPx; //x momentum component in GeV Float_t fPy; //y momentum component in GeV Float_t fPz; //z momentum component in GeV Float_t fMass; //mass of particle in GeV Int_t fPid_UrQMD; //particle-ID UrQMD Int_t fI3; //2*I3: isospin z-projection (doubled) Int_t fCharge; //charge of particle Int_t fNColl; //Number of collisions virtual void CopyParticle(Track *t); public: Track(); Track(Track *t); //copy constructor virtual ~Track() {Clear();} void SetT(Float_t x) { ft = x; } void SetRx(Float_t x) { frx = x; } void SetRy(Float_t x) { fry = x; } void SetRz(Float_t x) { frz = x; } void SetE(Float_t x) { fE = x; } void SetPx(Float_t x) { fPx = x; } void SetPy(Float_t x) { fPy = x; } void SetPz(Float_t x) { fPz = x; } void SetMass(Float_t x) { fMass = x; } void SetPID_UrQMD(Int_t i) { fPid_UrQMD = i; } void SetI3(Int_t i) { fI3 = i; } void SetCharge(Int_t i) { fCharge = i; } void SetNColl(Int_t i) { fNColl = i; } void Clear(Option_t *option=""); Float_t GetT() { return ft; } Float_t GetRx() { return frx; } Float_t GetRy() { return fry; } Float_t GetRz() { return frz; } Float_t GetE() { return fE; } Float_t GetPx() { return fPx; } Float_t GetPy() { return fPy; } Float_t GetPz() { return fPz; } Float_t GetMass() { return fMass; } Int_t GetPID_UrQMD() { return fPid_UrQMD; } Int_t GetI3() { return fI3; } Int_t GetCharge() { return fCharge; } Int_t GetNColl() { return fNColl; } ClassDef(Track,1) }; #endif