12 #ifndef __STESTRUCTQJ__H
13 #define __STESTRUCTQJ__H
17 #include "StEStructPool/AnalysisMaker/StEStructEventReader.h"
35 std::ifstream *inFile;
45 void setSeed(
int iseed);
47 bool measureable(
int pid);
48 float* globalDCA(
float* p,
float* v);
59 inline bool StEStructQJ::done(){
return mAmDone; };
61 inline bool StEStructQJ::measureable(
int pid){
95 inline float* StEStructQJ::globalDCA(
float* p,
float* v){
98 float* r=
new float[4];
99 r[0]=r[1]=r[2]=r[3]=0;
107 float x = -1.0*(a*v[1])/(a*a+1);
113 float ax = p[0]/p[2];
114 float ay = p[1]/p[2];
115 float z = -1.0*(ax*v[0]+ay*v[1])/(ax*ax+ay*ay+1);
118 r[0]=x; r[1]=y; r[2]=z;
119 r[3]=sqrt(x*x+y*y+z*z);