]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/macros/alieve_init.C
Use new Alieve::Event initialization.
[u/mrichter/AliRoot.git] / EVE / macros / alieve_init.C
index 19f09a6a462e1c9193193867530039867934f7dc..c44a6e88cd0e6072e03110578666b9be5c4be817 100644 (file)
@@ -1,8 +1,8 @@
 // $Header$
 
-void alieve_init(const Text_t* path=".", Int_t event=0,
-                Bool_t use_runloader=kTRUE, Bool_t use_esd=kTRUE,
-                Bool_t avoid_exceptions_on_open=kTRUE)
+void alieve_init(const Text_t* path   = ".", Int_t event=0,
+                const Text_t* cdburi = 0,
+                Bool_t assert_runloader=kFALSE, Bool_t assert_esd=kFALSE)
 {
 
   // Set-up environment, load libraries.
@@ -25,7 +25,13 @@ void alieve_init(const Text_t* path=".", Int_t event=0,
     while((filename = gSystem->GetDirEntry(dirhandle)) != 0) {
       if(re.Match(filename)) {
        printf("Adding macro '%s'\n", filename);
-       f->Add(new Reve::RMacro(Form("%s/%s", macdir.Data(), filename)));
+       //PH The line below is replaced waiting for a fix in Root
+       //PH which permits to use variable siza arguments in CINT
+       //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+       // f->Add(new Reve::RMacro(Form("%s/%s", macdir.Data(), filename)));
+       char fullName[1000];
+       sprintf(fullName,"%s/%s", macdir.Data(), filename);
+       f->Add(new Reve::RMacro(fullName));
       }
     }
   }
@@ -41,8 +47,8 @@ void alieve_init(const Text_t* path=".", Int_t event=0,
 
   // Open event
   if(path != 0) {
-    Alieve::Event::Initialize(use_runloader, use_esd, avoid_exceptions_on_open);
-
+    Alieve::Event::SetCdbUri(cdburi);
+    Alieve::Event::SetAssertElements(assert_runloader, assert_esd);
     printf("Opening event %d from '%s' ...", event, path); fflush(stdout);
     Alieve::gEvent = new Alieve::Event(path, event);
     printf(" done.\n");