51 #include "StHelixModel.h"
52 #include "StThreeVectorF.hh"
53 #include "SystemOfUnits.h"
54 #include "PhysicalConstants.h"
58 static const
char rcsid[] = "$Id:
StHelixModel.cxx,v 2.12 2009/11/23 16:34:06 fisyak Exp $";
69 StHelixModel::StHelixModel(
short q,
float psi,
float c,
float dip,
81 StHelixModel::~StHelixModel() { }
84 StHelixModel::copy()
const {
return new StHelixModel(*
this); }
87 StHelixModel::model()
const {
return mModel;}
90 StHelixModel::charge()
const {
return mCharge;}
93 StHelixModel::helicity()
const {
return mHelicity;}
96 StHelixModel::curvature()
const {
return mCurvature;}
99 StHelixModel::psi()
const {
return mPsi;}
102 StHelixModel::dipAngle()
const {
return mDipAngle;}
105 StHelixModel::origin()
const {
return mOrigin;}
108 StHelixModel::momentum()
const {
return mMomentum;}
111 StHelixModel::helix()
const
119 double curvature = mCurvature;
120 if (mCharge == 0) curvature = 0;
143 else if (mCharge > 0)
151 if (mCharge == 0) h = 1;
153 double phase = mPsi-h*pi/2;
163 StHelixModel::setCharge(
short val) { mCharge = val; }
166 StHelixModel::setHelicity(
short val) { mHelicity = val; }
169 StHelixModel::setCurvature(
double val) { mCurvature = val; }
172 StHelixModel::setPsi(
double val) { mPsi = val; }
175 StHelixModel::setDipAngle(
double val) { mDipAngle = val; }
178 StHelixModel::setOrigin(
const StThreeVectorF& val) { mOrigin = val; }
181 StHelixModel::setMomentum(
const StThreeVectorF& val) { mMomentum = val; }