StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjSpinMuDst.cxx
1 // $Id: StjSpinMuDst.cxx,v 1.1 2008/11/05 05:48:19 tai Exp $
2 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
3 #include "StjSpinMuDst.h"
4 
5 #include <StMuDSTMaker/COMMON/StMuDstMaker.h>
6 #include <StMuDSTMaker/COMMON/StMuDst.h>
7 #include <StMuDSTMaker/COMMON/StMuEvent.h>
8 
9 ClassImp(StjSpinMuDst)
10 
11 int StjSpinMuDst::runNumber()
12 {
13  return _uDstMaker->muDst()->event()->runId();
14 }
15 
16 int StjSpinMuDst::eventId()
17 {
18  return _uDstMaker->muDst()->event()->eventId();
19 }
20 
21 int StjSpinMuDst::bx7()
22 {
23  return _uDstMaker->muDst()->event()->l0Trigger().bunchCrossingId7bit( runNumber() );
24 }
25 
26 int StjSpinMuDst::bx48()
27 {
28  return _uDstMaker->muDst()->event()->l0Trigger().bunchCrossingId();
29 }
30 
31 int StjSpinMuDst::spin4()
32 {
33  return _uDstMaker->muDst()->event()->l0Trigger().spinBits( runNumber() );
34 }
35 
36 int StjSpinMuDst::bbcTimebin()
37 {
38  return _uDstMaker->muDst()->event()->bbcTriggerDetector().onlineTimeDifference()/32;
39 }
40 
41 double StjSpinMuDst::vertexZ()
42 {
43  return _uDstMaker->muDst()->event()->primaryVertexPosition().z();
44 }
45 
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