void ReadRawData() { const Int_t nev = -1; gErrorIgnoreLevel = kError; // Input file (real events) TString inFile = "1850V_90_10_th70_2layers.root"; // Parameter file TString parFile = "geoparams.root"; // Digitisation file (ascii) TString digiFile = "all.par"; // Output file TString outFile = "output.root"; // ----- Timer -------------------------------------------------------- TStopwatch timer; FairSttSource *source = new FairSttSource(); source->AddFile(inFile); source->SetVerbose(0); source->AddUnpacker(new PndSttUnpack()); // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- FairRunOnline *fRun = new FairRunOnline(source); fRun->SetOutputFile(outFile); fRun->SetWriteRunInfoFile(kFALSE); PndSttRawAna* ana = new PndSttRawAna(); ana->SetVerbose(0); fRun->AddTask(ana); // --------------------------------------------------------------------------- // -------------------------------------------------------------------------- fRun->Init(); timer.Start(); fRun->Run(nev, 0); // ----- Finish ------------------------------------------------------- timer.Stop(); Double_t rtime = timer.RealTime(); Double_t ctime = timer.CpuTime(); cout << endl << endl; cout << "Macro finished successfully." << endl; cout << "Parameter file is " << parFile << endl; cout << "Real time " << rtime << " s, CPU time " << ctime << " s" << endl; cout << endl; }