23 cout <<
" Loading share library" << endl;
25 printf(
" Loading share library\n");
26 gSystem->Load(
"libSTAR");
27 if (!gGeometry)
new TGeometry;
31 cout <<
" Creating an empty TCanvas object to draw in" << endl;
32 TCanvas starCanvas(
"STAR",
"Star",400,600);
35 starCanvas.Divide(PadColumns,PadRows);
38 cout <<
" Open the remote Web file with STAR geometry database in ROOT format" << endl;
40 TFile f(
"~fine/WWW/atlas.root");
42 cout <<
" Reading STAR geometry database (the full size of this database 3Mb bytes - ROOT-object" << endl;
46 const Char_t *parts[] = {
"INNE"
51 const Int_t numParts =
sizeof(parts)/
sizeof(
void *);
52 cout << numParts <<
" different parts of the ATALS detector will be built" << endl;
54 for (Int_t i =0; i< numParts; i++) {
55 const Char_t *part = parts[i];
56 cout <<
"Drawing \"" << part <<
"\"" << endl;
64 cout <<
" Plot 3D view of the " << ThreeDPart <<
" part: " << parts[ThreeDPart-1] << endl <<
65 " Note: Under Windows NT OpenGL will be used by default instead x3d for UNIX" << endl <<
66 " ================================================================" << endl <<
67 " Select x3d windows and type \"m\" in there to get x3d HELP windows" << endl <<
68 " ================================================================" << endl <<
69 " DON NOT FORGET to type \"q\" letter to terminate x3d widget and" << endl <<
70 " to continue this session" << endl <<
71 " ================================================================" << endl;
72 starCanvas.cd(ThreeDPart);
75 cout <<
"Drawing ROOT TBrowser" << endl;
76 TBrowser b(
"STAR",HALL);
77 cout <<
"Now. Try yourself:" << endl <<
78 " 1. Select any STAR geometry TVolume object with \"double-left-mouse click\" on the TVolumePosition" << endl <<
79 " TVolume object has no \";<n>\" in its name." << endl <<
80 " The objects with trail \";<n>\" are TVolumePosition ones" << endl <<
81 " 2. Pop the context menu up with \"right-mouse click\" on the ROOT browser" << endl <<
82 " 3. Select \"Draw\" position" << endl <<
83 " 4. Click OK" << endl;
84 cout <<
" Get this macro form $(STAR)/StRoot/macro/StarFromWeb.C and customize it for fun" << endl;
virtual TDataSet * Cd(const Char_t *dirname)
virtual void Draw(Option_t *depth="3")