// Interface for L1Algo #ifndef _L1AlgoInter_h #define _L1AlgoInter_h #include "L1Algo/L1Algo.h" #include class L1AlgoInter{ public: L1Algo algo; // main algorinthm part - L1Algo int iVerbose; // level of detailed of info int maxNEvent; // number of all analyse event int nEvent; // number of current analysing event char work_dir[100]; // path to input and output files // static L1AlgoInter *Instance(){ return fInstance; } L1AlgoInter() {}; ~L1AlgoInter() {}; /// read event from file, run CATrackFinder, write event in file void RunEv(); /// init members and read geometry from file. /// @param _maxNEvent - number of all analyse event /// @param _work_dir - first part of path in witch read and write files (data_perfo.txt, data_algo.txt, geo_algo.txt) /// @param _iVerbose - level of detailed of info void Init(int _maxNEvent, const char* _work_dir, int _iVerbose = 0); private: // static L1AlgoInter *fInstance; /// read data from geo_algo.txt void ReadStAPGeoData(void* geo_, int &size); /// read data from data_algo.txt void ReadStAPAlgoData(); /// write reconstracted tracks and hits in file void WriteResults(); }; //============================================================================ #include "L1AlgoInter.cxx" // uncomment if don't use make #endif // #ifndef _L1AlgoInter_h