38 printf(
" Loading share library\n");
39 gSystem->Load(
"libSTAR");
40 if (!gGeometry)
new TGeometry;
45 TWebFile f(
"http://www.star.bnl.gov/~fine/star_year_2a.root");
49 printf(
"Sorry, STAR hall was not found !\n");
58 volume(
"HALL")->Mark();
59 ((
TVolume *)volume(
"HALL"))->SetVisibility(1);
60 volume.
Cd(
"HALL/CAVE");
62 nextNode = (
TVolume *)volume(
"SVTT/SCON");
68 nextNode = (
TVolume *)volume(
"SVTT/SCON/STAC");
75 nextNode = (
TVolume *)volume(
"SVTT/SCON/SHLA/SHMA/SHWA");
81 nextNode = (
TVolume *)volume(
"SVTT/SCON/SHLB/SHMB/SHWA");
87 nextNode = (
TVolume *)volume(
"MAGP/COIL/MCSE");
94 TDataSetIter bmtc(volume(
"BTOF/BTOH/BSEC/BTRA/BXTR/BMTC"));
96 while( node = (
TVolume *) bmtc()) {
97 if( strcmp(node->GetName(),
"BXSA")) node->Mark();
111 printf(
" Range for %s node is x: %f-%f; y: %f-%f; z: %f-%f\n",
112 bmtcNode->GetName(), min[0],max[0],min[1],max[1],min[2],max[2]);
115 printf(
" Range for %s node is x: %f-%f; y: %f-%f; z: %f-%f\n",
116 s->GetName(), min[0],max[0],min[1],max[1],min[2],max[2]);
119 printf(
" Creating an empty TCanvas object to draw in\n");
125 TVirtualPad *thisPad = gPad;
126 TView *view = thisPad->GetView();
127 view->SetRange(min,max);
virtual TDataSet * Cd(const Char_t *dirname)
virtual void SetVisibility(ENodeSEEN vis=TVolume::kBothVisible)
virtual void GetLocalRange(Float_t *min, Float_t *max)
virtual void ls(Option_t *option="") const
virtual TDataSet * FindByName(const Char_t *name, const Char_t *path="", Option_t *opt="")
to be documented
virtual void Draw(Option_t *depth="3")
Draw Referenced node with current parameters.
virtual Int_t GetGlobalRange(const TVolumeView *rootNode, Float_t *min, Float_t *max)