#ifndef _RESIDCDC_H_ #define _RESIDCDC_H_ #include "CDC/DCDCTrackHit.h" #include "MyTrajectory.h" #include "DLine.h" class residCDC { public: residCDC(vector *trackhits, const MyTrajectory *trajectory, int level = 1); void calcResids(); void setInnerResidFrac(double innerResidFracIn); void getResids(vector &residsRef); void getDetails(vector &docasRef, vector &distsRef, vector &errorsRef, vector &pocasRef, vector &posWiresRef); private: unsigned int n_cdc; vector *trkhitVectorPtr; const MyTrajectory *trajPtr; DLine trackhit2line(const DCDCTrackHit &trackhit); int debug_level; double innerResidFrac; vector doca, dist, resid, error; vector poca; vector posWire; double errorCDC; }; #endif // _RESIDCDC_H_ // end of C++ source