Go to the source code of this file.
int sortTopix4TBData |
( |
TString |
inFileName, |
|
|
Int_t |
nEvents = 0 |
|
) |
| |
Definition at line 1 of file sortTopix4TBData.C.
References allDigiFile, ctime, digiFile, Double_t, fRun, iVerbose, nEvents, outFile, parFile, parInput1, parIo1, rtdb, rtime, timer, and TString.
25 FairRunAna *
fRun=
new FairRunAna();
26 fRun->SetInputFile(inFileName);
27 fRun->SetOutputFile(outFile);
28 fRun->SetWriteRunInfoFile(kFALSE);
32 allDigiFile +=
"/macro/params/";
35 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
36 FairParRootFileIo*
parInput1 =
new FairParRootFileIo();
37 parInput1->open(parFile.Data());
39 FairParAsciiFileIo*
parIo1 =
new FairParAsciiFileIo();
40 parIo1->open(allDigiFile.Data(),
"in");
42 rtdb->setFirstInput(parInput1);
43 rtdb->setSecondInput(parIo1);
48 fRun->AddTask(sortTask);
62 cout <<
"Macro finished successfully." << endl;
63 cout <<
"Output file is " << outFile << endl;
64 cout <<
"Parameter file is " << parFile << endl;
65 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
68 cout <<
" Test passed" << endl;
69 cout <<
" All ok " << endl;
FairParRootFileIo * parInput1
FairParAsciiFileIo * parIo1