]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
SETUP.C for EventMixng was fixed. Following SETUP.C from STEERBase
authormvala <mvala@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Mar 2012 13:09:09 +0000 (13:09 +0000)
committermvala <mvala@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Mar 2012 13:09:09 +0000 (13:09 +0000)
ANALYSIS/PROOF-INF.EventMixing/SETUP.C

index ea241f98124a0db8554f607d80a623af8f55dc31..9998d652689aa9060c301f67a90b2f5833c8c3d2 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;
+   
 }