13 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
24 Double_t waferThickness = 200 *
eic::um;
27 Double_t waferWidth = 250 *
eic::mm;
28 Double_t waferSpacing = 100 *
eic::mm;
31 Double_t containerVolumeLength = (waferNum-1) * waferSpacing + waferThickness + (10 *
eic::mm);
32 Double_t containerVolumeWidth = waferWidth + (10 *
eic::mm);
35 TGeoBBox *container =
new TGeoBBox(
"ContainerVolume",
36 containerVolumeWidth/2,
37 containerVolumeWidth/2,
38 containerVolumeLength/2);
40 TGeoVolume *vcontainer =
new TGeoVolume(
"ContainerVolume", container, fst->
GetMedium(
"air"));
43 TGeoBBox *wafer =
new TGeoBBox(
"SiliconWafer", waferWidth/2, waferWidth/2, waferThickness/2);
44 TGeoVolume *vwafer =
new TGeoVolume(
"SiliconWafer", wafer, fst->
GetMedium(
"silicon"));
59 for(
unsigned wf=0; wf<waferNum; wf++) {
60 double offset = (wf - (waferNum-1)/2.)*waferSpacing;
62 UInt_t geant[1] = {wf}, group = 0, logical[3] = {0, 0, wf};
65 cout <<
"Failed to set mapping table entry!" << endl;
70 vcontainer->AddNode(vwafer, wf,
new TGeoCombiTrans(0.0, 0.0, offset,
new TGeoRotation()));
75 fst->
GetTopVolume()->AddNode(vcontainer, 0,
new TGeoCombiTrans(0.0, 0.0, 0.0,
new TGeoRotation()));