StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPicoMcVertex.h
1 
8 #ifndef StPicoMcVertex_h
9 #define StPicoMcVertex_h
10 
11 // ROOT headers
12 #include "TObject.h"
13 #include "TVector3.h"
14 
15 //_________________
16 class StPicoMcVertex : public TObject {
17 
18  public:
19 
25  virtual ~StPicoMcVertex();
27  virtual void Print(const Char_t *option = "") const;
28 
29 
30  //
31  // Getters
32  //
33 
35  Int_t id() const { return mId; }
37  Int_t numberOfDaughters() const { return mNoDaughters; }
39  Int_t isIntermediate() const { return mIsInterm; }
41  Int_t idOfParentTrack() const { return mIdParTrk; }
43  Float_t time() const { return mTime; }
45  TVector3 position() const { return TVector3(mVx, mVy, mVz); }
46 
47  //
48  // Setters
49  //
50 
52  void setId(Int_t id) { mId = id; }
54  void setNumberOfDaughters(Int_t ntrk) { mNoDaughters = ntrk; }
56  void setIdOfParentTrack(Int_t id) { mIdParTrk = id; }
58  void setIsIntermediate(Int_t interim) { mIsInterm = interim; }
60  void setTime(Float_t time) { mTime = time; }
62  void setPosition(Float_t x, Float_t y, Float_t z) { mVx = x; mVy = y; mVz = z; }
63 
64  private:
66  Int_t mId;
68  UShort_t mNoDaughters;
70  Int_t mIdParTrk;
72  Int_t mIsInterm;
74  Float_t mTime;
76  Float_t mVx;
78  Float_t mVy;
80  Float_t mVz;
81 
82  ClassDef(StPicoMcVertex, 1)
83 };
84 
85 
86 #endif // #define StPicoMcVertex_h
Holds information about Monte Carlo vertex.
virtual ~StPicoMcVertex()
Destructor.
Int_t idOfParentTrack() const
ID of the parent track.
void setNumberOfDaughters(Int_t ntrk)
Set number of daughter tracks.
void setPosition(Float_t x, Float_t y, Float_t z)
Set vertex position.
void setTime(Float_t time)
Set GEANT production time (ns)
virtual void Print(const Char_t *option="") const
Print MC vertex parameters.
Int_t numberOfDaughters() const
Return number of daughters.
void setIsIntermediate(Int_t interim)
Set flag of the intermediate vertex.
void setIdOfParentTrack(Int_t id)
Set ID of the parent track.
Float_t time() const
Production time.
Int_t isIntermediate() const
Return if intermediate vertex.
StPicoMcVertex()
Default constructor.
void setId(Int_t id)
Set vertex ID.
TVector3 position() const
Vertex position.
Int_t id() const
Return ID of the vertex.