13 #include "StPicoDstVtxSeedMaker.h"
14 #include "StPicoDstMaker/StPicoDstMaker.h"
15 #include "StPicoEvent/StPicoDst.h"
16 #include "StPicoEvent/StPicoEvent.h"
17 #include "StPicoEvent/StPicoTrack.h"
18 #include "StMessMgr.h"
30 gMessMgr->Error(
"StPicoDstVtxSeedMaker: No StPicoDstMaker(\"PicoDst\") found!");
33 picodst = picodstMaker->
picoDst();
35 gMessMgr->Error(
"StPicoDstVtxSeedMaker: No PicoDst found!");
38 event = picodst->
event();
40 gMessMgr->Error(
"StPicoDstVtxSeedMaker: No PicoEvent found!");
47 bool StPicoDstVtxSeedMaker::CheckTriggers() {
51 vector<unsigned int> idVec =
event->triggerIds();
52 for (
unsigned int iTrg = 0;
53 (notTrig) && (iTrg < idVec.size()) ; iTrg++) {
54 if (ValidTrigger(idVec[iTrg])) notTrig = kFALSE;
59 int StPicoDstVtxSeedMaker::GetEventData() {
62 fill =
event->fillId();
66 TVector3 pvert =
event->primaryVertex();
67 TVector3 epvert =
event->primaryVertexError();
71 eyvertex = epvert.y();
72 exvertex = epvert.x();
74 vpd_zvertex =
event->vzVpd();
76 rank =
event->ranking();
88 if (primTrk->
isHft()) hmatch++;
101 Packer( 3,3,ematch,0);
107 Packer( 9,2,cmatch,0);
110 Packer(11,3,hmatch,hmatch);
113 Packer(14,2,pmatch,0);
121 void StPicoDstVtxSeedMaker::PrintInfo() {
122 LOG_INFO <<
"\n**************************************************************"
123 <<
"\n* $Id: StPicoDstVtxSeedMaker.cxx,v 1.3 2018/08/02 04:08:09 genevb Exp $"
124 <<
"\n**************************************************************" << endm;
126 if (Debug()) StVertexSeedMaker::PrintInfo();
Bool_t isPrimary() const
Return if track is primary.
Class that converts MuDst into PicoDst.
UShort_t nBTOFMatch() const
Return number of tracks that matched TOF.
Bool_t isHft() const
Return if trach has hit in HFT.
static StPicoEvent * event()
Return pointer to current StPicoEvent (class holding the event wise information)
UShort_t nBEMCMatch() const
Return number of tracks that matched BEMC.
Holds information about track parameters.
static UInt_t numberOfTracks()
Return number of tracks.
StPicoDst * picoDst()
Returns null pointer if no StPicoDst.
static StPicoTrack * track(Int_t i)
Return pointer to i-th track.
BeamLine Constraint calibration base class.