1 #include "StFwdTrack.h"
2 #include "StEvent/StFcsCluster.h"
3 #include "St_base/StMessMgr.h"
5 StFwdTrack::StFwdTrack() {
14 return mPrimaryMomentum;
21 if ( _id >= mProjections.size() )
24 return mProjections[_id].mMom;
27 char StFwdTrack::charge()
const{
31 bool StFwdTrack::didFitConverge()
const {
32 return mDidFitConverge;
35 bool StFwdTrack::didFitConvergeFully()
const {
36 return mDidFitConvergeFully;
39 short StFwdTrack::numberOfFailedPoints()
const {
40 return mNumberOfFailedPoints;
43 double StFwdTrack::chi2()
const {
47 double StFwdTrack::ndf()
const {
51 double StFwdTrack::pval()
const {
55 short StFwdTrack::numberOfFitPoints()
const {
56 return mNumberOfFitPoints;
59 short StFwdTrack::numberOfSeedPoints()
const {
60 return mNumberOfSeedPoints;
64 StPtrVecFcsCluster& StFwdTrack::ecalClusters() {
return mEcalClusters; }
65 const StPtrVecFcsCluster& StFwdTrack::ecalClusters()
const {
return mEcalClusters; }
66 void StFwdTrack::addEcalCluster(
StFcsCluster* p){mEcalClusters.push_back(p);}
67 void StFwdTrack::sortEcalClusterByET() {
69 return b->fourMomentum().perp() < a->fourMomentum().perp();
73 StPtrVecFcsCluster& StFwdTrack::hcalClusters() {
return mHcalClusters; }
74 const StPtrVecFcsCluster& StFwdTrack::hcalClusters()
const {
return mHcalClusters; }
75 void StFwdTrack::addHcalCluster(
StFcsCluster* p){mHcalClusters.push_back(p);}
76 void StFwdTrack::sortHcalClusterByET() {
78 return b->fourMomentum().perp() < a->fourMomentum().perp();
86 for (
auto proj : mProjections ){
87 if (proj.mDetId == detectorId){