7 #include "StBbcVertexMaker.h"
10 #include "TClonesArray.h"
11 #include "StL0Trigger.h"
12 #include "StEventInfo.h"
13 #include "StEventSummary.h"
14 #include "StarClassLibrary/StThreeVectorF.hh"
15 #include "StMuDSTMaker/COMMON/StMuEvent.h"
16 #include "StMuDSTMaker/COMMON/StMuTrack.h"
17 #include "StMuDSTMaker/COMMON/StMuDstMaker.h"
18 #include "StMuDSTMaker/COMMON/StMuTriggerIdCollection.h"
19 #include "StEvent/StTriggerId.h"
21 #include <StMessMgr.h>
37 StBbcVertexMaker::~StBbcVertexMaker(){
44 Int_t StBbcVertexMaker::InitRun(
int runNo){
51 Int_t StBbcVertexMaker::Init(){
54 return StMaker::Init();
72 if( !unpackMuTrig())
return kStOK;
84 bool StBbcVertexMaker::unpackMuTrig(){
94 if(unixTime0==0) unixTime0=unixTime;
102 if( fabs(ver.x())<0.000001 &&fabs(ver.y())<0.000001 &&fabs(ver.z())<0.000001 ) {
108 vector<unsigned int> trgId=oflTrgId.triggerIds();
114 for(i = 0; i < trgId.size() ; i++){
117 if(trgId[i]==10) isGood=
true;
118 if(trgId[i]==45010) isGood=
true;
122 if(!isGood)
return false;
125 for(i=0;i<mxHex;i++) {
126 hex[0][i]->setHit(bbc.tdc(i),bbc.adc(i));
127 hex[1][i]->setHit(bbc.tdc(i+24),bbc.adc(i+24));
130 onlTdiff=bbc.onlineTimeDifference ();
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)
Axample to access muDst and pass it to ezTree analyzis class.
Collection of trigger ids as stored in MuDst.