]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
new analysis module JCORRAN - Filip Krizek
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Apr 2010 17:56:12 +0000 (17:56 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Apr 2010 17:56:12 +0000 (17:56 +0000)
PWG4/PROOF-INF.PWG4JCORRAN/BUILD.sh [new file with mode: 0755]
PWG4/PROOF-INF.PWG4JCORRAN/SETUP.C [new file with mode: 0755]

diff --git a/PWG4/PROOF-INF.PWG4JCORRAN/BUILD.sh b/PWG4/PROOF-INF.PWG4JCORRAN/BUILD.sh
new file mode 100755 (executable)
index 0000000..a4a544b
--- /dev/null
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+make
diff --git a/PWG4/PROOF-INF.PWG4JCORRAN/SETUP.C b/PWG4/PROOF-INF.PWG4JCORRAN/SETUP.C
new file mode 100755 (executable)
index 0000000..1ffa199
--- /dev/null
@@ -0,0 +1,16 @@
+void SETUP() {
+  // Load the BASE library
+  CheckLoadLibrary("libPWG4JCORRAN");
+  gROOT->ProcessLine(".include PWG4JCORRAN");
+  // Set our location, so that other packages can find us
+  gSystem->Setenv("PWG4JCORRAN_INCLUDE", "PWG4JCORRAN");
+}
+
+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);
+}