{ // ======================================================================== // Adjust this part according to your requirements // Verbosity level (0=quiet, 1=event level, 2=track level, 3=debug) Int_t iVerbose = 1; Int_t normType = 1; //0 - normalize by number of MC hits //1 - normalize by number of found hits; Int_t nEvents = 500; /* // Input file (MC events) //TString inFile = "../run/auau.25gev.centr.mc_100notrd.root"; TString inFile = "../run/auau.25gev.centr.mc.root"; //TString inFile ="/d/cbm02/hoehne/data/urqmd/auau.25gev.centr.mc_notrd.root"; // Number of events to process // Background file (for MAPS pileup) TString bgFile = "../run/auau.25gev.centr.mc.root"; // Parameter file //TString parFile = "../run/parfiles/params_N2_activeMagnet.root"; TString parFile = "../run/parfiles/params.root"; // Output file TString outFile = "auau.25gev.centr.reco.richqa.root"; //TString outFile = "test.root"; */ // Version of STS digitisation scheme TString stsDigiVersion = "v05a"; TString inFile = "/d/cbm02/slebedev/rich/auau.25gev.centr.mc.0001.root"; TString richRecoFile = "/d/cbm02/slebedev/rich/auau.25gev.centr.reco.rich.0001.root"; TString inRecoFile = "/d/cbm02/slebedev/rich/auau.25gev.centr.reco.0001.root"; TString parFile = "/d/cbm02/slebedev/rich/parfiles/params.0001.root"; TString outFile = "/d/cbm02/slebedev/rich/auau.25gev.centr.reco.richqa.0001.root"; // ----- Timer -------------------------------------------------------- TStopwatch timer; timer.Start(); // ------------------------------------------------------------------------ // ---- Load libraries ------------------------------------------------- gROOT->LoadMacro("$VMCWORKDIR/gconfig/basiclibs.C"); basiclibs(); gSystem->Load("libGeoBase"); gSystem->Load("libBase"); gSystem->Load("libPassive"); gSystem->Load("libGen"); gSystem->Load("libSts"); gSystem->Load("libKF"); gSystem->Load("libRich"); gSystem->Load("libTrd"); gSystem->Load("libTof"); gSystem->Load("libEcal"); gSystem->Load("libL1"); gSystem->Load("libGlobal"); // ------------------------------------------------------------------------ // ----- Reconstruction run ------------------------------------------- CbmRunAna *fRun= new CbmRunAna(); fRun->SetInputFile(inFile); fRun->AddFriend(inRecoFile); fRun->AddFriend(richRecoFile); fRun->SetOutputFile(outFile); // ------------------------------------------------------------------------ // ----- Parameter database -------------------------------------------- CbmRuntimeDb* rtdb = fRun->GetRuntimeDb(); CbmParRootFileIo* parInput1 = new CbmParRootFileIo(); parInput1->open(parFile.Data()); CbmParAsciiFileIo* parInput2 = new CbmParAsciiFileIo(); TString stsDigiFile = gSystem->Getenv("VMCWORKDIR"); stsDigiFile += "/parameters/sts/sts_digi.par"; parInput2->open(stsDigiFile.Data(),"in"); rtdb->setFirstInput(parInput1); rtdb->setSecondInput(parInput2); fRun->LoadGeometry(); // ------------------------------------------------------------------------ CbmRichRingQa *RingQa = new CbmRichRingQa("CbmRichRingQa","CbmRichRingQa T",iVerbose, normType); fRun->AddTask(RingQa); // ----- Intialise and run -------------------------------------------- fRun->Init(); fRun->Run(0,nEvents); // ------------------------------------------------------------------------ RingQa->Finish(); // ----- 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; // ------------------------------------------------------------------------ }