2 gSystem.Load(
"St_base");
6 printf(
" The module with NO parameter has been created: <%s> \n",defmodule.CheckParameters()?
"Failed" :
"Ok" );
8 printf(
" Module with 1 parameters is <%s> \n",module->CheckParameters()?
"Failed" :
"Ok" );
10 printf(
" \n ------ \n The Warning message should follow:\n");
11 defmodule((ULong_t *)0,&second);
12 printf(
" \n ------ \n The Error message should follow:\n");
13 printf(
" Check Parameters: %d \n",defmodule->CheckParameters());
15 printf(
" \n ------ \n 2 <good> messages expected: \n");
16 module((ULong_t *)0,&second);
18 module((ULong_t *)0,&second,(ULong_t *)0,(ULong_t *)0,&first,&second);
19 module->CheckParameters();
20 const Char_t *name[]= {
"First",
"Second"};
21 module->CheckParameters(name);
23 printf(
"Checking the post-module diagnostics\n");
33 module_check =
new St_Module((ULong_t *)&h1,&first,(ULong_t *)&h2,&second);
34 printf(
"Everything Ok!\n");
35 Int_t res = module_check();
36 module_check->CheckResults(res,name);
39 printf(
"First header is wrong!\n");
40 module_check->CheckResults(res,name);
43 Int_t res = module_check();
44 printf(
"First header and second one are wrong!\n");
45 module_check->CheckResults(res,name);