| 31 |
run = ru; |
run = ru; |
| 32 |
dir = di; |
dir = di; |
| 33 |
// |
// |
| 34 |
|
discarded = false; |
| 35 |
|
// |
| 36 |
wd = gSystem->WorkingDirectory(); |
wd = gSystem->WorkingDirectory(); |
| 37 |
// |
// |
| 38 |
outdir = wrkdi; |
outdir = wrkdi; |
| 176 |
if ( li->CheckLevel2File(thisrun) ){ |
if ( li->CheckLevel2File(thisrun) ){ |
| 177 |
lList->Add(su); |
lList->Add(su); |
| 178 |
} else { |
} else { |
| 179 |
if ( DebugMode() ) printf(" RUN %s DISCARDED \n",Row->GetField(0)); |
if ( DebugMode() ) printf(" RUN %s DISCARDED \n",Row->GetField(0)); |
| 180 |
|
discarded = true; |
| 181 |
}; |
}; |
| 182 |
// |
// |
| 183 |
}; |
}; |
| 222 |
fNlist++; |
fNlist++; |
| 223 |
} else { |
} else { |
| 224 |
if ( DebugMode() ) printf(" RUN %s DISCARDED \n",fullpath.Data()); |
if ( DebugMode() ) printf(" RUN %s DISCARDED \n",fullpath.Data()); |
| 225 |
|
discarded = true; |
| 226 |
}; |
}; |
| 227 |
// |
// |
| 228 |
}; |
}; |
| 349 |
if ( DebugMode() ) printf(" RUN %s ADDED \n",Row->GetField(0)); |
if ( DebugMode() ) printf(" RUN %s ADDED \n",Row->GetField(0)); |
| 350 |
} else { |
} else { |
| 351 |
if ( DebugMode() ) printf(" RUN %s DISCARDED \n",Row->GetField(0)); |
if ( DebugMode() ) printf(" RUN %s DISCARDED \n",Row->GetField(0)); |
| 352 |
|
discarded = true; |
| 353 |
}; |
}; |
| 354 |
// |
// |
| 355 |
}; |
}; |
| 613 |
} |
} |
| 614 |
if ( P->GetEntries() ){ |
if ( P->GetEntries() ){ |
| 615 |
TTree *Pclone = P->CloneTree(); |
TTree *Pclone = P->CloneTree(); |
| 616 |
|
// |
|
|
|
|
|
|
| 617 |
ProcInfo *procinfo = new ProcInfo(); |
ProcInfo *procinfo = new ProcInfo(); |
| 618 |
procinfo->runID = 0; |
procinfo->runID = run; |
| 619 |
TTimeStamp *dt = new TTimeStamp(); |
TTimeStamp *dt = new TTimeStamp(); |
| 620 |
procinfo->date = dt->AsString(); |
procinfo->date = dt->AsString(); |
| 621 |
delete dt; |
delete dt; |
| 622 |
TString isok; |
TString isok; |
| 623 |
if ( nli->HasDiscardedFiles() ){ |
if ( discarded ){ |
| 624 |
isok = " WARNING, files were discarded while merging! "; |
isok = " WARNING, files were discarded while merging! "; |
| 625 |
} else { |
} else { |
| 626 |
isok = " the level2 merging was OK!"; |
isok = " The level2 merging was OK!"; |
| 627 |
} |
} |
| 628 |
procinfo->commandLine += Form("PadmeAmidala run: %i dir: %s wd %s. %s",run,dir.Data(),wd.Data(),isok.Data()); |
procinfo->commandLine += Form("PadmeAmidala: %s",isok.Data()); |
| 629 |
procinfo->outputFilename = Form("%s %s ",outdir.Data(),Target->GetName()); |
procinfo->outputFilename = Target->GetName(); |
| 630 |
procinfo->localDir = gSystem->WorkingDirectory(); |
procinfo->localDir = gSystem->WorkingDirectory(); |
| 631 |
procinfo->uname = gSystem->GetFromPipe("uname -a"); |
procinfo->uname = gSystem->GetFromPipe("uname -a"); |
| 632 |
procinfo->DB = Form("Host %s DB %s ",dbc->GetHost(),dbc->GetDB()); |
procinfo->DB = Form("mysql://%s/%s",dbc->GetHost(),dbc->GetDB()); |
| 633 |
|
|
| 634 |
Pclone->SetBranchAddress("ProcInfo",&procinfo); |
Pclone->SetBranchAddress("ProcInfo",&procinfo); |
| 635 |
Pclone->Fill(); |
Pclone->Fill(); |