6 #include "CbmRichRingFinderHough.h"
9 #include "tbb/tick_count.h"
11 int main(
int argc,
const char* argv[] )
13 cout <<
"-I- Start ring finder" << endl;
15 cout <<
"-I- Read data from text file" << endl;
17 std::ifstream fin(
"../data/events.txt");
21 std::vector<CbmRichHoughHit>
data;
22 std::vector< std::vector<CbmRichHoughHit> > dataAll;
24 for (
int iE = 0; iE < nofEvents; iE++){
25 fin >> evNum >> nhits;
26 cout <<
"event " << evNum <<
", nof hits = " << nhits <<endl;
28 for(
int iHit = 0; iHit < nhits; iHit++) {
36 data.push_back(tempPoint);
38 dataAll.push_back(data);
47 for (
int iE = 0; iE < dataAll.size(); iE++){
48 cout <<
"-I- Event:" << iE << endl;
49 finder->
DoFind(dataAll[iE]);
56 cout <<
"CPU time = " << 1000.*timer.CpuTime() / nofEvents<<
" ms per event" << endl;
57 cout <<
"Real time = " << 1000.*timer.RealTime() / nofEvents<<
" ms per event" << endl;