#ifndef _FILEMANAGER_H_ #define _FILEMANAGER_H_ #define BAD_DETECTOR_INDEX 1 #include #include #include #include "hddm_fitter.h" #include "eventInterface.h" using namespace std; class fileManager { public: fileManager(string filename_in); ~fileManager(); int getNextEvent(int &runNumber, int &eventNumber); void readFDCData(hitInfoFDC_t *hitsFDC, int &nhitsFDC); void readCDCData(hitInfoCDC_t *hitsCDC, int &nhitsCDC); void readResiduals(residInfoCDC_t *residsCDC, int &nresidsCDC, residInfoFDC_t *residsFDC, int &nresidsFDC); void readTrajectoryData(pointInfo_t *points, int &npoints); void readInfo(eventInfo_t* infoPtr); private: fitter_iostream_t *filePtr; fitter_HDDM_t *bufferPtr; fitter_Event_t event; fitter_Fdchits_t *fdchitsPtr; fitter_Fdchit_t *fdchitAry; fitter_Cdchits_t *cdchitsPtr; fitter_Cdchit_t *cdchitAry; fitter_Tracks_t *tracksPtr; fitter_Track_t *trackAry; }; #endif // _FILEMANAGER_H_