Minor fix: get the correct run number for runs which are exact multiple values of...
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 28 Jul 2012 08:38:07 +0000 (08:38 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 28 Jul 2012 08:38:07 +0000 (08:38 +0000)
PWGPP/MUON/lite/terminateQA.C

index cad84d8..872d2fb 100644 (file)
@@ -27,7 +27,7 @@ Int_t GetRunNumber(TString filePath)
   Int_t runNum = -1;
   for ( Int_t ientry=0; ientry<array->GetEntries(); ientry++ ) {
     auxString = array->At(ientry)->GetName();
-    if ( auxString.Contains("000") ) {
+    if ( auxString.Length() == 9 && auxString.IsDigit() ) {
       runNum = auxString.Atoi();
       break;
     }