12 #ifndef __STESTRUCTFLAT__H
13 #define __STESTRUCTFLAT__H
16 #include "StEStructPool/AnalysisMaker/StEStructEventReader.h"
34 double maxRadius(
double eta,
double pt,
double vz);
35 bool isTrackGood(
float *v,
float *p,
float eta);
36 int countGoodTracks();
52 void setSeed(
int iseed);
54 bool measureable(
int pid);
55 float* globalDCA(
float* p,
float* v);
66 inline bool StEStructFlat::done(){
return mAmDone; };
68 inline bool StEStructFlat::measureable(
int pid){
102 inline float* StEStructFlat::globalDCA(
float* p,
float* v){
105 float* r=
new float[4];
106 r[0]=r[1]=r[2]=r[3]=0;
114 float x = -1.0*(a*v[1])/(a*a+1);
120 float ax = p[0]/p[2];
121 float ay = p[1]/p[2];
122 float z = -1.0*(ax*v[0]+ay*v[1])/(ax*ax+ay*ay+1);
125 r[0]=x; r[1]=y; r[2]=z;
126 r[3]=sqrt(x*x+y*y+z*z);