<< " }\n"
<< " base = sub;\n"
<< " }\n"
+ << " gEnv->SetValue(\"XSec.GSI.DelegProxy\", \"2\");\n"
<< " AliAnalysisManager* mgr= "
<< "AliAnalysisAlien::LoadAnalysisManager(base);\n"
<< " if (!mgr) {\n"
<< "}\n\n"
<< "void Download()\n"
<< "{\n"
+ << " gEnv->SetValue(\"XSec.GSI.DelegProxy\", \"2\");\n"
<< " if (!TGrid::Connect(\"alien://\")) {\n"
<< " Error(\"Download\",\"Failed to connect to AliEn\");\n"
<< " return;\n"
<< "{\n"
<< " gROOT->LoadMacro(\"$ALICE_ROOT/PWGLF/FORWARD/analysis2/corrs/ExtractELoss.C\");\n"
<< " ExtractELoss(\"forward_eloss.root\","
- << fOptions.Has("mc") << ");\n"
+ << fHelper->IsMC() << ");\n"
<< "}\n"
<< "// EOF" << std::endl;
f.close();
if (!mgr->GetMCtruthEventHandler()) return;
// --- Task to copy header information ---------------------------
- gROOT->Macro("AddTaskCopyHeader.C");
+ // gROOT->Macro("AddTaskCopyHeader.C");
// --- Add the task ----------------------------------------------
gROOT->Macro("AddTaskForwardMCCorr.C");
fHandler->SetROOTVersion(root);
fHandler->SetAliROOTVersion(aliroot);
// Execute through interpreter until patch is applied
- gROOT->ProcessLine(Form("((AliAnalysisAlien*)%p)->SetDropToShell(false);",
- fHandler));
+ fHandler->SetDropToShell(false);
if (fOptions.Has("mode"))
fHandler->SetAliRootMode(fOptions.Get("mode"));
else
Bool_t all=false)
{
gSystem->AddIncludePath("-I$ALICE_ROOT/include");
+ gSystem->AddIncludePath("-I$ALICE_ROOT/PWGLF/FORWARD/trains/");
+ gROOT->SetMacroPath(Form("%s:$ALICE_ROOT/PWGLF/FORWARD/trains",
+ gROOT->GetMacroPath()));
gSystem->Load("libANALYSIS");
gSystem->Load("libANALYSISalice");
const char* scripts[] = { "AvailableSoftware",