12 #ifndef __STESTRUCTPYTHIA__H
13 #define __STESTRUCTPYTHIA__H
15 #include "StEStructPool/AnalysisMaker/StEStructEventReader.h"
37 bool isTrackGood(
int i);
38 int countGoodTracks();
53 bool setInChain(
bool inChain);
55 bool measureable(
int pid);
56 float* globalDCA(
float* p,
float* v);
61 virtual double getNPartonic();
68 inline bool StEStructPythia::done(){
return mAmDone; };
69 inline bool StEStructPythia::setInChain(
bool inChain) {
73 inline bool StEStructPythia::InChain(){
return mInChain; };
75 inline bool StEStructPythia::measureable(
int pid){
143 inline float* StEStructPythia::globalDCA(
float* p,
float* v){
146 float* r=
new float[4];
147 r[0]=r[1]=r[2]=r[3]=0;
150 float a = v[0] * p[0] + v[1] * p[1] + v[2] * p[2] ;
151 a = a / sqrt(p[0]*p[0] + p[1]*p[1] + p[2]*p[2]);
153 r[3] = sqrt(v[0]*v[0] + v[1]*v[1] + v[2]*v[2] - a*a);