8 #include "StL3RareTrack.h"
10 #include "StEventTypes.h"
12 double dEdx_formula(
double momentum,
double mass);
36 mDca2d = track->impactParameter();
37 mNPntpossible = track->numberOfPossiblePoints();
38 mTracknumber = track->key();
39 mFlag = track->flag();
40 mNPntfit = track->detectorInfo()->numberOfPoints();
41 mChisqXY = track->fitTraits().chi2(0)/mNPntfit;
42 mChisqSZ = track->fitTraits().chi2(1)/mNPntfit;
43 mPx = track->geometry()->momentum().x();
44 mPy = track->geometry()->momentum().y();
45 mPz = track->geometry()->momentum().z();
46 mChargesign = track->geometry()->charge();
50 StSPtrVecTrackPidTraits& traits = track->pidTraits();
52 for (
unsigned int itrait = 0; itrait < traits.size(); itrait++){
54 if (traits[itrait]->detector() == kTpcId) {
57 if (dedxPidTr && dedxPidTr->method() == kTruncatedMeanId) {
59 mDedx = 2 * dedxPidTr->mean();
60 mNDedx = dedxPidTr->numberOfPoints();
68 float StL3RareTrack::dedxExpected(
float mass,
float charge)
const {
69 float real_mom = p()*charge;
70 float dedx = charge*charge*dEdx_formula(real_mom,mass);
74 void StL3RareTrack::SetTrigType(
int type) {mTrigType = type;}