]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix run number when no run list is provided (C.Hadjidakis)
authorzconesa <zaida.conesa.del.valle@cern.ch>
Tue, 28 Oct 2014 08:56:20 +0000 (09:56 +0100)
committerzconesa <zaida.conesa.del.valle@cern.ch>
Tue, 28 Oct 2014 08:56:20 +0000 (09:56 +0100)
PWGPP/MUON/lite/PlotMuonQA.C

index 77019e7cb54f561cab1aa51c14d973bb7ada1665..0213a79fc81c185802ecee1ea24d053c65995936 100644 (file)
@@ -794,16 +794,12 @@ void PlotMuonQA(const char* baseDir, const char* runList = 0x0, const char * tri
       }
     
       if ( searchRunNr ) {
-       TString sobjs = objs->GetString();
-       Int_t index = sobjs.Index("terminateRuns");
-       sobjs.Remove(0,index);
-       sobjs.ReplaceAll("terminateRuns/","");
-       sobjs.ReplaceAll(Form("//%s",QAFileName),"");
-       if ( sobjs.IsDigit() ) run = sobjs;
+       Int_t runNr = GetRunNumber(objs->GetString());
+       if (runNr > 0) run = Form("%i",runNr);
       }
   
       if ( run.IsDigit() && ! selectRuns.Contains(Form("%i",run.Atoi())) ) continue;
-
+      
       // open the outfile for this run
       TFile *runFile = TFile::Open(objs->GetString());
       if (!runFile || ! runFile->IsOpen()) {