#ifndef _DRIEMANN_FIT_H_ #define _DRIEMANN_FIT_H_ #include using namespace std; #include #include "JANA/jerror.h" typedef struct{ double x,y,z; ///< point in lab coordinates double covx,covy,covxy; ///< error info for x and y coordinates }DRiemannHit_t; class DRiemannFit{ public: DRiemannFit(){ CovR_=NULL; CovRPhi_=NULL; hits.clear(); projections.clear(); }; ~DRiemannFit(){ if (CovR_!=NULL) delete CovR_; if (CovRPhi_!=NULL) delete CovRPhi_; for (unsigned int i=0;ihits; vectorprojections; DMatrix *CovR_; DMatrix *CovRPhi_; // Cirlce fit parameters double N[3]; double varN[3][3]; double dist_to_origin; double xavg[3],var_avg; }; #endif //_DRIEMANN_FIT_H_