// Macro for running Panda reconstruction tasks // to run the macro: // root recoideal_day1.C or in root session root>.x reco_complete.C // It uses an ideal pattern recognition both in the barrel and the forward part with a smearing of momentum and position vectors. // After the ideal pattern reco the genfit kalman filter runs over the data set. void recoideal_day1(TString prefix="") { //-----User Settings:------------------------------------------------------ TString parAsciiFile = "all.par"; TString options = "day1+gem2+strip"; //with fts1234 //TString options = "day1+gem2+strip+fts1256"; //TString options = ""; TString output = "reco"; TString friend1 = "digi"; // ----- Initial Settings -------------------------------------------- PndMasterRunAna *fRun= new PndMasterRunAna(); fRun->SetOptions(options); fRun->SetInput("dummy"); fRun->SetOutput(output); fRun->SetFriend1(friend1); fRun->SetParamAsciiFile(parAsciiFile); fRun->Setup(prefix); // ----- Add tasks ---------------------------------------------------- fRun->AddRecoIdealTasks(); // ----- Intialise and run -------------------------------------------- PndEmcMapper::Init(1); fRun->Init(); fRun->Run(0); fRun->Finish(); if (gROOT->GetVersionInt() >= 60602) { gGeoManager->GetListOfVolumes()->Delete(); gGeoManager->GetListOfShapes()->Delete(); delete gGeoManager; } }