{ // Verbosity level (0=quiet, 1=event level, 2=track level, 3=debug) Int_t iVerbose = 1; // Input file (MC events) TString inFile = "ex2.root"; // Number of events to process Int_t nEvents = 1000; // Parameter file TString parFile = "ex2params.root"; // Output file TString outFile = "ex2d.root"; // In general, the following parts need not be touched // ======================================================================== // ---- Load libraries ------------------------------------------------- gROOT->LoadMacro("$VMCWORKDIR/gconfig/basiclibs.C"); basiclibs(); gSystem->Load("libGeoBase"); gSystem->Load("libParBase"); gSystem->Load("libBase"); gSystem->Load("libPndData"); gSystem->Load("libField"); gSystem->Load("libPassive"); gSystem->Load("libStt"); gSystem->Load("libPlane"); // ------------------------------------------------------------------------ // ----- Timer -------------------------------------------------------- TStopwatch timer; timer.Start(); // ------------------------------------------------------------------------ // ----- Reconstruction run ------------------------------------------- FairRunAna *fRun = new FairRunAna(); fRun->SetInputFile(inFile); fRun->SetOutputFile(outFile); fRun->LoadGeometry(); // ------------------------------------------------------------------------ // ----- STT analysis tasks -------------------------------------------- // digitize .... PndSttHitProducerIdeal* sttHitProducer = new PndSttHitProducerIdeal(); // CbmSttHitProducerReal* sttHitProducer = new CbmSttHitProducerReal(); fRun->AddTask(sttHitProducer); // ------------------------------------------------------------------------ // ----- Initialize and run -------------------------------------------- fRun->Init(); fRun->Run(0, nEvents); // ------------------------------------------------------------------------ // ----- Finish ------------------------------------------------------- timer.Stop(); Double_t rtime = timer.RealTime(); Double_t ctime = timer.CpuTime(); cout << endl << endl; cout << "Macro finished succesfully." << endl; cout << "Output file is " << outFile << endl; cout << "Parameter file is " << parFile << endl; cout << "Real time " << rtime << " s, CPU time " << ctime << " s" << endl; cout << endl; // ------------------------------------------------------------------------ }