9 Char_t *libs[] = {
"libTable",
"Star2Root",
"St_base",
"xdf2root",
"St_Tables"
10 ,
"StChain",
"StUtilities",
"StBFChain"};
15 Int_t nlist =
sizeof(libs)/
sizeof(Char_t *);;
17 if (strcmp(gSystem.GetName(),
"WinNT") == 0 )
20 gSystem.Load(
"Root_html");
21 AFS =
"//sol/afs_rhic";
28 for(Int_t i=0;i<nlist;i++) {
29 strcpy(buffer,libs[i]);
30 if (gSystem.Load(buffer)) printf(
" Loading DLL \"%s\" failed \n",buffer);
35 gSystem->Load(
"libTable");
36 gSystem->Load(
"Star2Root");
37 gSystem->Load(
"St_base");
38 gSystem->Load(
"St_baseTest");
39 gSystem->Load(
"xdf2root");
40 gSystem->Load(
"St_Tables");
44 gSystem->Load(
"StChain");
45 gSystem->Load(
"StUtilities");
46 gSystem->Load(
"StBFChain");
48 gSystem->Load(
"St_TLA_Maker.so");
49 gSystem->Load(
"St_io_Maker.so");
50 gSystem->Load(
"St_xdfin_Maker");
51 gSystem->Load(
"StarClassLibrary");
52 gSystem->Load(
"StEvent");
54 gSystem->Load(
"St_geom_Maker");
55 gSystem->Load(
"StEventDisplayMaker");
67 THtml *html =
new THtml();
69 TString STAR =
"$STAR/.$STAR_SYS/obj";
70 TString ROOTSYS =
"$ROOTSYS/.$STAR_SYS/obj";
76 sourcedir +=
"$STAR/include:";
77 sourcedir +=
"$STAR/include/tables:";
78 sourcedir +=
"$ROOTSYS/ROOT/root/STAR:";
80 sourcedir +=
"/StRoot/St_base:";
82 sourcedir +=
"/StRoot/St_baseTest:";
84 sourcedir +=
"/.share/tables:";
86 sourcedir +=
"/include:";
88 sourcedir +=
"/include/tables:";
90 sourcedir +=
"/StRoot/StEvent:";
92 sourcedir +=
"/StRoot/StBFChain:";
94 sourcedir +=
"/StRoot/StChain:";
96 sourcedir +=
"/StRoot/St_TLA_Maker:";
98 sourcedir +=
"/StRoot/StPadDisplay:";
100 sourcedir +=
"/StRoot/StarClassLibrary:";
101 sourcedir +=
"$ROOTSYS";
102 sourcedir +=
"/src:";
104 sourcedir +=
"/StRoot/St_geom_Maker:";
106 sourcedir +=
"/StRoot/StEventDisplayMaker"; }
111 lookup +=
"/.share/tables;../St_base;";
113 lookup +=
".share/St_base";
118 lookup +=
"$ROOTSYS/ROOT/root/STAR:";
119 lookup +=
"$ROOTSYS/include:";
121 lookup +=
"/StRoot/StChain:";
123 lookup +=
"/include:";
125 lookup +=
"/include/tables:";
127 lookup +=
"/StRoot/xdf2root:";
129 lookup +=
"/.share/tables:";
131 lookup +=
"/StRoot/St_base:";
133 lookup +=
"/StRoot/StChain:";
135 lookup +=
"/StRoot/StBFChain:";
137 lookup +=
"/StRoot/St_baseTest:";
139 lookup +=
"/StRoot/St_TLA_Maker:";
141 lookup +=
"/StRoot/St_io_Maker:";
143 lookup +=
"/StRoot/St_geom_Maker:";
145 lookup +=
"/StRoot/StPadDisplayMaker:";
147 lookup +=
"/StRoot/StEventDisplayMaker:";
149 lookup +=
"/StRoot/StEvent:";
150 lookup +=
"$ROOTSYS";
153 lookup +=
"/StRoot/StarClassLibrary";
157 html->SetSourceDir(lookup.Data());
160 html->SetOutputDir(
"J:/Public/STAF/draft/base/html");
162 html->SetOutputDir(
"$STAR/StRoot/html");
166 Char_t *classes[] = {
"TTableSorter",
"TCL",
"StMicky",
"TTableDescriptor"
167 ,
"St_XDFFile",
"St_Module",
"TTable"
168 ,
"TDataSet",
"TDataSetIter",
"TFileSet"
169 ,
"StParticleView",
"TObjectSet",
"TVolume",
"TVolumePosition"
170 ,
"StMaker",
"StChain",
"TVolumeView"
171 ,
"table_head_st",
"TVolumeViewIter",
"TPolyLineShape"
172 ,
"TPoints3D",
"St_PolyLine3D",
"TPointsArray3D"
173 ,
"TTable3Points",
"TTablePoints",
"StDefaultFilter"
174 ,
"St_io_Maker",
"StHelix3DPoints",
"StHits3DPoints"
175 ,
"StObjArray",
"StHit",
"StHelixD"
177 ,
"St_geom_Maker",
"StPadDisplayMaker",
"St_TLA_Maker"
178 ,
"StBFChain",
"StEventDisplayMaker",
179 ,
"StVirtualEventFilter",
"TTableIter"
180 ,
"St_srs_Maker",
"St_xdfin_Maker"
187 gROOT->LoadMacro(
"$STAF/inc/table_header.h");
190 gROOT->LoadMacro(
"$STAF/inc/table_header.h");
192 TClass header1(
"table_head_st",1,
"table_header.h",
"table_header.h");
194 const Char_t* htmlTree =
"$STAR/StRoot/html";
195 if (gSystem->AccessPathName(htmlTree) && !NT) {
196 gSystem->MakeDirectory(htmlTree);
201 for (i=0;i<nclass;i++) html.MakeClass(classes[i],kTRUE);
207 while (table = nextTable()) {
208 TString tabName = table.GetName();
209 tabName.ReplaceAll(
"St_",
"");
210 tabName.ReplaceAll(
"_Table.h",
"");
212 html.MakeClass(tabName.Data());
214 tabName = table.GetName();
215 tabName.ReplaceAll(
"_Table.h",
"");
216 html.MakeClass(tabName.Data());
219 TString giffile = STAR;
220 giffile +=
"/StRoot/html/src/gif";
222 if (gSystem->AccessPathName(giffile.Data()) && !NT) {
224 printf(
" Image directiry is created: <%s>\n", giffile.Data());
225 gSystem->MakeDirectory(giffile.Data());
226 gSystem->Exec(
"cp /afs/rhic.bnl.gov/star/packages/pro/StRoot/html/src/gif/*.* /afs/rhic.bnl.gov/star/packages/adev/StRoot/html/src/gif");
229 gSystem->Symlink(
"../src/gif",
"/afs/rhic.bnl.gov/star/packages/adev/StRoot/html/examples/gif");
230 gSystem->Symlink(
"src/gif",
"/afs/rhic.bnl.gov/star/packages/adev/StRoot/html/gif");
236 cout <<
" Making HTML's for macros" << endl;
237 const Char_t *macros[] = {
238 "/test/micky.C" ,
"\"Micky\" to test the <matrix> and <triangilar matrix> methods"
239 ,
"/test/test10.C",
"How to use the dataset iterator class"
240 ,
"/test/test9.C",
"How to read the event from XDF file and build some histograms with ROOT"
241 ,
"/test/XDFcopy.C",
"How to read/write XDF file"
242 ,
"/test/XDFtest.C",
"How to read/write XDF and ROOT files"
243 ,
"/graphics/TurnDisplay.C",
"Macro to plug StEventDisplayMaker into chain and turn it on."
244 ,
"/graphics/SetObjectFilter.C",
"Macro to adjust the parameters of the current \"event filter\"."
245 ,
"/graphics/TrackFilters/StTrackFilter.cxx",
"an example of the implementation of the \"advanced\" event filter."
246 ,
"/graphics/TrackFilters/StTrackFilter.h",
"an example of the definition of the \"advanced\" event filter."
247 ,
"/graphics/boldStyle.C",
"Style file for making presentation histograms."
248 ,
"/graphics/videoStyle.C",
"Style file for video presentation histograms."
249 ,
"/graphics/PadBrowser.C",
"How to use St_geom_Maker and StPadDisplayMaker"
250 ,
"/graphics/basic3dPrimitives.C",
"An example of the basic 3D STAR object"
251 ,
"/graphics/EventPanel.C",
"An example of the ToolBar to control an applications"
252 ,
"/graphics/DrawTpcHits.C",
"How to draw 3D view for hits and"
253 ,
"/graphics/DrawTrackTpcHits.C",
"How to draw 3D view for hits and tracks"
254 ,
"/graphics/PadControlPanel.C",
"How to manipulate with 3D pad images"
255 ,
"/graphics/HitsDraw.C",
"3D drawing of the STAR Geometry and the hits from the STAF table"
256 ,
"/graphics/SubDetectorView.C",
"How to create sub-detector view"
257 ,
"/graphics/StarFromWeb.C",
"Access to ROOT/GEANT geometry database"
258 ,
"/graphics/STAR_shapes.C",
"Test for the basic STAR GEOMETRY classes"
259 ,
"/graphics/StarView.C",
"How to Draw the local STAR 3D geometry"
260 ,
"/graphics/StarWebView.C",
"How to Draw the remote STAR 3D geometry"
261 ,
"/graphics/StarGeom.C",
"An example of the ROOT/STAR/GEANT interface"
263 ,
"/html/GetEvent.C",
"An example of the reading MDC2 dst events"
264 ,
"/html/makedoc.C",
"How to create the HTML documentation"
266 ,
"/QA_Hist_Draw.C",
"An example of the plotting postscript file of the MDC2 histograms"
268 ,
"/examples/TestSorter.C",
"An example of the STAF table sort utility"
269 ,
"/examples/XDFBrowser.C",
"XDF file interactive ROOT browser"
271 ,
"/tss.C" ,
"\"TPC slow simulator\" chain"
272 ,
"/bfc.C",
"An example of the \"Big Full Chain\" production chain"
273 ,
"/bfcx.C",
"An example of the \"Big Full Chain\" production chain"
274 ,
"/ebye.C",
"An example of\"Event by Event\" production chain"
275 ,
"/STAR_Demos.C",
"The source of the STAR_demos macro"
279 html.Convert(
"//hepburn/common/p32/root/star/macros/CallMevSaveXDF.cxx",
"How to call STAF module");
280 html.Convert(
"//hepburn/common/p32/root/star/macros/par_anal.cxx",
"How to pick the XDF file up with ROOT");
281 html.Convert(
"//hepburn/common/p32/root/star/macros/MakeHists.cxx",
"How to read the event from XDF file and build some histograms with ROOT");
284 html.Convert(
"./CallMevSaveXDF.cxx",
"How to call STAF module");
285 html.Convert(
"./par_anal.cxx",
"How to pick the XDF file up with ROOT");
286 html.Convert(
"./MakeHists.cxx",
"How to read the event from XDF file and build some histograms with ROOT");
295 Int_t lmacros =
sizeof(macros)/
sizeof(Char_t *);
296 for (
int i = 0; i < lmacros; i+=2) {
297 TString starRoot =
"$STAR/StRoot/macros";
298 starRoot += macros[i];
299 html.Convert(starRoot.Data(),macros[i+1]);
303 html.MakeClass(
"EModuleTypes");