Go to the documentation of this file.
44 omp_set_num_threads(numThreads);
47 gettimeofday(&bTime, 0);
50 Int_t createdFinderInstances = 0;
51 Int_t totalRunTime = 0;
54 #ifdef LXPARALL_SEPARATE_SINGLE
55 if (1 == numThreads) {
57 if (0 == finderCapsule.
finder) {
69 createdFinderInstances++;
74 finderCapsule.
finder->
Exec(
reinterpret_cast<Option_t*
>(&runTime));
75 totalRunTime += runTime;
78 #endif //LXPARALL_SEPARATE_SINGLE
79 #pragma omp parallel for firstprivate(finderCapsule)
81 if (0 == finderCapsule.
finder) {
94 createdFinderInstances++;
99 finderCapsule.
finder->
Exec(
reinterpret_cast<Option_t*
>(&runTime));
101 totalRunTime += runTime;
103 #ifdef LXPARALL_SEPARATE_SINGLE
105 #endif //LXPARALL_SEPARATE_SINGLE
107 gettimeofday(&eTime, 0);
109 (eTime.tv_sec - bTime.tv_sec) * 1000000 + eTime.tv_usec - bTime.tv_usec;
110 cout <<
"Execution duration was: " << exeDuration << endl;
111 cout <<
"Created finder instances: " << createdFinderInstances << endl;
112 cout <<
"Total run time: " << totalRunTime << endl;
113 Double_t result = totalRunTime;
115 cout <<
"Average run time: " << result << endl;
void SetGenBackground(bool value)
Double_t Reconstruct(Int_t numThreads)
void SetVerbosity(Int_t v)
FinderCapsule(const FinderCapsule &)
void SetCutCoeff(scaltype value)
bool ReadEvent(Int_t evNum)
void SetUseMCPInsteadOfHits(bool value)
void SetLinkWithSts(bool value)
FinderCapsule & operator=(const FinderCapsule &)
ClassImp(LxParallFinder) LxParallFinder
void SetHitFileName(TString v)
void SetCalcMiddlePoints(bool value)
void SetGenInvMass(bool value)
void SetParallMode(bool v)