13 #include "StEvtVtxSeedMaker.h"
14 #include "StEventTypes.h"
15 #include "StMessMgr.h"
16 #include "StDetectorDbMaker/St_tpcPadConfigC.h"
26 event =
static_cast<StEvent*
>(GetInputDS(
"StEvent"));
28 gMessMgr->Error(
"StEvtVtxSeedMaker: No StEvent found!");
33 for (pvn=0; pvn<
event->numberOfPrimaryVertices(); pvn++) {
35 if (result !=
kStOk)
break;
41 bool StEvtVtxSeedMaker::CheckTriggers() {
49 vector<unsigned int> idVec = tr->triggerIds();
50 for (
unsigned int iTrg = 0;
51 (notTrig) && (iTrg < idVec.size()) ; iTrg++) {
52 if (ValidTrigger(idVec[iTrg])) notTrig = kFALSE;
59 int StEvtVtxSeedMaker::GetEventData() {
63 gMessMgr->Error(
"StEvtVtxSeedMaker: No primary vertex from StEvent!");
68 zdc = (float) (runInfo->zdcCoincidenceRate());
69 fill = (int) (runInfo->beamFillNumber(blue));
70 run = runInfo->runId();
72 timeEvent =
event->time();
79 eyvertex = epvert.y();
80 exvertex = epvert.x();
82 rank = primVtx->ranking();
86 for (
unsigned int trkn=0; trkn<primVtx->numberOfDaughters(); trkn++) {
87 StTrack* primTrk = primVtx->daughter(trkn);
88 if (!(primTrk->bad())) {
94 if (fitTraits.numberOfFitPoints(kPxlId) +
95 fitTraits.numberOfFitPoints(kIstId) +
96 fitTraits.numberOfFitPoints(kSsdId))
101 StPtrVecHit hits = primTrk->detectorInfo()->hits(kTpcId);
102 for (
unsigned int hitn=0; hitn<hits.size(); hitn++) {
105 int mask = 1<<(hit->sector()-1);
106 if (hit->padrow() <= St_tpcPadConfigC::instance()->innerPadRows(hit->sector())) itpc |= mask;
112 const StBTofHeader* btofHeader = (btofColl ? btofColl->tofHeader() : 0);
113 vpd_zvertex = (btofHeader ? btofHeader->vpdVz() : -999);
119 Packer( 0,3,bmatch,primVtx->numMatchesWithBEMC());
122 Packer( 3,3,ematch,primVtx->numMatchesWithEEMC());
125 Packer( 6,3,tmatch,primVtx->numMatchesWithBTOF());
128 Packer( 9,2,cmatch,primVtx->numTracksCrossingCentralMembrane());
131 Packer(11,3,hmatch,hmatch);
134 Packer(14,2,pmatch,primVtx->numTracksWithPromptHit());
137 Packer(16,3,pct ,primVtx->numPostXTracks());
142 void StEvtVtxSeedMaker::PrintInfo() {
143 LOG_INFO <<
"\n**************************************************************"
144 <<
"\n* $Id: StEvtVtxSeedMaker.cxx,v 1.15 2018/04/11 02:43:21 smirnovd Exp $"
145 <<
"\n**************************************************************" << endm;
147 if (Debug()) StVertexSeedMaker::PrintInfo();
Collection of trigger ids as stored in StEvent.
BeamLine Constraint calibration base class.