#include <iostream>
#include <sstream>
#include <TApplication.h>
#include <TCanvas.h>
#include <TROOT.h>
#include <TString.h>
#include <TChain.h>
#include <TFile.h>
#include <TClonesArray.h>
#include <TSystem.h>
#include <TH1.h>
#include <TH2.h>
#include <TRotation.h>
#include <TVector3.h>
#include <TMath.h>
#include <TGaxis.h>
#include <TStopwatch.h>
#include <PndMCTrack.h>
#include <PndSdsMCPoint.h>
#include <FairRunAna.h>
#include <FairRootManager.h>
#include <FairGeane.h>
#include <FairRtdbRun.h>
#include <FairRuntimeDb.h>
#include <FairParRootFileIo.h>
#include <PndLmdPerformanceTask.h>
#include <FairLogger.h>
#include <string>
Go to the source code of this file.
|  | 
| int | main (int nargs, char **args) | 
|  | 
      
        
          | int main | ( | int | nargs, | 
        
          |  |  | char ** | args | 
        
          |  | ) |  |  | 
      
 
Definition at line 44 of file Resolution_and_acceptance.cxx.
References ctime, DigiFile, Double_t, fRun, Geane, MCFile, outFile, parFile, parInput1, RecoFile, rtdb, rtime, PndLmdPerformanceTask::SetHistFilename(), startEvent, storePath, timer, and TString.
   52                         cout << 
" Hint: you may change the standard path from " 
   54                                         << 
" to any other folder by providing the path as an argument! " 
   57                         cout << 
" Error: too many arguments! " << endl;
 
   73         TString CandFile = storePath + 
"/Lumi_TCand_";
 
   81         TString TrkFile = storePath + 
"/Lumi_Track_";
 
   86         gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
 
   87         gSystem->Load(
"libSds");
 
   88         gSystem->Load(
"libSdsReco");
 
   89         gSystem->Load(
"libLmd");
 
   90         gSystem->Load(
"libLmdReco");
 
   91         gSystem->Load(
"libLmdTrk");
 
   99         TString outFilehist = storePath + 
"/Lumi_performance_histograms_";
 
  101         outFilehist += 
".root";
 
  103         std::cout << 
"MCFile  : " << MCFile.Data() << std::endl;
 
  104         std::cout << 
"DigiFile: " << DigiFile.Data() << std::endl;
 
  105         std::cout << 
"RecoFile: " << RecoFile.Data() << std::endl;
 
  106         std::cout << 
"TCandFile: " << CandFile.Data() << std::endl;
 
  107         std::cout << 
"TrackFile: " << TrkFile.Data() << std::endl;
 
  108         std::cout << 
"TestingFile: " << outFile.Data() << std::endl;
 
  124         FairRunAna *
fRun = 
new FairRunAna();
 
  125         fRun->SetInputFile(MCFile);
 
  130         fRun->SetOutputFile(outFile);
 
  133         FairGeane *
Geane = 
new FairGeane();
 
  134         fRun->AddTask(Geane);
 
  137         FairRuntimeDb* 
rtdb = fRun->GetRuntimeDb();
 
  138         FairParRootFileIo* 
parInput1 = 
new FairParRootFileIo(kTRUE);
 
  139         parInput1->open(parFile.Data());
 
  140         rtdb->setFirstInput(parInput1);
 
  150         TVector3 IP(0, 0, 0);
 
  153         lmdperformance->SetVerbose(0);
 
  154         fRun->AddTask(lmdperformance);
 
  155         rtdb->setOutput(parInput1);
 
  166         FairRootManager* ioman = FairRootManager::Instance();
 
  168                 std::cout << 
"Error: " 
  169                                 << 
"RootManager not instantiated!" << std::endl;
 
  172         fRun->Run(0, ioman->CheckMaxEventNo()); 
 
  180         cout << endl << endl;
 
  181         cout << 
"Macro finished succesfully." << endl;
 
  182         cout << 
"Output file is " << outFile << endl;
 
  183         cout << 
"Parameter file is " << parFile << endl;
 
  184         cout << 
"Real time " << rtime << 
" s, CPU time " << ctime << 
" s" << endl;
 
FairParRootFileIo * parInput1