6 void SandBox(Bool_t closeGeo =
true, Bool_t draw =
true ) {
7 printf(
"\nIN SAND_BOX: closeGeo=%d draw=%d\n",closeGeo,draw);
8 gSystem -> Load (
".$STAR_HOST_SYS/lib/libStarAgmlLib.so");
9 gSystem -> Load (
".$STAR_HOST_SYS/lib/libStarGeometry.so");
10 gSystem -> Load (
".$STAR_HOST_SYS/lib/libGeometry.so");
13 AgBlock::SetStacker(
new StarTGeoStacker() );
16 builder =
new Geometry();
22 builder -> ConstructGeometry(
"SandBox");
28 if(closeGeo) gGeoManager -> CloseGeometry();
37 gGeoManager -> SetVisLevel(10);
41 gGeoManager -> GetTopVolume() -> Draw(
"ogl");
58 geom.select =
"SandBox"; {
61 geom.sconFlag =
"SCON13"; geom.sconStat = 0;
62 geom.tpceFlag =
"TPCE04"; geom.tpceStat = 0;
63 geom.btofFlag =
"BTOFc6"; geom.btofStat = 0;
64 geom.calbFlag =
"CALB02"; geom.calbStat = 0;
66 geom.vpddFlag =
"VPDD07"; geom.vpddStat = 0;
67 geom.ftpcFlag =
"FTPC01"; geom.ftpcStat = 0;
68 geom.svttFlag =
"SVTTof"; geom.svttStat = 0;
69 geom.phmdFlag =
"PHMDof"; geom.phmdStat = 0;
71 geom.ftroFlag =
"FTRO01"; geom.ftroStat = 0;
72 geom.mutdFlag =
"MUTD03"; geom.mutdStat = 0;
74 geom.sisdFlag =
"SISDof"; geom.sisdStat = 0;
75 geom.ecalFlag =
"ECALv6"; geom.ecalStat = 0;
76 geom.fpdmFlag =
"FPDM03"; geom.fpdmStat = 0;
78 geom.bbcmFlag =
"BBCMon"; geom.bbcmStat = 0;
79 geom.caveFlag =
"CAVE04"; geom.caveStat = 1;
80 geom.pipeFlag =
"PIPE06"; geom.pipeStat = 1;
81 geom.fgtdFlag =
"FGTDon"; geom.fgtdStat = 1;
82 geom.fgtdFlag =
"FGMOon"; geom.fgtdStat = 0;
83 geom.magpFlag =
"MAGPon"; geom.magpStat = 0;
85 geom.closeGeometry =
false;
87 geom.SetTitle(
"STAR Geometry SanBox");
97 Bool_t ConstructFgtd()
102 AgStructure::AgDetpNew(
"FgtdGeo3",
"Forward Gem Tracker Configuration" );
107 AgStructure::AgDetpAdd(
"Fgtg_t",
"configjan", (
float)2 );
119 builder -> CreateModule(
"FgtdGeo3" );
138 mygeom =
new TObjectSet(
"Geometry",gGeoManager,kFALSE);
139 mygeom->SetTitle(
"Dyson");
153 const Char_t *invisible[] =
162 TGeoVolume *volume = 0;
163 for ( UInt_t i=0;i<
sizeof(invisible)/
sizeof(Char_t *);i++ )
165 volume = gGeoManager->FindVolumeFast( invisible[i] );
167 volume->InvisibleAll();
168 volume->SetVisDaughters(
false);
176 Int_t color_map[] = {kGray+2,1,42,kGreen+2, 11,32,kBlue-9,22,8};
178 TIter next( gGeoManager->GetListOfVolumes() );
179 while ((volume=(TGeoVolume*)next()))
181 Int_t color = volume->GetLineColor();
183 color = color_map[color];
184 volume->SetLineColor(color);
185 volume->SetFillColor(color);
187 TString name=volume->GetName();
188 if ( name==
"TPAD" || name==
"TPA1" || name==
"TPSS" )
190 volume->SetLineColor(47);
191 volume->SetFillColor(47);