10 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
17 Double_t waferThickness = 0.2;
18 Double_t waferWidth = 2500.0;
19 Double_t waferSpacing = 100.0;
22 Double_t containerVolumeLength = (waferNum-1)*waferSpacing + waferThickness + 10.0;
23 Double_t containerVolumeWidth = waferWidth + 10.0;
27 TGeoBBox *container =
new TGeoBBox(
"ContainerVolume",0.1*containerVolumeWidth/2., 0.1*containerVolumeWidth/2., 0.1*containerVolumeLength/2.);
30 TGeoVolume *vcontainer =
new TGeoVolume(
"ContainerVolume", container, romanpot->
GetMedium(
"vacuum"));
33 TGeoBBox *wafer =
new TGeoBBox(
"SiliconWafer", 0.1*waferWidth/2., 0.1*waferWidth/2., 0.1*waferThickness/2.);
34 TGeoVolume *vwafer =
new TGeoVolume(
"SiliconWafer", wafer, romanpot->
GetMedium(
"silicon"));
40 fgmap->SetSingleSensorContainerVolume(
"SiliconWafer");
47 for(
unsigned int wf=0; wf<waferNum; wf++)
53 UInt_t geant[1] = {wf}, group = 0, logical[3] = {0, 0, wf};
57 cout <<
"Failed to set mapping table entry!" << endl;
61 cout << offset << endl;
64 romanpot->
GetTopVolume()->AddNode(vwafer, wf,
new TGeoCombiTrans((0.1*waferWidth/2.+12.47)+1.2, 0.0, offset,
new TGeoRotation()));
65 romanpot->
GetTopVolume()->AddNode(vwafer, wf,
new TGeoCombiTrans(-((0.1*waferWidth/2.-12.47))-1.2, 0.0, offset,
new TGeoRotation()));
70 double displacementInX = 1. + 0.1*waferWidth/2.;
74 TGeoRotation *rotator =
new TGeoRotation();