StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StV0Mc.cc
1 /***********************************************************************
2  *
3  * $Id: StV0Mc.cc,v 3.1 2001/05/04 20:15:14 genevb Exp $
4  * $Log: StV0Mc.cc,v $
5  * Revision 3.1 2001/05/04 20:15:14 genevb
6  * Common interfaces and reorganization of components, add MC event info
7  *
8  * Revision 3.0 2000/07/14 12:56:50 genevb
9  * Revision 3 has event multiplicities and dedx information for vertex tracks
10  *
11  * Revision 2.0 2000/06/05 05:19:45 genevb
12  * New version of Strangeness micro DST package
13  *
14  *
15  ***********************************************************************
16  *
17  * Description: Monte Carlo V0 micro dst class
18  *
19  ***********************************************************************/
20 #include "StV0Mc.hh"
21 #include "StMcVertex.hh"
22 #include "StMcTrack.hh"
23 #include "StDecayMode.hh"
24 
25 ClassImp(StV0Mc)
26 
27 StV0Mc::StV0Mc() : StV0I() {}
28 
29 StV0Mc::StV0Mc(StMcVertex* mcVertex, StMcTrack* mcPositiveTrack,
30  StMcTrack* mcNegativeTrack, StStrangeEvMuDst* mcEvent) : StV0I() {
31 
32  mEvent = mcEvent;
33 
34  mDecayMode = StDecayMode::Instance()->Process(mcVertex);
35 
36  mParentGeantId = mcVertex->parent()->geantId();
37  mPositiveGeantId = mcPositiveTrack->geantId();
38  mNegativeGeantId = mcNegativeTrack->geantId();
39 
40  mParentMomentumX = mcVertex->parent()->momentum().x();
41  mParentMomentumY = mcVertex->parent()->momentum().y();
42  mParentMomentumZ = mcVertex->parent()->momentum().z();
43 
44  mPositiveMomentumX = mcPositiveTrack->momentum().x();
45  mPositiveMomentumY = mcPositiveTrack->momentum().y();
46  mPositiveMomentumZ = mcPositiveTrack->momentum().z();
47  mPositiveCommonTpcHits = 0;
48  mPositiveSimTpcHits = mcPositiveTrack->tpcHits().size();
49 
50  mNegativeMomentumX = mcNegativeTrack->momentum().x();
51  mNegativeMomentumY = mcNegativeTrack->momentum().y();
52  mNegativeMomentumZ = mcNegativeTrack->momentum().z();
53  mNegativeCommonTpcHits = 0;
54  mNegativeSimTpcHits = mcNegativeTrack->tpcHits().size();
55 
56  mPositionX = mcVertex->position().x();
57  mPositionY = mcVertex->position().y();
58  mPositionZ = mcVertex->position().z();
59 }
60 
61 StV0Mc::~StV0Mc() {
62 }
Definition: StV0I.hh:31
Monte Carlo Track class All information on a simulated track is stored in this class: kinematics...
Definition: StMcTrack.hh:144
Definition: StV0Mc.hh:17
Int_t Process(StMcVertex *mcVertex)
Definition: StDecayMode.cc:84