Go to the source code of this file.
int hit |
( |
Int_t |
nEvents = 0 , |
|
|
TString |
inFile = "sim.root" , |
|
|
TString |
parFile = "par.root" , |
|
|
TString |
inDigi = "digi.root" , |
|
|
TString |
outFile = "hit.root" , |
|
|
Int_t |
timeBased = 0 |
|
) |
| |
Definition at line 1 of file hit.C.
References ctime, Double_t, fRun, hitfind, i, inFile, nEvents, outFile, parFile, parInput, rtdb, rtime, timer, and verbose.
9 FairRunAna *
fRun=
new FairRunAna();
10 fRun->SetGenerateRunInfo(kFALSE);
11 fRun->SetInputFile(
inFile);
12 fRun->AddFriend(inDigi);
14 fRun->SetUseFairLinks(kTRUE);
15 if(timeBased) fRun->RunWithTimeStamps();
18 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
19 FairParRootFileIo*
parInput =
new FairParRootFileIo();
22 TList* parlist =
new TList();
23 for(Int_t
i=0;
i<4;
i++) parlist->Add(
new TObjString(Form(
"par_b%d.root",
i)));
24 parInput->open(parlist);
28 rtdb->setFirstInput(parInput);
32 fRun->AddTask(hitfind);
43 cout <<
"Macro finished succesfully." << endl;
44 cout <<
"Output file is " <<
outFile << endl;
45 cout <<
"Parameter file is " <<
parFile << endl;
46 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
PndDrcHitFinder * hitfind
FairParAsciiFileIo * parInput