//----------------------------------------------------------------------------- // Mar 26 2001 P.Murat //----------------------------------------------------------------------------- #ifndef STNTUPLE_TObsvVertex #define STNTUPLE_TObsvVertex #ifdef __GNUG__ #pragma interface #endif #include "TLorentzVector.h" class TObsvVertex : public TLorentzVector { protected: Int_t fMother; Int_t fFirstDaughter; Int_t fLastDaughter; public: //------------------------------------------------------------------------------ // functions //------------------------------------------------------------------------------ // ****** constructors and destructor TObsvVertex(); TObsvVertex(Int_t IVert, Float_t Vx, Float_t Vy, Float_t Vz, Float_t Time, Int_t Mother, Int_t FirstDaughter, Int_t LastDaughter); virtual ~TObsvVertex(); //----------------------------------------------------------------------------- // init methods //----------------------------------------------------------------------------- int Init(Int_t IVert, Float_t Vx, Float_t Vy, Float_t Vz, Float_t Time, Int_t Mother, Int_t FirstDaughter, Int_t LastDaughter); //----------------------------------------------------------------------------- // accessors //----------------------------------------------------------------------------- Int_t Number () const { return GetUniqueID(); } Int_t Mother () const { return fMother; } Int_t FirstDaughter() const { return fFirstDaughter; } Int_t LastDaughter () const { return fLastDaughter; } Int_t NDaughters () const { return fLastDaughter-fFirstDaughter+1;} //----------------------------------------------------------------------------- // overloaded methods of TObject //----------------------------------------------------------------------------- void Print(Option_t* opt = "") const; ClassDef(TObsvVertex,1) }; #endif