AliPhysics  914d8ff (914d8ff)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LoadPars.C
Go to the documentation of this file.
1 
12 Bool_t
13 LoadPars(Int_t nWorkers=4)
14 {
15  const char* option = nWorkers <= 0 ? "" : Form("workers=%d", nWorkers);
16  TProof::Open(option);
17  const char* pkgs[] = { "STEERBase", "ESD", "AOD", "ANALYSIS",
18  "ANALYSISalice", "PWGLFforward2", 0};
19  const char** pkg = pkgs;
20  Bool_t ret = true;
21  while (*pkg) {
22  if (gProof->UploadPackage(Form("${ALICE_PHYSICS}/%s.par",*pkg)) < 0) {
23  Error("LoadPars", "Failed to upload package %s", *pkg);
24  ret = false;
25  continue;
26  }
27  if (gProof->EnablePackage(*pkg) < 0) {
28  Error("LoadPars", "Failed to enable package %s", *pkg);
29  ret = false;
30  continue;
31  }
32  pkg++;
33  }
34  return ret;
35 }
36 //
37 // EOF
38 //
int Int_t
Definition: External.C:63
bool Bool_t
Definition: External.C:53
Bool_t LoadPars(Int_t nWorkers=4)
Definition: LoadPars.C:13