4 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
10 Double_t waferThickness = 0.3;
12 Double_t waferWidth = 1200.0;
13 Double_t waferHeight = 1000.0;
14 Double_t waferSpacing = 200.0;
16 Double_t beamLineOffsetX = 0.0;
17 Double_t beamLineOffsetZ = -28000.0;
20 TGeoBBox *wafer =
new TGeoBBox(
"LqstSiliconWafer",
23 0.1 * waferThickness/2);
24 TGeoVolume *vwafer =
new TGeoVolume(
"LqstSiliconWafer", wafer, lqst->
GetMedium(
"silicon"));
28 fgmap->SetSingleSensorContainerVolume(
"LqstSiliconWafer");
33 for(
unsigned wf=0; wf<waferNum; wf++)
35 double offset = 0.1 * (wf - (waferNum-1)/2.)*waferSpacing;
37 UInt_t geant[1] = {wf}, group = 0, logical[3] = {0, 0, wf};
40 cout <<
"Failed to set mapping table entry!" << endl;
44 lqst->
GetTopVolume()->AddNode(vwafer, wf,
new TGeoCombiTrans(0.1 * beamLineOffsetX, 0.0, offset + 0.1 * beamLineOffsetZ, 0));