6 gROOT->Macro(
"loadMuDst.C");
8 mudst_mk=
new StMuDstMaker(0,0,
"/star/data15/reco/productionMinBias/ReversedFullField/P05ia/2004/064/",
"st_physics_5064011_raw_3010002.MuDst.root");
12 for (Int_t i_evt=0; i_evt<n_evt; i_evt++) {
14 if (mudst_mk->muDst()==0) {
15 cout <<
"No event" << endl;
18 StMuEvent *
event=mudst_mk->muDst()->event();
20 cout <<
"Event: " <<
event->eventId() << endl;
22 cout <<
"Vertex at " << vtx_pos.x() <<
" " << vtx_pos.y() <<
" " << vtx_pos.z() << endl;
23 Int_t n_prim=mudst_mk->muDst()->GetNPrimaryTrack();
24 Int_t n_glob=mudst_mk->muDst()->GetNGlobalTrack();
25 cout << n_prim <<
"primary tracks and " << n_glob <<
" global tracks "<< endl;
26 Int_t prim_step=n_prim/100;
30 while (i_prim < n_prim) {
31 StMuTrack *pr_track=mudst_mk->muDst()->primaryTracks(i_prim);
32 cout <<
"Primary track " << i_prim <<
" momentum " << pr_track->
p() << endl;
33 cout <<
"\t flag " << pr_track->
flag() <<
" " << pr_track->
nHits()
34 <<
" hits ( " << pr_track->
topologyMap()->numberOfHits(kSvtId)
35 <<
" svt, " << pr_track->
topologyMap()->numberOfHits(kTpcId)
36 <<
" tpc, " << pr_track->
topologyMap()->numberOfHits(kFtpcWestId) +
39 cout <<
"\t fitted points " << pr_track->
nHitsFit() <<
" ( "
40 << pr_track->
nHitsFit(kSvtId) <<
" svt, "
41 << pr_track->
nHitsFit(kSsdId) <<
" ssd, "
42 << pr_track->
nHitsFit(kTpcId) <<
" tpc, "
43 << pr_track->
nHitsFit(kFtpcEastId) <<
" Ftpc east, "
44 << pr_track->
nHitsFit(kFtpcWestId) <<
" Ftpc west)" << endl;
45 cout <<
"\t possible points " << pr_track->
nHitsPoss() <<
" ( "
46 << pr_track->
nHitsPoss(kSvtId) <<
" svt, "
47 << pr_track->
nHitsPoss(kSsdId) <<
" ssd, "
48 << pr_track->
nHitsPoss(kTpcId) <<
" tpc, "
49 << pr_track->
nHitsPoss(kFtpcEastId) <<
" Ftpc east, "
50 << pr_track->
nHitsPoss(kFtpcWestId) <<
" Ftpc west)" << endl;
52 cout <<
"\t first point " << pr_track->
firstPoint() << endl;
53 cout <<
"\t last point " << pr_track->
lastPoint() << endl;
54 cout <<
"\t inner helix origin " << pr_track->
helix().
origin() << endl;
55 cout <<
"Pid probabilities ";
56 for (Int_t i=0; i<7; i++)
60 cout <<
"Global track momentum " << gl_track->
p() << endl;
61 cout <<
"\t first point " << gl_track->
firstPoint() << endl;
62 cout <<
"\t last point " << gl_track->
lastPoint() << endl;
63 cout <<
"\t inner helix origin " << gl_track->
helix().
origin() << endl;
64 cout <<
"Pid probabilities ";
65 for (Int_t i=0; i<7; i++)
StMuDstMaker(const char *name="MuDst")
Default constructor.
double probability(unsigned int i) const
returns the probability of the track being of particle type i
StPhysicalHelixD helix() const
Returns inner helix (first measured point)
UShort_t nHitsFit() const
Return total number of hits used in fit.
short flag() const
Returns flag, (see StEvent manual for type information)
const StThreeVectorF & p() const
Returns 3-momentum at dca to primary vertex.
const StThreeVectorF & firstPoint() const
Returns positions of first measured point.
const StMuProbPidTraits & probPidTraits() const
Returns Yuri Fisyak new pid probabilities.
const StThreeVector< double > & origin() const
-sign(q*B);
UShort_t nHitsPoss() const
Return number of possible hits on track.
UShort_t nHits() const
Bingchu.
const StThreeVectorF & lastPoint() const
Returns positions of last measured point.
const StMuTrack * globalTrack() const
Returns pointer to associated global track. Null pointer if no global track available.
StTrackTopologyMap topologyMap() const
Returns topology map.