add PROOF for par file compilation of EMCALraw if needed
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Oct 2011 07:44:46 +0000 (07:44 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Oct 2011 07:44:46 +0000 (07:44 +0000)
EMCAL/PROOF-INF.EMCALraw/BUILD.sh [new file with mode: 0755]
EMCAL/PROOF-INF.EMCALraw/SETUP.C [new file with mode: 0644]

diff --git a/EMCAL/PROOF-INF.EMCALraw/BUILD.sh b/EMCAL/PROOF-INF.EMCALraw/BUILD.sh
new file mode 100755 (executable)
index 0000000..fc9490a
--- /dev/null
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+make 
diff --git a/EMCAL/PROOF-INF.EMCALraw/SETUP.C b/EMCAL/PROOF-INF.EMCALraw/SETUP.C
new file mode 100644 (file)
index 0000000..277839e
--- /dev/null
@@ -0,0 +1,14 @@
+void SETUP()
+{
+
+   // Load library
+   TString ocwd = gSystem->WorkingDirectory();
+   gSystem->Load(ocwd+"/libEMCALraw.so");
+
+   // Set the Include paths
+//   gSystem->SetIncludePath("-I$ROOTSYS/include -IEMCAL");
+   gROOT->ProcessLine(".include EMCALraw");
+
+   // Set our location, so that other packages can find us
+   gSystem->Setenv("EMCALsim_INCLUDE", "EMCALraw");
+}