// $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.
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));
}
}
}
// 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");