16 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
27 Double_t waferThickness = 200 *
eic::um;
30 Double_t waferWidth = 250 *
eic::mm;
31 Double_t waferSpacing = 100 *
eic::mm;
34 Double_t containerVolumeLength = (waferNum-1) * waferSpacing + waferThickness + (10 *
eic::mm);
35 Double_t containerVolumeWidth = waferWidth + (10 *
eic::mm);
38 TGeoBBox *container =
new TGeoBBox(
"ContainerVolume",
39 containerVolumeWidth/2,
40 containerVolumeWidth/2,
41 containerVolumeLength/2);
43 TGeoVolume *vcontainer =
new TGeoVolume(
"ContainerVolume", container, fst->
GetMedium(
"air"));
46 TGeoBBox *wafer =
new TGeoBBox(
"SiliconWafer",
50 TGeoVolume *vwafer =
new TGeoVolume(
"SiliconWafer", wafer, fst->
GetMedium(
"silicon"));
54 fgmap->SetSingleSensorContainerVolume(
"SiliconWafer");
61 for(
unsigned wf=0; wf<waferNum; wf++)
63 double offset = (wf - (waferNum-1)/2.)*waferSpacing;
65 UInt_t geant[1] = {wf}, group = 0, logical[3] = {0, 0, wf};
68 cout <<
"Failed to set mapping table entry!" << endl;
72 vcontainer->AddNode(vwafer, wf,
new TGeoCombiTrans(0.0, 0.0, offset,
new TGeoRotation()));
76 fst->
GetTopVolume()->AddNode(vcontainer, 0,
new TGeoCombiTrans(0.0, 0.0, 0.0,
new TGeoRotation()));