StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuMcVertex.h
1 #ifndef __StMuMcVertex_h__
2 #define __StMuMcVertex_h__
3 #include "tables/St_g2t_vertex_Table.h"
4 #include "StThreeVectorF.hh"
5 
6 class StMuMcVertex : public TObject {
7  public:
8  StMuMcVertex(const g2t_vertex_st &v) : mId(v.id), mNoDaughters(v.n_daughter), mIdParTrk(v.parent_p),
9  mIsInterm(v.is_itrmd), mTime(v.ge_tof), mXyzV(v.ge_x) {}
10  StMuMcVertex() {}
11  virtual ~StMuMcVertex() {}
12  Int_t Id() const {return mId;} /* primary key */
13  Int_t NoDaughters() const {return mNoDaughters;} /* Number of daughter tracks */
14  Int_t IsIntermedate() const {return mIsInterm;} /* flags intermediate vertex */
15  Float_t Time() const {return mTime;} /* GEANT vertex production time (nsec) */
16  const StThreeVectorF &XyzV() const {return *&mXyzV;} /* GEANT vertex coordinate (Cartesian) */
17  Int_t IdParTrk() const {return mIdParTrk;}
18  virtual void Print(Option_t* option = "") const; //
19  private:
20  Int_t mId;
21  Int_t mNoDaughters;
22  Int_t mIdParTrk;
23  Int_t mIsInterm;
24  Float_t mTime;
25  StThreeVectorF mXyzV;
26  ClassDef(StMuMcVertex,1)
27 };
28 ostream& operator<<(ostream& os, StMuMcVertex const & v);
29 #endif