4 #include <StMuDSTMaker/COMMON/StMuDstMaker.h>
5 #include <StMuDSTMaker/COMMON/StMuDst.h>
6 #include <StMuDSTMaker/COMMON/StMuEvent.h>
8 #include <StTriggerUtilities/StTriggerSimuMaker.h>
9 #include <StTriggerUtilities/StTriggerSimuResult.h>
10 #include <StTriggerUtilities/Bemc/StBemcTriggerSimu.h>
13 #include <TDirectory.h>
27 :
StMaker(name), _file(file), _uDstMaker(uDstMaker), _trgID(trgID)
32 const char* GetCVS()
const
33 {
static const char cvs[]=
"Tag $Name: $ $Id: StjSimuBBCMaker.C,v 1.3 2014/08/06 11:43:24 jeromel Exp $ built " __DATE__
" " __TIME__;
return cvs;}
54 _tree =
new TTree(
"simuBBC",
"simuBBC");
55 _tree->Branch(
"runNumber" , &_runNumber ,
"runNumber/I" );
56 _tree->Branch(
"eventId" , &_eventId ,
"eventId/I" );
57 _tree->Branch(
"bbc" , &_bbc ,
"bbc/I" );
58 _tree->Branch(
"vertexZ" , &_vertexZ ,
"vertexZ/D" );
64 _runNumber = _uDstMaker->muDst()->event()->runId();
65 _eventId = _uDstMaker->muDst()->event()->eventId();
66 _vertexZ = _uDstMaker->muDst()->event()->primaryVertexPosition().z();
71 _bbc = trigResult.bbcDecision();
79 _tree->BuildIndex(
"runNumber",
"eventId");
const StTriggerSimuResult & detailedResult(int trigId)
returns object containing detailed information about simulation of given trigger