StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjVertexMuDst.cxx
1 // $Id: StjVertexMuDst.cxx,v 1.1 2008/08/13 19:37:20 tai Exp $
2 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
3 #include "StjVertexMuDst.h"
4 
5 #include <StMuDSTMaker/COMMON/StMuDstMaker.h>
6 #include <StMuDSTMaker/COMMON/StMuDst.h>
7 #include <StMuDSTMaker/COMMON/StMuEvent.h>
8 
9 ClassImp(StjVertexMuDst)
10 
11 int StjVertexMuDst::runNumber()
12 {
13  return _uDstMaker->muDst()->event()->runId();
14 }
15 
16 int StjVertexMuDst::eventId()
17 {
18  return _uDstMaker->muDst()->event()->eventId();
19 }
20 
21 double StjVertexMuDst::vertexZ()
22 {
23  return _uDstMaker->muDst()->event()->primaryVertexPosition().z();
24 }
25 
26 double StjVertexMuDst::vertexY()
27 {
28  return _uDstMaker->muDst()->event()->primaryVertexPosition().y();
29 }
30 
31 double StjVertexMuDst::vertexX()
32 {
33  return _uDstMaker->muDst()->event()->primaryVertexPosition().x();
34 }
StThreeVectorF primaryVertexPosition(int vtx_id=-1) const
The StMuDst is supposed to be structured in &#39;physical events&#39;. Therefore there is only 1 primary vert...
Definition: StMuEvent.cxx:221
StMuDst * muDst()
Definition: StMuDstMaker.h:425
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)
Definition: StMuDst.h:320