// Macro for running Panda pid tasks // to run the macro: // root pid_day1.C or in root session root>.x pid_complete.C void pidideal_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 = "pid"; TString friend1 = "digi"; TString friend2 = "reco"; // ----- Initial Settings -------------------------------------------- PndMasterRunAna *fRun= new PndMasterRunAna(); fRun->SetOptions(options); fRun->SetInput("dummy"); fRun->SetOutput(output); fRun->SetFriend1(friend1); fRun->SetFriend2(friend2); fRun->SetParamAsciiFile(parAsciiFile); fRun->Setup(prefix); // ----- Add tasks ---------------------------------------------------- fRun->AddPidTasks(); // ----- 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; } }