5 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
11 Double_t zdcWidth = 600.0;
12 Double_t zdcHeight = 600.0;
13 Double_t zdcLength = 1000.0;
15 Double_t waferThickness = 0.3;
18 TGeoRotation *
rw =
new TGeoRotation();
19 double angle = 0.022,
dx = 110.0 + 30.0;
20 rw->RotateY(angle * TMath::RadToDeg());
22 TGeoBBox *bzdc =
new TGeoBBox(
"ZdcBox",
26 TGeoVolume *vzdc =
new TGeoVolume(
"ZdcBox", bzdc, zdc->
GetMedium(
"iron"));
30 double xx = beamLineOffset*sin(angle) -
dx, zz = beamLineOffset*
cos(angle);
32 zdc->
GetTopVolume()->AddNode(vzdc, 0,
new TGeoCombiTrans(0.1 * xx, 0.0, 0.1 * zz, rw));
36 TGeoBBox *bwafer =
new TGeoBBox(
"ZdcSiliconWafer",
39 0.1 * waferThickness/2);
40 TGeoVolume *vwafer =
new TGeoVolume(
"ZdcSiliconWafer", bwafer, zdc->
GetMedium(
"silicon"));
42 double z0 = beamLineOffset - 530;
43 double xx = z0*sin(angle) -
dx, zz = z0*
cos(angle);
45 zdc->
GetTopVolume()->AddNode(vwafer, 0,
new TGeoCombiTrans(0.1 * xx, 0.0, 0.1 * zz, rw));
56 UInt_t geant[1] = {0}, group = 0, logical[3] = {0, 0, 0};
59 cout <<
"Failed to set mapping table entry!" << endl;