3 #include "StjMCKinMuDst.h"
5 #include <StMuDSTMaker/COMMON/StMuDstMaker.h>
6 #include <StMuDSTMaker/COMMON/StMuDst.h>
7 #include <StMuDSTMaker/COMMON/StMuEvent.h>
9 #include "tables/St_g2t_event_Table.h"
10 #include "tables/St_particle_Table.h"
11 #include "tables/St_g2t_pythia_Table.h"
21 if(isNewEvent()) readNewEvent();
24 bool StjMCKinMuDst::isNewEvent()
const
26 if(_runNumber != _uDstMaker->
muDst()->
event()->runId())
return true;
27 if(_eventId != _uDstMaker->
muDst()->
event()->eventId())
return true;
31 void StjMCKinMuDst::readNewEvent()
const
33 _runNumber = _uDstMaker->
muDst()->
event()->runId();
34 _eventId = _uDstMaker->
muDst()->
event()->eventId();
40 St_g2t_pythia *Pg2t_pythia = (St_g2t_pythia *)geantDstI(
"g2t_pythia");
41 g2t_pythia_st *g2t_pythia1 = Pg2t_pythia->GetTable();
42 _s = g2t_pythia1->mand_s;
43 _t = g2t_pythia1->mand_t;
44 _u = g2t_pythia1->mand_u;
45 _pt = g2t_pythia1->hard_p;
46 _costh = g2t_pythia1->cos_th;
47 _x1 = g2t_pythia1->bjor_1;
48 _x2 = g2t_pythia1->bjor_2;
50 St_g2t_event *Pg2t_event = (St_g2t_event *)geantDstI(
"g2t_event");
51 g2t_event_st *g2t_event1 = Pg2t_event->GetTable();
52 _pid = g2t_event1->subprocess_id;
55 int StjMCKinMuDst::runNumber()
61 int StjMCKinMuDst::eventId()
67 double StjMCKinMuDst::vertexZ()
73 double StjMCKinMuDst::s()
79 double StjMCKinMuDst::t()
85 double StjMCKinMuDst::u()
91 double StjMCKinMuDst::pt()
97 double StjMCKinMuDst::costh()
103 double StjMCKinMuDst::x1()
109 double StjMCKinMuDst::x2()
115 int StjMCKinMuDst::pid()
StThreeVectorF primaryVertexPosition(int vtx_id=-1) const
The StMuDst is supposed to be structured in 'physical events'. Therefore there is only 1 primary vert...
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)