-Int_t SETUP() {
- Printf("Hello world!");
+// Automatically generated SETUP.C for @PARMODULE@
+
+Int_t SETUP()
+{
+ TString buf;
+ const char *wd = gSystem->WorkingDirectory();
+
+ // Set include path for CINT (PARfile is unpacked as a subfolder of current workdir)
+ buf.Form(".include %s", wd);
+ gROOT->ProcessLine(buf.Data());
+
+ // Prepend include path for other stuff
+ buf.Form("-I%s %s", wd, gSystem->GetIncludePath());
+ gSystem->SetIncludePath(buf.Data());
+
+ // Prepend library path
+ buf.Form("%s:%s", wd, gSystem->GetDynamicPath());
+ gSystem->SetDynamicPath(buf.Data());
+
+ // Load library
+ if ( gSystem->Load("lib@PARMODULE@") < 0 ) {
+ // Error loading
+ return -1;
+ }
+
+ // Set our location, so that other packages can find us
+ //gSystem->Setenv("@PARMODULE@_INCLUDE", "@PARMODULE@");
+
+ // Set our lib coordinates, so that other packages can link to us
+ //buf.Form("-L%s -l@PARMODULE@", wd);
+ //gSystem->Setenv("@PARMODULE@_LIBS", buf.Data());
+
+ return 0;
}