// ------------------------------------------------------------------------- // ----- CbmEcalRecParticle header file ----- // ----- Created 04.07.2005 by Yu.Kharlov // ------------------------------------------------------------------------- /* $Id: CbmEcalRecParticle.h,v 1.1 2006/06/22 14:02:17 kharlov Exp $ */ /* History of cvs commits: * * $Log: CbmEcalRecParticle.h,v $ * Revision 1.1 2006/06/22 14:02:17 kharlov * First upload of reconstruction classes for Full MC * */ /** CbmEcalRecParticle.h *@author Yu.Kharlov ** ** Reconstructed particle in ECAL, characterized by reconstructed 4-momentum **/ #ifndef CBMECALRECPARTICLE_H #define CBMECALRECPARTICLE_H #include "TObject.h" #include "TLorentzVector.h" using namespace std; class CbmEcalRecParticle : public TObject { public: /** Default constructor **/ CbmEcalRecParticle(); /** Constructor with arguments *@param px,py,pz,E 4 components of LorentzVector **/ CbmEcalRecParticle(Double_t px, Double_t py, Double_t pz, Double_t E); /** Copy constructor **/ CbmEcalRecParticle(const CbmEcalRecParticle& obj) { *this = obj; }; /** Destructor **/ virtual ~CbmEcalRecParticle(); /** Accessors **/ TLorentzVector GetMomentum() const {return TLorentzVector(fPx,fPy,fPz,fE);} /** Output to screen **/ virtual void Print(const Option_t* opt = "") const; protected: Double32_t fPx; // px component of momentum 4-vector Double32_t fPy; // py component of momentum 4-vector Double32_t fPz; // pz component of momentum 4-vector Double32_t fE; // E component of momentum 4-vector ClassDef(CbmEcalRecParticle,1) }; #endif