6 mockupConfig = actsG4.MockupSectorBuilder.Config()
8 mockupChamberConfigInner = actsG4.MockupSectorBuilder.ChamberConfig()
9 mockupChamberConfigInner.name =
"Inner_Detector_Chamber"
10 mockupChamberConfigInner.SensitiveNames = [
"Inner_Skin"]
11 mockupChamberConfigInner.PassiveNames = [
"xx"]
13 mockupChamberConfigMiddle = actsG4.MockupSectorBuilder.ChamberConfig()
14 mockupChamberConfigMiddle.name =
"Middle_Detector_Chamber"
15 mockupChamberConfigMiddle.SensitiveNames = [
"Middle_Skin"]
16 mockupChamberConfigMiddle.PassiveNames = [
"xx"]
18 mockupChamberConfigOuter = actsG4.MockupSectorBuilder.ChamberConfig()
19 mockupChamberConfigOuter.name =
"Outer_Detector_Chamber"
20 mockupChamberConfigOuter.SensitiveNames = [
"Outer_Skin"]
21 mockupChamberConfigOuter.PassiveNames = [
"xx"]
23 dirOfThisScript = os.path.dirname(__file__)
24 mockupConfig.gdmlPath = os.path.join(
26 "../../../../Detectors/MuonSpectrometerMockupDetector/MuonChamber.gdml",
28 mockupConfig.NumberOfSectors = 8
30 mockupBuilder = actsG4.MockupSectorBuilder(mockupConfig)
32 detectorVolumeInner = mockupBuilder.buildChamber(mockupChamberConfigInner)
34 detectorVolumeOuter = mockupBuilder.buildChamber(mockupChamberConfigOuter)
36 detectorVolumeMiddle = mockupBuilder.buildChamber(mockupChamberConfigMiddle)
38 detectorVolumes = [detectorVolumeInner, detectorVolumeMiddle, detectorVolumeOuter]
40 detectorVolumeSector = mockupBuilder.buildSector(detectorVolumes)
42 mockupBuilder.drawSector(detectorVolumeSector,
"sector_drawn_from_python")