]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
adding support for PWG0dep.par PROOF archive
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 27 Jul 2006 08:29:48 +0000 (08:29 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 27 Jul 2006 08:29:48 +0000 (08:29 +0000)
PWG0/Makefile
PWG0/PROOF-INF.PWG0base/SETUP.C
PWG0/PROOF-INF.PWG0dep/BUILD.sh [new file with mode: 0755]
PWG0/PROOF-INF.PWG0dep/SETUP.C [new file with mode: 0644]

index b8289fbf3016f4091b79955eaf78552a9b1267f5..f7123ee0aca1457e7413c7d6d93d6e8f802f099e 100644 (file)
@@ -15,6 +15,11 @@ else
   endif
 endif
 
+# for building of PWG0dep.par
+ifneq ($(PWG0base_INCLUDE),)
+  ALICEINC += -I../$(PWG0base_INCLUDE)
+endif
+
 CXXFLAGS     += $(ALICEINC) -g
 
 PACKAGE = PWG0base
index 24a35fa4a53f6d1403ad0dde17f24412b37e9122..a9ec88036e51ac3dc70075b92d062f1fc74ef4b8 100644 (file)
@@ -1,8 +1,17 @@
 void SETUP()
 {
+   // Load some ROOT libraries
+   gSystem->Load("libEG");
+   gSystem->Load("libGeom");
+
+   // Load the ESD library
+   gSystem->Load("libESD");
+
    gSystem->Load("libPWG0base");
 
-   // Set the Inlucde paths
-   gSystem->SetIncludePath("-I$ROOTSYS/include -IPWG0base");
+   // Set the include paths
    gROOT->ProcessLine(".include PWG0base");
+
+   // Set our location, so that other packages can find us
+   gSystem->Setenv("PWG0base_INCLUDE", "PWG0base");
 }
diff --git a/PWG0/PROOF-INF.PWG0dep/BUILD.sh b/PWG0/PROOF-INF.PWG0dep/BUILD.sh
new file mode 100755 (executable)
index 0000000..6396286
--- /dev/null
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+# dirty hack!
+touch libPWG0selectors.pkg
+touch libPWG0base.pkg
+
+make libPWG0dep.so
diff --git a/PWG0/PROOF-INF.PWG0dep/SETUP.C b/PWG0/PROOF-INF.PWG0dep/SETUP.C
new file mode 100644 (file)
index 0000000..ab015be
--- /dev/null
@@ -0,0 +1,14 @@
+void SETUP()
+{
+   // we assume PWG0base (and thus ESD) already loaded
+
+   // this package depends on STEER
+   gSystem->Load("libVMC");
+   gSystem->Load("libMinuit");
+   gSystem->Load("libSTEER");
+
+   gSystem->Load("libPWG0dep");
+
+   // Set the Include paths
+   gROOT->ProcessLine(".include PWG0dep");
+}