Fixed creation of par files (Michele)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Mar 2011 16:46:49 +0000 (16:46 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Mar 2011 16:46:49 +0000 (16:46 +0000)
ANALYSIS/Makefile
OADB/AliOADBContainer.cxx
OADB/Makefile
OADB/PROOF-INF.OADB/BUILD.sh
OADB/PROOF-INF.OADB/SETUP.C

index 3c32e73..ab0a2b5 100644 (file)
@@ -24,6 +24,10 @@ ifneq ($(ANALYSIS_INCLUDE),)
    ALICEINC += -I../$(ANALYSIS_INCLUDE)
 endif
 
+ifneq ($(OADB_INCLUDE),)
+   ALICEINC += -I../$(OADB_INCLUDE)
+endif
+
 ifneq ($(ANALYSISalice_INCLUDE),)
    ALICEINC += -I../$(ANALYSISalice_INCLUDE)
 endif
index 1c9cfba..25575d6 100644 (file)
@@ -244,8 +244,9 @@ void AliOADBContainer::WriteToFile(char* fname) const
 {
   //
   // Write object to file
-  TFile* f = new TFile(fname, "recreate");
+  TFile* f = new TFile(fname, "update");
   Write();
+  f->Purge();
   f->Close();
 }
 
index f6e8ec2..fc3ec3f 100644 (file)
@@ -13,6 +13,10 @@ endif
 
 ALICEINC = -I.
 
+ifneq ($(STEERBase_INCLUDE),)
+   ALICEINC += -I../$(STEERBase_INCLUDE)
+endif
+
 ifneq ($(OADB_INCLUDE),)
    ALICEINC += -I../$(OADB_INCLUDE) 
 endif
index bf8ce48..c7d3ef1 100644 (file)
@@ -1,5 +1,18 @@
-void SETUP()
+Int_t SETUP()
 {
-   // Set our location, so that other packages can find us
-   gSystem->Setenv("OADB_PATH", "OADB");
+  // load library
+  gSystem->Load("libOADB");
+
+  // set include path
+  gROOT->ProcessLine(".include OADB");
+
+  // Set our location, so that other packages can find us
+  gSystem->Setenv("OADB_INCLUDE", "OADB");
+  
+  // path for the root files
+  gSystem->Setenv("OADB_PATH", "OADB");
+
+  // We're happy
+  return 0;
+
 }