Use new Alieve::Event initialization.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Jun 2007 15:28:57 +0000 (15:28 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Jun 2007 15:28:57 +0000 (15:28 +0000)
EVE/macros/alieve_init.C

index f453ade9983e61f771c321525564b57f359b515f..c44a6e88cd0e6072e03110578666b9be5c4be817 100644 (file)
@@ -2,8 +2,7 @@
 
 void alieve_init(const Text_t* path   = ".", Int_t event=0,
                 const Text_t* cdburi = 0,
-                Bool_t use_runloader=kTRUE, Bool_t use_esd=kTRUE,
-                Bool_t avoid_exceptions_on_open=kTRUE)
+                Bool_t assert_runloader=kFALSE, Bool_t assert_esd=kFALSE)
 {
 
   // Set-up environment, load libraries.
@@ -48,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");