18 printf(
"******************************************************************** \n") ;
19 printf(
" Messages from Load.C \n") ;
20 printf(
"******************************************************************** \n") ;
26 if ( macroPATH.Contains(tmp.Data()) ==
false ) {
27 printf(
"- Add %s to the macros path \n",tmp.Data());
29 macroPATH.Prepend(tmp.Data()); gROOT->SetMacroPath(macroPATH.Data());
34 tmp.Prepend(
" .include ");
35 gROOT->ProcessLine(tmp.Data());
38 gSystem->Load(
"libGWCORE");
39 gSystem->Load(
"libGWADF");
40 gSystem->Load(
"libGWADFE");
41 gSystem->Load(
"libEve");
42 gSystem->Load(
"libGWTOOLS");
45 tmp =
"./MyWatchers" ;
printf(
"- Add %s to the include path \n",tmp.Data());
46 tmp.Prepend(
" .include ");
47 gROOT->ProcessLine(tmp.Data());
48 tmp =
"./DefaultWatchers" ;
printf(
"- Add %s to the include path \n",tmp.Data());
49 tmp.Prepend(
" .include ");
50 gROOT->ProcessLine(tmp.Data());
53 if ( gSystem->AccessPathName(
"./SetupWatchers.C") ) {
54 cout <<
"- Standard configuration (Default setup, SetupWatchers.C) installed " <<
endl;
55 gSystem->CopyFile(
"Macros/SetupWatchers.C",
"./SetupWatchers.C");
58 if ( gSystem->AccessPathName(
"MyWatchers") ) {
59 cout <<
"- Add personnal customisable watchers " <<
endl;
60 gSystem->mkdir(
"./MyWatchers");
61 gSystem->CopyFile(
"Macros/MyTree.h",
"MyWatchers/MyTree.h");
62 gSystem->CopyFile(
"Macros/MyTree.C",
"MyWatchers/MyTree.C");
65 gSystem->Load(
"DefaultWatchers/libWATCHERS");
70 TString tmp = gSystem->Getenv(
"PRISMA_PREPROC");
73 tmp =
"$PRISMA_PREPROC/src/lib_prisma/include/";
printf(
"- Add %s to the include path \n",tmp.Data());
74 tmp.Prepend(
" .include ");
75 gROOT->ProcessLine(tmp.Data());
78 gSystem->Load(
"$PRISMA_PREPROC/lib/libPRISMA.so");
81 if ( gSystem->AccessPathName(
"MyWatchers/PrismaWatchers.h") )
82 gSystem->CopyFile(
"Macros/PrismaWatchers.h",
"MyWatchers/PrismaWatchers.h");
83 if ( gSystem->AccessPathName(
"MyWatchers/PrismaWatchers.C") )
84 gSystem->CopyFile(
"Macros/PrismaWatchers.C",
"MyWatchers/PrismaWatchers.C");
86 tmp = Form(
".L MyWatchers/PrismaWatchers.C+%s",CompOpt);
87 gROOT->ProcessLine(tmp.Data());
92 tmp = Form(
".L MyWatchers/MyTree.C+%s",CompOpt);
93 gROOT->ProcessLine(tmp.Data());
97 cout <<
" To start online (Local Level) Watchers : " <<
endl;
98 cout <<
" - to watch one selected actor " <<
endl;
99 cout <<
" .x OnlineWatchersLLP.C+ or .x OnlineWatchersLLP.C+(new TFile(\"MySpectra.root\",\"UPDATE\"))" <<
endl;
100 cout <<
" - to watch simultaneously all the actors " <<
endl;
101 cout <<
" .x OnlineWatchersLLP.C+(0x0,true) or .x OnlineWatchersLLP.C+(new TFile(\"MySpectra.root\",\"UPDATE\"),true)" <<
endl;
102 cout <<
" To start online (Global Level) Watchers : " <<
endl;
103 cout <<
" .x OnlineWatchersGLP.C+ or .x OnlineWatchersGLP.C+(new TFile(\"MySpectra.root\",\"UPDATE\"))" <<
endl;
104 cout <<
" Then start the watching from the ROOT Browser " << endl <<
endl;
105 cout <<
" To start offline Watchers : " <<
endl;
106 cout <<
" 1 - Configure OfflineWatcher.C (it could be a copy of of the one in DefaultWatchers)" <<
endl;
107 cout <<
" 2 - Run the Watchers with : " <<
endl;
108 cout <<
" .x OfflineWatchers.C+ or .x OfflineWatchers.C+(new TFile(\"MySpectra.root\",\"UPDATE\"))" <<
endl;
112 TString adf_path = gSystem->Getenv(
"ADF_CONF_PATH");
113 if ( adf_path ==
"" ) {
114 if ( ! gSystem->AccessPathName(
"./ADF.conf") ) {
116 TString pwd_path = gSystem->Getenv(
"PWD");
118 gSystem->Setenv(
"ADF_CONF_PATH",pwd_path.Data());
120 printf(
"\n [Info] ADF_CONF_PATH has been set to %s \n\n ",pwd_path.Data());
123 cout <<
"\n ** [WARNING] ** , ADF_CONF_PATH not set ! " << endl <<
endl;
125 else printf(
"\n [Info] ADF_CONF_PATH is %s \n\n ",adf_path.Data());
128 TBrowser *
b =
new TBrowser();
printf("******************************************************************** \n")
ADF::LogMessage & endl(ADF::LogMessage &log)
static const char * GetPath(const char *)
to get a particular GW environment variable