@@ -602,6 +602,9 @@ int GPUQA::ReadO2MCData(const char* filename)
602602 fclose (fp);
603603 return 1 ;
604604 }
605+ if (mTracking && mTracking ->GetProcessingSettings ().debugLevel >= 2 ) {
606+ printf (" Read %ld MC Infos\n " , ftell (fp));
607+ }
605608 fclose (fp);
606609 if (mTracking ) {
607610 CopyO2MCtoIOPtr (&mTracking ->mIOPtrs );
@@ -800,6 +803,9 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
800803 if (!mQAInitialized ) {
801804 throw std::runtime_error (" QA not initialized" );
802805 }
806+ if (mTracking && mTracking ->GetProcessingSettings ().debugLevel >= 2 ) {
807+ printf (" Running QA\n " );
808+ }
803809 if (!clNative && mTracking ) {
804810 clNative = mTracking ->mIOPtrs .clustersNative ;
805811 }
@@ -917,7 +923,7 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
917923 }
918924 }
919925 }
920- if (QA_TIMING ) {
926+ if (QA_TIMING || ( mTracking && mTracking -> GetProcessingSettings (). debugLevel >= 3 ) ) {
921927 GPUInfo (" QA Time: Assign Track Labels:\t\t %6.0f us" , timer.GetCurrentElapsedTime (true ) * 1e6 );
922928 }
923929
@@ -1057,7 +1063,7 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
10571063 }
10581064 }
10591065 }
1060- if (QA_TIMING ) {
1066+ if (QA_TIMING || ( mTracking && mTracking -> GetProcessingSettings (). debugLevel >= 3 ) ) {
10611067 GPUInfo (" QA Time: Cluster attach status:\t\t %6.0f us" , timer.GetCurrentElapsedTime (true ) * 1e6 );
10621068 }
10631069
@@ -1084,7 +1090,7 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
10841090 }
10851091 }
10861092 }
1087- if (QA_TIMING ) {
1093+ if (QA_TIMING || ( mTracking && mTracking -> GetProcessingSettings (). debugLevel >= 3 ) ) {
10881094 GPUInfo (" QA Time: Compute cluster label weights:\t %6.0f us" , timer.GetCurrentElapsedTime (true ) * 1e6 );
10891095 }
10901096
@@ -1109,7 +1115,7 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
11091115 }
11101116 }
11111117 }
1112- if (QA_TIMING ) {
1118+ if (QA_TIMING || ( mTracking && mTracking -> GetProcessingSettings (). debugLevel >= 3 ) ) {
11131119 GPUInfo (" QA Time: Compute track mc parameters:\t %6.0f us" , timer.GetCurrentElapsedTime (true ) * 1e6 );
11141120 }
11151121
@@ -1193,7 +1199,7 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
11931199 }
11941200 }
11951201 }
1196- if (QA_TIMING ) {
1202+ if (QA_TIMING || ( mTracking && mTracking -> GetProcessingSettings (). debugLevel >= 3 ) ) {
11971203 GPUInfo (" QA Time: Fill efficiency histograms:\t %6.0f us" , timer.GetCurrentElapsedTime (true ) * 1e6 );
11981204 }
11991205 }
@@ -1366,7 +1372,7 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
13661372 }
13671373 }
13681374 }
1369- if (QA_TIMING ) {
1375+ if (QA_TIMING || ( mTracking && mTracking -> GetProcessingSettings (). debugLevel >= 3 ) ) {
13701376 GPUInfo (" QA Time: Fill resolution histograms:\t %6.0f us" , timer.GetCurrentElapsedTime (true ) * 1e6 );
13711377 }
13721378 }
@@ -1593,7 +1599,7 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
15931599 }
15941600 }
15951601
1596- if (QA_TIMING ) {
1602+ if (QA_TIMING || ( mTracking && mTracking -> GetProcessingSettings (). debugLevel >= 3 ) ) {
15971603 GPUInfo (" QA Time: Fill cluster histograms:\t %6.0f us" , timer.GetCurrentElapsedTime (true ) * 1e6 );
15981604 }
15991605 }
@@ -1625,7 +1631,7 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
16251631 }
16261632 }
16271633
1628- if (QA_TIMING ) {
1634+ if (QA_TIMING || ( mTracking && mTracking -> GetProcessingSettings (). debugLevel >= 3 ) ) {
16291635 GPUInfo (" QA Time: Fill track statistics:\t %6.0f us" , timer.GetCurrentElapsedTime (true ) * 1e6 );
16301636 }
16311637 }
@@ -1698,7 +1704,7 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
16981704 mClusterCounts = counts_t ();
16991705 }
17001706
1701- if (QA_TIMING ) {
1707+ if (QA_TIMING || ( mTracking && mTracking -> GetProcessingSettings (). debugLevel >= 3 ) ) {
17021708 GPUInfo (" QA Time: Cluster Counts:\t %6.0f us" , timer.GetCurrentElapsedTime (true ) * 1e6 );
17031709 }
17041710
@@ -1880,6 +1886,10 @@ int GPUQA::DrawQAHistograms(TObjArray* qcout)
18801886 throw std::runtime_error (" QA not initialized" );
18811887 }
18821888
1889+ if (mTracking && mTracking ->GetProcessingSettings ().debugLevel >= 2 ) {
1890+ printf (" Creating QA Histograms\n " );
1891+ }
1892+
18831893 std::vector<Color_t> colorNums (COLORCOUNT );
18841894 for (int i = 0 ; i < COLORCOUNT ; i++) {
18851895 colorNums[i] = qcout ? defaultColorNUms[i] : mColors [i]->GetNumber ();
0 commit comments