00001 #ifndef TMBMCvtx_H 00002 #define TMBMCvtx_H 00003 00005 // file: TMBMCvtx.hpp // 00006 // TMBTree MCvtx class 00007 // has MCvtx information 00008 // 00009 // created: 21-March-2002 Serban Protopopescu 00010 // // 00012 00013 #ifndef ROOT_TObject 00014 #include "TObject.h" 00015 #endif 00016 #ifndef ROOT_TRef 00017 #include "TRef.h" 00018 #endif 00019 #ifndef ROOT_TRefArray 00020 #include "TRefArray.h" 00021 #endif 00022 00023 class TMBMCpart; 00024 00029 class TMBMCvtx : public TObject { 00030 00031 private: 00032 00033 Float_t _x; 00034 Float_t _y; 00035 Float_t _z; 00036 Float_t _ct; 00037 00038 TRefArray _parents; // list of parent refs 00039 TRefArray _daughters; // list of daughter refs 00040 00041 public: 00042 TMBMCvtx(); 00043 TMBMCvtx(Float_t x, Float_t y, Float_t z, Float_t ct); 00044 00045 00046 Float_t ct() const {return _ct;} 00047 Float_t x() const {return _x;} 00048 Float_t y() const {return _y;} 00049 Float_t z() const {return _z;} 00050 00051 Int_t nparents() const {return _parents.GetLast()+1;} 00052 const TMBMCpart* getParent(Int_t ipart) const {return (TMBMCpart*)_parents.At(ipart);} 00053 00054 Int_t ndaughters() const {return _daughters.GetLast()+1;} 00055 const TMBMCpart* getDaughter(Int_t ipart) const{return (TMBMCpart*)_daughters.At(ipart);} 00056 00057 void addParent(TRef part); 00058 void addDaughter(TRef part); 00059 00060 ~TMBMCvtx() {;} 00061 00062 ClassDef(TMBMCvtx, 2) //TMBTree MCvtx class 00063 }; 00064 00065 #endif
1.3.4