9 #include "StMuPrimaryVertex.h"
10 #include "StEvent/StPrimaryVertex.h"
11 #include "StEventUtilities/StuRefMult.hh"
12 #include "StEventUtilities/StuFtpcRefMult.hh"
18 mFlag = vertex->flag();
19 mPosition = vertex->position();
20 mPosError = vertex->positionError();
21 mVertexFinderId = vertex->vertexFinderId();
22 mRanking = vertex->ranking();
23 mNTracksUsed = vertex->numTracksUsedInFinder();
24 mNBTOFMatch = vertex->numMatchesWithBTOF();
25 mNCTBMatch = vertex->numMatchesWithCTB();
26 mNBEMCMatch = vertex->numMatchesWithBEMC();
27 mNEEMCMatch = vertex->numMatchesWithEEMC();
29 mNBTOFNotMatch = vertex->numNotMatchesWithBTOF();
30 mNCTBNotMatch = vertex->numNotMatchesWithCTB();
31 mNBEMCNotMatch = vertex->numNotMatchesWithBEMC();
32 mNEEMCNotMatch = vertex->numNotMatchesWithEEMC();
34 mNCrossCentralMembrane = vertex->numTracksCrossingCentralMembrane();
35 mNTpcWestOnly = vertex->numTracksTpcWestOnly();
36 mNTpcEastOnly = vertex->numTracksTpcEastOnly();
37 mNTracksWithPromptHit = vertex->numTracksWithPromptHit();
38 mNPostXTracks = vertex->numPostXTracks();
39 mSumTrackPt = vertex->sumOfTrackPt();
40 mMeanDip = vertex->meanDip();
41 mChiSquared = vertex->chiSquared();
42 mNTracks = vertex->numberOfDaughters();
43 mRefMultPos = uncorrectedNumberOfPositivePrimaries(vertex);
44 mRefMultNeg = uncorrectedNumberOfNegativePrimaries(vertex);
45 mRefMultFtpcEast = uncorrectedNumberOfFtpcEastPrimaries(vertex);
46 mRefMultFtpcWest = uncorrectedNumberOfFtpcWestPrimaries(vertex);
48 mIdTruth = vertex->idTruth();
49 mQuality = vertex->qaTruth();
50 mIdParent = vertex->idParent();
54 cout <<
"Vertex position " << mPosition << endl;
55 cout <<
" errors " << mPosError << endl;
56 cout <<
"Rank " << mRanking << endl;
57 cout <<
"Chisquared " << mChiSquared << endl;
58 cout <<
"RefMult " << refMult() <<
" ( pos " << mRefMultPos <<
", neg "
59 << mRefMultNeg <<
" )" << endl;
60 cout <<
"Tracks used " << mNTracksUsed << endl;
61 cout <<
"Mean dip " << mMeanDip << endl;
66 const Char_t *
beam = (v.isBeamConstrained()) ?
"B" :
" ";
67 os << Form(
"%1s:",beam);
68 if (v.nPostXtracks() < 10) os << Form(
"%i/",v.nPostXtracks());
70 if (v.nPromptTracks() < 10) os << Form(
"%i/",v.nPromptTracks());
72 if (v.nCrossCentralMembrane() < 10) os << Form(
"%i/",v.nCrossCentralMembrane());
74 if ((v.nBEMCMatch()+v.nBTOFMatch()) < 10) os << Form(
"%i/",(v.nBEMCMatch()+v.nBTOFMatch()));
76 if ((v.nBEMCMatch()+v.nEEMCMatch()) < 10) os << Form(
"%i/",(v.nBEMCMatch()+v.nEEMCMatch()));
78 if (v.nTpcWestOnly() < 10) os << Form(
"%i/",v.nTpcWestOnly());
80 if (v.nTpcEastOnly() < 10) os << Form(
"%i",v.nTpcEastOnly());
82 os << Form(
" %8.3f+/-%6.3f %8.3f+/-%6.3f %8.3f+/-%6.3f",
83 v.position().x(),v.posError().x(),
84 v.position().y(),v.posError().y(),
85 v.position().z(),v.posError().z());
86 os << Form(
" Rank:%7.0f",v.ranking());
88 os << Form(
" M:%4i",v.noTracks());
90 os << Form(
" U:%4i ",v.nTracksUsed());
92 os << Form(
" QA:%3i",v.qaTruth());
virtual void Print(Option_t *option="") const
Print essential vertex info.