diff --git a/Trigger/TrigFTK/FTK_RecTools/src/FTK_DuplicateTrackRemovalTool.cxx b/Trigger/TrigFTK/FTK_RecTools/src/FTK_DuplicateTrackRemovalTool.cxx index f628541905975e04f8c0807b1c09918a1826dcb1..6d3ee338212a9bb99f09d671c4ba134c78d6e0ec 100644 --- a/Trigger/TrigFTK/FTK_RecTools/src/FTK_DuplicateTrackRemovalTool.cxx +++ b/Trigger/TrigFTK/FTK_RecTools/src/FTK_DuplicateTrackRemovalTool.cxx @@ -92,7 +92,13 @@ const FTK_RawTrack* FTK_DuplicateTrackRemovalTool::besttrack(const FTK_RawTrack* else return oldtrack; } +//#define FTKDuplicateTrackRemovalTiming FTK_RawTrackContainer* FTK_DuplicateTrackRemovalTool::removeDuplicates(const FTK_RawTrackContainer* trks){ + +#ifdef FTKDuplicateTrackRemovalTiming + clock_t tStart = clock(); +#endif + ATH_MSG_DEBUG("ACH99 - I'm in removeDuplicates!"); m_trks_nodups->clear(); m_trks_nodups->reserve(trks->size()); @@ -163,5 +169,11 @@ FTK_RawTrackContainer* FTK_DuplicateTrackRemovalTool::removeDuplicates(const FTK } // loop over incoming tracks +#ifdef FTKDuplicateTrackRemovalTiming + clock_t tEnd = clock(); + double elapsed_secs = double(tEnd - tStart) / CLOCKS_PER_SEC; + ATH_MSG_INFO("Time taken: "<<elapsed_secs<<"s"); +#endif + return m_trks_nodups; }