]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGCF/PROOF-INF.PWGCFfemtoscopyUser/SETUP.C
Last modifictaions for PWG2 -> PWGCF
[u/mrichter/AliRoot.git] / PWGCF / PROOF-INF.PWGCFfemtoscopyUser / SETUP.C
diff --git a/PWGCF/PROOF-INF.PWGCFfemtoscopyUser/SETUP.C b/PWGCF/PROOF-INF.PWGCFfemtoscopyUser/SETUP.C
new file mode 100644 (file)
index 0000000..76a0fc1
--- /dev/null
@@ -0,0 +1,18 @@
+void SETUP() {
+  CheckLoadLibrary("libPWGCFfemtoscopyUser");
+  
+  // Set the include paths
+  gROOT->ProcessLine(".include PWGCFfemtoscopyUser/FEMTOSCOPY/AliFemtoUser");
+
+  // Set our location, so that other packages can find us
+  gSystem->Setenv("PWGCFfemtoscopyUser_INCLUDE", "PWGCFfemtoscopyUser/FEMTOSCOPY/AliFemtoUser");
+}
+
+Int_t CheckLoadLibrary(const char* library) {
+  // checks if a library is already loaded, if not loads the library
+
+  if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
+    return 1;
+  
+  return gSystem->Load(library);
+}