23 #include "StKinkMc.hh"
24 #include "StMcVertex.hh"
25 #include "StMcTrack.hh"
36 mDecayMode = StDecayMode::Instance()->
Process(mcVertex);
38 mParentGeantId = mcVertex->parent()->geantId();
39 mDaughterGeantId = mcDaughterTrack->geantId();
40 mParentMomentumX = 0.;
41 mParentMomentumY = 0.;
42 mParentMomentumZ = 0.;
43 for (
unsigned int i=0; i < mcVertex->numberOfDaughters(); i++) {
44 mParentMomentumX += mcVertex->daughter(i)->momentum().x();
45 mParentMomentumY += mcVertex->daughter(i)->momentum().y();
46 mParentMomentumZ += mcVertex->daughter(i)->momentum().z();
48 mParentPrimMomentumX = mcVertex->parent()->momentum().x();
49 mParentPrimMomentumY = mcVertex->parent()->momentum().y();
50 mParentPrimMomentumZ = mcVertex->parent()->momentum().z();
51 mDaughterMomentumX = mcDaughterTrack->momentum().x();
52 mDaughterMomentumY = mcDaughterTrack->momentum().y();
53 mDaughterMomentumZ = mcDaughterTrack->momentum().z();
54 mPositionX = mcVertex->position().x();
55 mPositionY = mcVertex->position().y();
56 mPositionZ = mcVertex->position().z();
58 mSimTpcHits = mcDaughterTrack->tpcHits().size();
64 Int_t StKinkMc::parentCharge()
const {
65 return (StDecayMode::Instance()->ParentCharge(mDecayMode));
Monte Carlo Track class All information on a simulated track is stored in this class: kinematics...
Int_t Process(StMcVertex *mcVertex)