SETUP.C for EventMixng was fixed. Following SETUP.C from STEERBase
[u/mrichter/AliRoot.git] / ANALYSIS / PROOF-INF.EventMixing / SETUP.C
index ea241f9..9998d65 100644 (file)
@@ -1,9 +1,11 @@
-void SETUP()
+Int_t SETUP()
 {
-  // Load the ANALYSIS library
-
-   gSystem->SetDynamicPath(Form("%s:%s", gSystem->pwd(), gSystem->GetDynamicPath()));
-   gSystem->Load("libEventMixing");
+   // Load the EventMixing library
+   TString dypath = TString::Format("%s:%s", gSystem->WorkingDirectory(), gSystem->GetDynamicPath());
+   gSystem->SetDynamicPath(dypath);
+   
+   if (gSystem->Load("libEventMixing")<0) return -1;
 
    // Set the include paths
    gROOT->ProcessLine(".include EventMixing");
@@ -11,4 +13,11 @@ void SETUP()
 
    // Set our location, so that other packages can find us
    gSystem->Setenv("EventMixing_INCLUDE", "EventMixing");
+
+   // Set our lib coordinates, so that other packages can link to us
+   TString lib = TString::Format("-L%s -lEventMixing", gSystem->WorkingDirectory());
+   gSystem->Setenv("EventMixng_LIBS", lib.Data());
+   
+   return 0;
+   
 }