// Macro for running Panda digitization tasks // to run the macro: // root digi_day1.C or in root session root>.x digi_complete.C void digi_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 = "digi"; // ----- Initial Settings -------------------------------------------- PndMasterRunAna *fRun= new PndMasterRunAna(); fRun->SetOptions(options); fRun->SetInput("dummy"); fRun->SetOutput(output); fRun->SetParamAsciiFile(parAsciiFile); fRun->Setup(prefix); // ----- Add tasks ---------------------------------------------------- fRun->AddDigiTasks(); // ----- Intialise and run -------------------------------------------- fRun->Init(); fRun->Run(0); fRun->Finish(); if (gROOT->GetVersionInt() >= 60602) { gGeoManager->GetListOfVolumes()->Delete(); gGeoManager->GetListOfShapes()->Delete(); delete gGeoManager; } }