13 #include "StMuDstVtxSeedMaker.h"
14 #include "StMuDSTMaker/COMMON/StMuDstMaker.h"
15 #include "StMuDSTMaker/COMMON/StMuDst.h"
16 #include "StMuDSTMaker/COMMON/StMuEvent.h"
17 #include "StMuDSTMaker/COMMON/StMuPrimaryVertex.h"
18 #include "StMuDSTMaker/COMMON/StMuTrack.h"
19 #include "StBTofHeader.h"
20 #include "StMessMgr.h"
32 gMessMgr->Error(
"StMuDstVtxSeedMaker: No StMuDstMaker(\"MuDst\") found!");
35 mudst = mudstMaker->
muDst();
37 gMessMgr->Error(
"StMuDstVtxSeedMaker: No MuDst found!");
40 event = mudst->
event();
42 gMessMgr->Error(
"StMuDstVtxSeedMaker: No MuEvent found!");
47 for (pvn=0; pvn<mudst->numberOfPrimaryVertices(); pvn++) {
49 if (result !=
kStOk)
break;
55 bool StMuDstVtxSeedMaker::CheckTriggers() {
61 vector<unsigned int> idVec = tr.triggerIds();
62 for (
unsigned int iTrg = 0;
63 (notTrig) && (iTrg < idVec.size()) ; iTrg++) {
64 if (ValidTrigger(idVec[iTrg])) notTrig = kFALSE;
69 int StMuDstVtxSeedMaker::GetEventData() {
73 gMessMgr->Error(
"StMuDstVtxSeedMaker: No primary vertex from StMuDst!");
77 zdc = (float) (runInfo.zdcCoincidenceRate());
78 fill = (int) (runInfo.beamFillNumber(blue));
79 run = runInfo.runId();
80 timeEvent =
event->eventInfo().time();
87 eyvertex = epvert.y();
88 exvertex = epvert.x();
91 vpd_zvertex = (btofHeader ? btofHeader->vpdVz() : -999);
94 rank = primVtx->ranking();
97 mult = mudst->numberOfPrimaryTracks();
102 for (
int trkn=0; trkn<mult; trkn++) {
117 Packer( 0,3,bmatch,primVtx->nBEMCMatch());
120 Packer( 3,3,ematch,primVtx->nEEMCMatch());
123 Packer( 6,3,tmatch,primVtx->nBTOFMatch());
126 Packer( 9,2,cmatch,primVtx->nCrossCentralMembrane());
129 Packer(11,3,hmatch,hmatch);
132 Packer(14,2,pmatch,primVtx->nPromptTracks());
135 Packer(16,3,pct ,primVtx->nPostXtracks());
140 void StMuDstVtxSeedMaker::PrintInfo() {
141 LOG_INFO <<
"\n**************************************************************"
142 <<
"\n* $Id: StMuDstVtxSeedMaker.cxx,v 1.15 2016/08/02 21:17:17 genevb Exp $"
143 <<
"\n**************************************************************" << endm;
145 if (Debug()) StVertexSeedMaker::PrintInfo();
static StMuPrimaryVertex * primaryVertex()
return pointer to current primary vertex
UShort_t nHitsFit() const
Return total number of hits used in fit.
static TObjArray * primaryTracks()
returns pointer to a list of tracks belonging to the selected primary vertex
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)
static StBTofHeader * btofHeader()
returns pointer to the btofHeader - dongx
BeamLine Constraint calibration base class.
static void setVertexIndex(Int_t vtx_id)
Set the index number of the current primary vertex (used by both primaryTracks() functions and for St...
Collection of trigger ids as stored in MuDst.