4 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
10 Double_t waferThickness = 0.3;
12 Double_t waferWidth = 1200.0;
13 Double_t waferHeight = 500.0;
14 Double_t waferSpacing = 200.0;
16 Double_t beamLineOffsetX = 815.0;
18 Double_t beamLineOffsetZ = 28100.0;
22 TGeoBBox *wafer =
new TGeoBBox(
"RpSiliconWafer",
25 0.1 * waferThickness/2);
26 TGeoVolume *vwafer =
new TGeoVolume(
"RpSiliconWafer", wafer, rp->
GetMedium(
"silicon"));
30 fgmap->SetSingleSensorContainerVolume(
"RpSiliconWafer");
35 for(
unsigned wf=0; wf<waferNum; wf++)
37 double offset = 0.1 * (wf - (waferNum-1)/2.)*waferSpacing;
39 UInt_t geant[1] = {wf}, group = 0, logical[3] = {0, 0, wf};
42 cout <<
"Failed to set mapping table entry!" << endl;
46 rp->
GetTopVolume()->AddNode(vwafer, wf,
new TGeoCombiTrans(0.1 * beamLineOffsetX, 0.0, offset + 0.1 * beamLineOffsetZ, 0));