StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
LoadPythia.C
1 // Author V.Fine 06/12/2001 BNL mailto:fine@bnl.gov
2 // This macro load the share library one needs to run Pythia and create ROOT file
3 void LoadPythia()
4 {
5  printf(" Loading Pythia/Athena share libraries\n");
6  const char *fileList[] = { "libEG"
7  , "/afs/usatlas.bnl.gov/offline/external/ROOT/XNew/i386_redhat71/root/lib/libPythia6"
8  , "libEGPythia6"
9  , "libRootKernel"
10  };
11  int nFiles = sizeof(fileList)/sizeof(char *);
12  int i;
13  for (i=0;i<nFiles;i++)
14  {
15  printf(" Loading %s ",fileList[i]);
16  if ( gSystem->Load(fileList[i]) ) printf(" \t... failed :-(\n");
17  else printf(" \t... Ok! :-)\n");
18  }
19 }
20