00001
00002
00003
00004
00005
00006 {
00007
00008 gROOT.Reset();
00009 Char_t *libs[] = { "libTable", "Star2Root","St_base","xdf2root","St_Tables"
00010 , "StChain","StUtilities","StBFChain"};
00011
00012 TString AFS;
00013
00014 Char_t *suffix=0;
00015 Int_t nlist = sizeof(libs)/sizeof(Char_t *);;
00016 Bool_t NT=kFALSE;
00017 if (strcmp(gSystem.GetName(),"WinNT") == 0 )
00018 {
00019 NT=kTRUE;
00020 gSystem.Load("Root_html");
00021 AFS = "//sol/afs_rhic";
00022 }
00023 else
00024 AFS = "/afs/rhic";
00025
00026 Char_t buffer[256];
00027 if (NT) {
00028 for(Int_t i=0;i<nlist;i++) {
00029 strcpy(buffer,libs[i]);
00030 if (gSystem.Load(buffer)) printf(" Loading DLL \"%s\" failed \n",buffer);
00031 }
00032
00033 }
00034 else {
00035 gSystem->Load("libTable");
00036 gSystem->Load("Star2Root");
00037 gSystem->Load("St_base");
00038 gSystem->Load("St_baseTest");
00039 gSystem->Load("xdf2root");
00040 gSystem->Load("St_Tables");
00041
00042
00043
00044 gSystem->Load("StChain");
00045 gSystem->Load("StUtilities");
00046 gSystem->Load("StBFChain");
00047
00048 gSystem->Load("St_TLA_Maker.so");
00049 gSystem->Load("St_io_Maker.so");
00050 gSystem->Load("St_xdfin_Maker");
00051 gSystem->Load("StarClassLibrary");
00052 gSystem->Load("StEvent");
00053
00054 gSystem->Load("St_geom_Maker");
00055 gSystem->Load("StEventDisplayMaker");
00056
00057
00058
00059
00060
00061
00062
00063 }
00064
00065
00066
00067 THtml *html = new THtml();
00068
00069 TString STAR = "$STAR/.$STAR_SYS/obj";
00070 TString ROOTSYS = "$ROOTSYS/.$STAR_SYS/obj";
00071
00072 TString sourcedir;
00073 sourcedir = "$STAR";
00074 if (!NT) {
00075 sourcedir += ":";
00076 sourcedir += "$STAR/include:";
00077 sourcedir += "$STAR/include/tables:";
00078 sourcedir += "$ROOTSYS/ROOT/root/STAR:";
00079 sourcedir = STAR;
00080 sourcedir += "/StRoot/St_base:";
00081 sourcedir += STAR;
00082 sourcedir += "/StRoot/St_baseTest:";
00083 sourcedir += "$STAR";
00084 sourcedir += "/.share/tables:";
00085 sourcedir += "$STAR";
00086 sourcedir += "/include:";
00087 sourcedir += "$STAR";
00088 sourcedir += "/include/tables:";
00089 sourcedir += STAR;
00090 sourcedir += "/StRoot/StEvent:";
00091 sourcedir += STAR;
00092 sourcedir += "/StRoot/StBFChain:";
00093 sourcedir += STAR;
00094 sourcedir += "/StRoot/StChain:";
00095 sourcedir += STAR;
00096 sourcedir += "/StRoot/St_TLA_Maker:";
00097 sourcedir += STAR;
00098 sourcedir += "/StRoot/StPadDisplay:";
00099 sourcedir += STAR;
00100 sourcedir += "/StRoot/StarClassLibrary:";
00101 sourcedir += "$ROOTSYS";
00102 sourcedir += "/src:";
00103 sourcedir += STAR;
00104 sourcedir += "/StRoot/St_geom_Maker:";
00105 sourcedir += STAR;
00106 sourcedir += "/StRoot/StEventDisplayMaker"; }
00107
00108 TString lookup ;
00109 if (NT) {
00110 lookup = STAR;
00111 lookup += "/.share/tables;../St_base;";
00112 lookup += STAR;
00113 lookup += ".share/St_base";
00114 }
00115 else {
00116 lookup = "$STAR";
00117 lookup += ":";
00118 lookup += "$ROOTSYS/ROOT/root/STAR:";
00119 lookup += "$ROOTSYS/include:";
00120 lookup += "$STAR";
00121 lookup += "/StRoot/StChain:";
00122 lookup += "$STAR";
00123 lookup += "/include:";
00124 lookup += "$STAR";
00125 lookup += "/include/tables:";
00126 lookup += STAR;
00127 lookup += "/StRoot/xdf2root:";
00128 lookup += STAR;
00129 lookup += "/.share/tables:";
00130 lookup += STAR;
00131 lookup += "/StRoot/St_base:";
00132 lookup += STAR;
00133 lookup += "/StRoot/StChain:";
00134 lookup += STAR;
00135 lookup += "/StRoot/StBFChain:";
00136 lookup += STAR;
00137 lookup += "/StRoot/St_baseTest:";
00138 lookup += STAR;
00139 lookup += "/StRoot/St_TLA_Maker:";
00140 lookup += STAR;
00141 lookup += "/StRoot/St_io_Maker:";
00142 lookup += STAR;
00143 lookup += "/StRoot/St_geom_Maker:";
00144 lookup += STAR;
00145 lookup += "/StRoot/StPadDisplayMaker:";
00146 lookup += STAR;
00147 lookup += "/StRoot/StEventDisplayMaker:";
00148 lookup += STAR;
00149 lookup += "/StRoot/StEvent:";
00150 lookup += "$ROOTSYS";
00151 lookup += "/src:";
00152 lookup += STAR;
00153 lookup += "/StRoot/StarClassLibrary";
00154 }
00155
00156
00157 html->SetSourceDir(lookup.Data());
00158
00159 if (NT)
00160 html->SetOutputDir("J:/Public/STAF/draft/base/html");
00161 else
00162 html->SetOutputDir("$STAR/StRoot/html");
00163
00164
00165
00166 Char_t *classes[] = { "TTableSorter", "TCL", "StMicky", "TTableDescriptor"
00167 ,"St_XDFFile", "St_Module", "TTable"
00168 ,"TDataSet", "TDataSetIter", "TFileSet"
00169 ,"StParticleView","TObjectSet", "TVolume", "TVolumePosition"
00170 ,"StMaker", "StChain", "TVolumeView"
00171 ,"table_head_st", "TVolumeViewIter", "TPolyLineShape"
00172 ,"TPoints3D", "St_PolyLine3D", "TPointsArray3D"
00173 ,"TTable3Points", "TTablePoints", "StDefaultFilter"
00174 ,"St_io_Maker", "StHelix3DPoints", "StHits3DPoints"
00175 ,"StObjArray", "StHit", "StHelixD"
00176 ,"StTrack",
00177 ,"St_geom_Maker", "StPadDisplayMaker", "St_TLA_Maker"
00178 ,"StBFChain", "StEventDisplayMaker",
00179 ,"StVirtualEventFilter", "TTableIter"
00180 ,"St_srs_Maker", "St_xdfin_Maker"
00181 };
00182 Int_t nclass = 40;
00183 html.MakeIndex();
00184
00185
00186 if (NT) {
00187 gROOT->LoadMacro("$STAF/inc/table_header.h");
00188 }
00189 else
00190 gROOT->LoadMacro("$STAF/inc/table_header.h");
00191
00192 TClass header1("table_head_st",1,"table_header.h","table_header.h");
00193
00194 const Char_t* htmlTree = "$STAR/StRoot/html";
00195 if (gSystem->AccessPathName(htmlTree) && !NT) {
00196 gSystem->MakeDirectory(htmlTree);
00197 }
00198
00199
00200 Int_t i=0;
00201 for (i=0;i<nclass;i++) html.MakeClass(classes[i],kTRUE);
00202
00203
00204 St_FileSet tableDir("$STAR/include/tables");
00205 St_DataSetIter nextTable(&tableDir);
00206 St_DataSet *table = 0;
00207 while (table = nextTable()) {
00208 TString tabName = table.GetName();
00209 tabName.ReplaceAll("St_","");
00210 tabName.ReplaceAll("_Table.h","");
00211 tabName += "_st";
00212 html.MakeClass(tabName.Data());
00213
00214 tabName = table.GetName();
00215 tabName.ReplaceAll("_Table.h","");
00216 html.MakeClass(tabName.Data());
00217 }
00218
00219 TString giffile = STAR;
00220 giffile += "/StRoot/html/src/gif";
00221 if (!NT) {
00222 if (gSystem->AccessPathName(giffile.Data()) && !NT) {
00223
00224 printf(" Image directiry is created: <%s>\n", giffile.Data());
00225 gSystem->MakeDirectory(giffile.Data());
00226 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");
00227 }
00228
00229 gSystem->Symlink("../src/gif","/afs/rhic.bnl.gov/star/packages/adev/StRoot/html/examples/gif");
00230 gSystem->Symlink("src/gif","/afs/rhic.bnl.gov/star/packages/adev/StRoot/html/gif");
00231
00232
00233 }
00234
00235
00236 cout << " Making HTML's for macros" << endl;
00237 const Char_t *macros[] = {
00238 "/test/micky.C" , "\"Micky\" to test the <matrix> and <triangilar matrix> methods"
00239 , "/test/test10.C", "How to use the dataset iterator class"
00240 , "/test/test9.C", "How to read the event from XDF file and build some histograms with ROOT"
00241 , "/test/XDFcopy.C", "How to read/write XDF file"
00242 , "/test/XDFtest.C", "How to read/write XDF and ROOT files"
00243 , "/graphics/TurnDisplay.C", "Macro to plug StEventDisplayMaker into chain and turn it on."
00244 , "/graphics/SetObjectFilter.C", "Macro to adjust the parameters of the current \"event filter\"."
00245 , "/graphics/TrackFilters/StTrackFilter.cxx", "an example of the implementation of the \"advanced\" event filter."
00246 , "/graphics/TrackFilters/StTrackFilter.h", "an example of the definition of the \"advanced\" event filter."
00247 , "/graphics/boldStyle.C", "Style file for making presentation histograms."
00248 , "/graphics/videoStyle.C", "Style file for video presentation histograms."
00249 , "/graphics/PadBrowser.C", "How to use St_geom_Maker and StPadDisplayMaker"
00250 , "/graphics/basic3dPrimitives.C","An example of the basic 3D STAR object"
00251 , "/graphics/EventPanel.C", "An example of the ToolBar to control an applications"
00252 , "/graphics/DrawTpcHits.C", "How to draw 3D view for hits and"
00253 , "/graphics/DrawTrackTpcHits.C", "How to draw 3D view for hits and tracks"
00254 , "/graphics/PadControlPanel.C", "How to manipulate with 3D pad images"
00255 , "/graphics/HitsDraw.C", "3D drawing of the STAR Geometry and the hits from the STAF table"
00256 , "/graphics/SubDetectorView.C", "How to create sub-detector view"
00257 , "/graphics/StarFromWeb.C", "Access to ROOT/GEANT geometry database"
00258 , "/graphics/STAR_shapes.C", "Test for the basic STAR GEOMETRY classes"
00259 , "/graphics/StarView.C", "How to Draw the local STAR 3D geometry"
00260 , "/graphics/StarWebView.C", "How to Draw the remote STAR 3D geometry"
00261 , "/graphics/StarGeom.C", "An example of the ROOT/STAR/GEANT interface"
00262
00263 , "/html/GetEvent.C", "An example of the reading MDC2 dst events"
00264 , "/html/makedoc.C", "How to create the HTML documentation"
00265
00266 , "/QA_Hist_Draw.C", "An example of the plotting postscript file of the MDC2 histograms"
00267
00268 , "/examples/TestSorter.C", "An example of the STAF table sort utility"
00269 , "/examples/XDFBrowser.C", "XDF file interactive ROOT browser"
00270
00271 , "/tss.C" , "\"TPC slow simulator\" chain"
00272 , "/bfc.C", "An example of the \"Big Full Chain\" production chain"
00273 , "/bfcx.C", "An example of the \"Big Full Chain\" production chain"
00274 , "/ebye.C", "An example of\"Event by Event\" production chain"
00275 , "/STAR_Demos.C", "The source of the STAR_demos macro"
00276 };
00277
00278 if (NT) {
00279 html.Convert("//hepburn/common/p32/root/star/macros/CallMevSaveXDF.cxx","How to call STAF module");
00280 html.Convert("//hepburn/common/p32/root/star/macros/par_anal.cxx","How to pick the XDF file up with ROOT");
00281 html.Convert("//hepburn/common/p32/root/star/macros/MakeHists.cxx","How to read the event from XDF file and build some histograms with ROOT");
00282 }
00283 else {
00284 html.Convert("./CallMevSaveXDF.cxx","How to call STAF module");
00285 html.Convert("./par_anal.cxx","How to pick the XDF file up with ROOT");
00286 html.Convert("./MakeHists.cxx","How to read the event from XDF file and build some histograms with ROOT");
00287 }
00288
00289
00290
00291
00292
00293
00294
00295 Int_t lmacros = sizeof(macros)/sizeof(Char_t *);
00296 for (int i = 0; i < lmacros; i+=2) {
00297 TString starRoot = "$STAR/StRoot/macros";
00298 starRoot += macros[i];
00299 html.Convert(starRoot.Data(),macros[i+1]);
00300
00301 }
00302
00303 html.MakeClass("EModuleTypes");
00304 html.MakeIndex();
00305 }
00306
00307
00308
00309
00310
00311
00312
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331
00332
00333
00334
00335
00336
00337
00338
00339
00340
00341
00342
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00354
00355
00356
00357
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398
00399
00400