1 #include "StMuDSTMaker/COMMON/StMuTrack.h"
2 #include "StGammaTrack.h"
9 StGammaTrack::StGammaTrack()
40 StGammaTrack::~StGammaTrack()
51 static const pair<double, double> VALUE(999999999., 999999999.);
58 if(finite(ss.first) && finite(ss.second) && ss != VALUE)
63 if( (ss.first > 0 && ss.second > 0) || (ss.first >= 0 && ss.second < 0) )
67 else if(ss.first < 0 && ss.second >= 0)
77 return TVector3(0,0,0);
96 if (finite(s) && s != StHelix::NoSolution && s > 0)
103 return TVector3(0, 0, 0);
short type() const
Returns the track type: 0=global, 1=primary, etc (see StEvent manual for type information) ...
Int_t charge
track type 0=global 1=primary ...
Int_t flag
id of the track
StPhysicalHelix outerHelix
Returns inner helix (first measured point)
short id() const
Returns the track id(or key), is unique for a track node, i.e. global and primary tracks have the sam...
TVector3 momentum
energy loss in keV
pair< double, double > pathLength(double r) const
path length at given r (cylindrical r)
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)
Short_t charge() const
Returns charge.
const StThreeVector< double > & origin() const
-sign(q*B);
const StThreeVectorF & momentum() const
Returns 3-momentum at dca to primary vertex.
StPhysicalHelix helix
Distance of closest approach.
Float_t dEdx
nhits along track
Double_t dEdx() const
Returns measured dE/dx value.
TVector3 positionAtRadius(Double_t radius) const
Returns outer helix (last measured point)
TVector3 positionAtZ(Double_t z) const
Returns (0,0,0) if failed.
StThreeVectorF dcaGlobal(Int_t vtx_id=-1) const
Returns 3D distance of closest approach to primary vertex of associated global track.
StPhysicalHelixD outerHelix() const
Returns outer helix (last measured point)