#ifndef ROOT_GParticle #define ROOT_GParticle #ifndef ROOT_TObject #include "TObject.h" #endif class GParticle : public TObject { private: Int_t fKS; // status of particle ( LUJETS K[1] ) Int_t fKF; // KF flavour code ( LUJETS K[2] ) Int_t fParent; // parent id ( LUJETS K[3] ) Int_t fFirstChild; // id of first child ( LUJETS K[4] ) Int_t fLastChild; // id of last child ( LUJETS K[5] ) Float_t fPx; // X momenta [GeV/c] ( LUJETS P[1] ) Float_t fPy; // Y momenta [GeV/c] ( LUJETS P[2] ) Float_t fPz; // Z momenta [GeV/c] ( LUJETS P[3] ) Float_t fEnergy; // Energy [GeV] ( LUJETS P[4] ) Float_t fMass; // Mass [Gev/c^2] ( LUJETS P[5] ) Float_t fVx; // X vertex [mm] ( LUJETS V[1] ) Float_t fVy; // Y vertex [mm] ( LUJETS V[2] ) Float_t fVz; // Z vertex [mm] ( LUJETS V[3] ) Float_t fTime; // time of procuction [mm/c]( LUJETS V[4] ) Float_t fLifetime; // proper lifetime [mm/c] ( LUJETS V[5] ) public: GParticle() { } GParticle(Int_t kS, Int_t kF, Int_t parent, Int_t firstchild, Int_t lastchild, Float_t px, Float_t py, Float_t pz, Float_t energy, Float_t mass, Float_t vx, Float_t vy, Float_t vz, Float_t time, Float_t lifetime) : fKS(kS), fKF(kF), fParent(parent), fFirstChild(firstchild), fLastChild(lastchild), fPx(px), fPy(py), fPz(pz), fEnergy(energy), fMass(mass), fVx(vx), fVy(vy), fVz(vz), fTime(time), fLifetime(lifetime) { } virtual ~GParticle() { } Int_t GetKS() const {return fKS;} Int_t GetKF() const {return fKF;} Int_t GetParent() const {return fParent;} Int_t GetFirstChild() const {return fFirstChild;} Int_t GetLastChild() const {return fLastChild;} Float_t GetPx() const {return fPx;} Float_t GetPy() const {return fPy;} Float_t GetPz() const {return fPz;} Float_t GetEnergy() const {return fEnergy;} Float_t GetMass() const {return fMass;} Float_t GetVx() const {return fVx;} Float_t GetVy() const {return fVy;} Float_t GetVz() const {return fVz;} Float_t GetTime() const {return fTime;} Float_t GetLifetime() const {return fLifetime;} virtual const Text_t *GetName() const; ClassDef(GParticle,1) // LUJETS particles data record. }; #endif