// iklm #include "MainStap.h" #include "Algo/L1AlgoInter.h" #include "Performance/Performance.h" /// init members and run AlgoInter.Init /// @param _maxNEvent - number of all analyse event /// @param _work_dir - first part of path in witch is read and write files (data_perfo.txt, data_algo.txt, geo_algo.txt) /// @param _iVerbose - level of detailed of info void MainStap::Init(int _maxNEvent, const char* _work_dir, int _iVerbose) { if (_iVerbose >= 1) cout << " -I- run MainStap::Init()" << endl; maxNEvent = _maxNEvent; strcpy (work_dir,_work_dir); iVerbose = _iVerbose; // algoInter = new L1AlgoInter(); algoInter = mmmalloc16(); algoInter->Init(_maxNEvent, _work_dir, _iVerbose); perfo = new Performance; // TODO: razobrat'sia pochemu nuzhny raznye varianty vydelenija pamiati. // perfo = mmmalloc16(); perfo->Init(_work_dir, algoInter); // cout << " void MainStap::Init(int _maxNEvent, const char* _work_dir, int _iVerbose) done " << endl; } /// run algo, copy track data from algo to perfo, run perfo void MainStap::Run() { // analysys of events for (nEvent = 1; nEvent <= maxNEvent; nEvent++){ // cout << 1 << endl; algoInter->RunEv(); // cout << 2 << endl; perfo->RunEv(); // cout << 3 << endl; }; // nEvent // perfo->WriteHisto(); }