24 TB.
checkFile(gSystem->Getenv(
"CWB_ROOTLOGON_FILE"));
25 TB.
checkFile(gSystem->Getenv(
"CWB_PARAMETERS_FILE"));
26 TB.
checkFile(gSystem->Getenv(
"CWB_NETC_FILE"));
31 if(gSystem->Getenv(
"CWB_COMPILE_MACRO_NAME")!=NULL) {
33 macroPath=
TString(gSystem->Getenv(
"CWB_COMPILE_MACRO_NAME"));
37 if(!macroPath.EndsWith(
".C"))
38 {cout <<
"cwb_compile - Error : macro : " << macroPath <<
" must have extension .C" << endl;gSystem->Exit(1);}
41 libPath.ReplaceAll(
".C",
"_C");
50 cout << endl <<
"cwb_compile : Macro compilation ..." << endl << endl;
51 int success = gSystem->CompileMacro(
TString(macroTmp).Data(),
"kf",libPath);
53 cout << endl <<
"cwb_compile : Macro Compilation Failed !!! " << endl << endl;
58 int check = gROOT->LoadMacro((libPath+
".so").Data(),&error,
true);
60 cout << endl <<
"cwb_compile : Macro Compilation Failed !!! " << endl << endl;
66 macroTmp1.ReplaceAll(
".C",
"_C_ACLiC_dict_rdict.pcm");
67 sprintf(command,
"/bin/rm -f %s", macroTmp1.Data());
68 error=gSystem->Exec(command);
70 cout << endl <<
"cwb_compile - Error -> " << command << endl << endl;
75 macroTmp2.ReplaceAll(
".C",
"_C.d");
76 sprintf(command,
"/bin/rm -f %s", macroTmp2.Data());
77 error=gSystem->Exec(command);
79 cout << endl <<
"cwb_compile - Error -> " << command << endl << endl;
83 cout << endl <<
"cwb_compile : Macro successfully compiled !!! " << endl << endl;
sprintf(command, "/bin/rm -f %s", macroTmp1.Data())