]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Changes to handle pass2 path names
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Dec 2011 11:29:08 +0000 (11:29 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Dec 2011 11:29:08 +0000 (11:29 +0000)
PWG1/ITS/AliITSQAtrend.C

index b8668dc5f181d5611a98c88de5029c36a2fe2396..44049691075af41762a1af7b71413f50c2228530 100644 (file)
@@ -1465,11 +1465,24 @@ void AliITSQAtrend(TString runListFile,TString ntupleFileName){
   int j = 0;
   Int_t nrun=0;
   Int_t runNumb[MAX_LINES];
+  Bool_t goout = kFALSE;
   while ( in ) {
     in.getline(strings[j], MAX_LINE_LEN);
     TString aux(strings[j]);
-    if(aux.Length()<27)continue;
-    aux=aux.Remove(0,27);
+    Int_t lentrail=0;
+    if(aux.Contains("LHC11h/")){
+      lentrail = 27;
+    }
+    else if(aux.Contains("LHC11h_2/")){
+      lentrail = 29;
+    }
+    else {
+      if(!aux.IsNull())printf("Unrecognised path name %s \n",aux.Data());
+      goout = kTRUE;
+    }
+    if(goout)break;
+    if(aux.Length()<lentrail)continue;
+    aux=aux.Remove(0,lentrail);
     aux=aux.Remove(6,aux.Length());  
     runNumb[j]=atoi(aux.Data());
     printf("%d ) - path %s \n",runNumb[j],strings[j]);