24 #include "StExtGeometry.h"
29 static const
char rcsid[] = "$Id:
StExtGeometry.cxx,v 2.2 2017/05/04 00:56:43 perev Exp $";
34 memset(mName,0,mEnd-mName+1);
39 StExtGeometry::~StExtGeometry() {}
43 float x = mRxy*cos(mPhi);
44 float y = mRxy*sin(mPhi);
52 float x = ptt*cos(mPsi);
53 float y = ptt*sin(mPsi);
58 void StExtGeometry::setName(
const char *name)
60 int n = strlen(name);
if (n>7) n=7;
61 strncpy(mName,name,n);mName[n]=0;
65 void StExtGeometry::set(
double rXY,
const double pars[7],
const double errs[15])
68 if (pars) {TCL::ucopy(pars, &mPhi, 6);}
69 if (errs) {TCL::ucopy(errs, mG, 15);}
else {TCL::vzero(mG,15);}
76 int h = (mCurv>=0) ? 1:-1;
78 double phase = mPsi-h*M_PI/2;
90 enum {kImp,kZ,kPsi,kPti,kTan};
102 for(;(lExt=*kadd);kadd = &(lExt->mNext)) {
if (mRxy<lExt->rxy())
break;}
103 *kadd =
this; this->mNext = lExt;