StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPicoMcVertex.cxx
1 //
2 // StPicoMcVertex holds information about Monte Carlo vertex (generator + GEANT)
3 //
4 
5 // ROOT headers
6 #include "TString.h"
7 
8 // PicoDst headers
9 #include "StPicoMessMgr.h"
10 #include "StPicoMcVertex.h"
11 
12 ClassImp(StPicoMcVertex)
13 
14 //_________________
16  mId(0), mNoDaughters(0), mIdParTrk(0), mIsInterm(0),
17  mTime(0), mVx(0), mVy(0), mVz(0) {
18  // Default constructor
19  /* emtpy */
20 }
21 
22 //_________________
24  // Copy constructor
25  mId = v.mId;
26  mNoDaughters = v.mNoDaughters;
27  mIdParTrk = v.mIdParTrk;
28  mIsInterm = v.mIsInterm;
29  mTime = v.mTime;
30  mVx = v.mVx;
31  mVy = v.mVy;
32  mVz = v.mVz;
33 }
34 
35 //_________________
37  // Destructor
38  /* empty */
39 }
40 
41 //_________________
42 void StPicoMcVertex::Print(const Char_t* option __attribute__((unused))) const {
43  LOG_INFO << "id: " << id() << " nDaughters: " << numberOfDaughters()
44  << " parTrkId: " << idOfParentTrack() << " isInterim: " << isIntermediate()
45  << " time: " << time()
46  << Form(" x/y/z: %5.2f/%5.2f/%5.2f\n",
47  position().X(), position().Y(), position().Z()) << endm;
48 }
Holds information about Monte Carlo vertex.
virtual ~StPicoMcVertex()
Destructor.
Int_t idOfParentTrack() const
ID of the parent track.
virtual void Print(const Char_t *option="") const
Print MC vertex parameters.
Int_t numberOfDaughters() const
Return number of daughters.
Float_t time() const
Production time.
Int_t isIntermediate() const
Return if intermediate vertex.
StPicoMcVertex()
Default constructor.
TVector3 position() const
Vertex position.
Int_t id() const
Return ID of the vertex.