56 #include "StPrimaryTrack.h"
57 #include "StPrimaryVertex.h"
58 #include "StTrackGeometry.h"
61 static const
char rcsid[] = "$Id:
StPrimaryTrack.cxx,v 2.15 2013/07/23 11:21:49 jeromel Exp $";
63 const StVertex* StPrimaryTrack::vertex()
const{
return mVertex; }
64 void StPrimaryTrack::setVertex(
StVertex* val) {
69 void StPrimaryTrack::Streamer(TBuffer &R__b)
73 if (R__b.IsReading()) {
75 Version_t R__v = R__b.ReadVersion(&R__s, &R__c);
77 Class()->ReadBuffer(R__b,
this, R__v, R__s, R__c);
81 StTrack::Streamer(R__b);
86 R__b.CheckByteCount(R__s, R__c, Class());
90 Class()->WriteBuffer(R__b,
this);
96 Double_t charge =
track.geometry()->charge();
98 os << Form(
" q/pT %8.3f eta %8.3f phi %8.3f",
99 charge/g3.perp(),g3.pseudoRapidity(),g3.phi());
100 os << Form(
" pxyz %8.3f%8.3f%8.3f",g3.x(),g3.y(),g3.z());
101 Double_t chi2_0 =
track.fitTraits().chi2(0);
if (chi2_0 > 9999.) chi2_0 = 9999.;
102 Double_t chi2_1 =
track.fitTraits().chi2(1);
if (chi2_1 > 9999.) chi2_1 = 9999.;
103 os << Form(
" NF %2d chi2 %8.3f/%8.3f",
track.fitTraits().numberOfFitPoints(),chi2_0,chi2_1);
106 os << Form(
" IdT:%5i Q:%3i",
track.idTruth(),
track.qaTruth());