if(year==2009 && (nrun>100000 && nv< 184)) continue; // protection for files with swapped ladder 0-1 of layer 4
if(year==2010 && (nrun>=114603 && nv< 98)) continue; // protection for files without treatment of masked hybrids
if(year==2011 && (nrun>=145349 && nrun<=148978) && nrun2> 148978) continue; // protection for files affected by problem in second DA
+ if(year==2011 && nrun==156856) continue;
if(nrun<firstRun) continue;
if(nrun>lastRun) continue;
sprintf(filnamalien,"alien://%s",filnam);
gSystem->Exec(cmd.Data());
Char_t filnam[200],filnamalien[200];
FILE* runtxt=fopen("run.txt","r");
- fscanf(runtxt,"%s\n",filnam);
- if(!strstr(filnam,"/alice/data/")){
+ Bool_t found=kFALSE;
+ while(!feof(runtxt)){
+ fscanf(runtxt,"%s\n",filnam);
+ if(strstr(filnam,"/alice/data/")){
+ found=kTRUE;
+ break;
+ }
+ }
+ if(!found){
printf("Bad run number\n");
- gSystem->Exec("rm run.txt");
+ // gSystem->Exec("rm run.txt");
return;
- }
+ }
sprintf(filnamalien,"alien://%s",filnam);
printf("Open file: %s\n",filnamalien);