Go to the source code of this file.
      
        
          | int mcMatch | ( | Int_t | nEvents = 0 | ) |  | 
      
 
Definition at line 1 of file mcMatch.C.
References ctime, DigiFile, Double_t, fMan, fRun, nEvents, parInput1, RecoFile, rtdb, rtime, testFile(), timer, and TString.
    5   TString  InputFile     =
"sim_complete.root";
 
    8   TString  ParFile       =
"simparams.root";
 
   13   FairRunAna *
fRun= 
new FairRunAna();
 
   14   fRun->SetInputFile(InputFile.Data());
 
   15   fRun->SetOutputFile(
"tst.root");
 
   18   testFile = 
new TFile(DigiFile.Data());
 
   19   if (!testFile->IsZombie()){
 
   20           fRun->AddFriend(DigiFile.Data());
 
   24   testFile = 
new TFile(RecoFile.Data());
 
   25   if (!testFile->IsZombie()){
 
   26           fRun->AddFriend(RecoFile.Data());
 
   30    FairRuntimeDb* 
rtdb = fRun->GetRuntimeDb();
 
   31   FairParRootFileIo* 
parInput1 = 
new FairParRootFileIo();
 
   32   parInput1->open(ParFile.Data());
 
   33   rtdb->setFirstInput(parInput1);
 
   34   FairEventManager *
fMan= 
new FairEventManager();
 
   37   fRun->AddTask(mcTruth);
 
   39   cout << 
"fRun->Init()" << endl;
 
   53     cout << 
"Macro finished successfully." << endl;
 
   56     cout << 
"Real time " << rtime << 
" s, CPU time " << ctime << 
" s" << endl;
 
   59     cout << 
" Test passed" << endl;
 
   60     cout << 
" All ok " << endl;
 
FairParRootFileIo * parInput1
int testFile(TString nome, TString type)