]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/QA/tasks/macros/drawTHnSparse.C
- added message for the case a canvas is not created when the entries of the THnSpars...
[u/mrichter/AliRoot.git] / HLT / QA / tasks / macros / drawTHnSparse.C
index 37d7a754e2cdb5f82bacf5eafe5729b63581ee04..adb8c8fbc11fc44965f9f7a4767d82880d958d12 100644 (file)
@@ -151,6 +151,10 @@ void drawTHnSparse(TString inputFile="HLT-OFFLINE-CentralBarrel-comparison.root"
   gSystem->Exec("mkdir "+folder); // create a folder whose name contains run number and date of run
   
   if(heventHLT->GetEntries()>0 || heventOFF->GetEntries()>0) plotEventQuantities(heventHLT,heventOFF,hText,folder);
+  else {
+    if(heventHLT->GetEntries()==0) printf("\nThe HLT event THnSparse contains 0 entries\n");
+    if(heventOFF->GetEntries()==0) printf("\nThe OFF event THnSparse contains 0 entries\n");
+  }
 
   int counter = 0; 
   // counts how many times the function cutStudies() is called