-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHCalEndcap_o1_v01_01.xml
163 lines (125 loc) · 8.47 KB
/
HCalEndcap_o1_v01_01.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<lccdd>
<define>
<constant name="HCalEndcap_layers" value="(int) 75"/>
<constant name="HCalEndcap_layer_thickness" value="2.0*cm + 0.65*cm"/>
<!--constant name="HCalRing_layers" value=" floor( (HCalEndcap_min_z - HCalRing_min_z) / HCalEndcap_layer_thickness + 0.5)"/-->
<constant name="HCalStep_layers" value="HCalEndcap_layers/HCalEndcap_inner_steps"/>
<constant name="HCalStep_dr" value="(HCalEndcap_inner_radius2 - HCalEndcap_inner_radius)/HCalEndcap_inner_steps"/>
</define>
<detectors>
<detector name="HCalEndcaps" type="DD4hep_SubdetectorAssembly" vis="HCALVis">
<shape type="BooleanShape" operation="Subtraction" material="Air">
<shape type="BooleanShape" operation="Subtraction">
<shape type="BooleanShape" operation="Subtraction">
<shape type="BooleanShape" operation="Subtraction">
<!--shape type="PolyhedraRegular" numsides="HCalEndcap_symmetry" rmin="0" rmax="HCalEndcap_outer_radius+env_safety" dz="2.0*HCalEndcap_max_z+2.0*env_safety"/>
<shape type="PolyhedraRegular" numsides="HCalEndcap_symmetry" rmin="0" rmax="HCalRing_inner_radius-env_safety" dz="2.0*HCalEndcap_min_z-2.0*env_safety"/-->
<shape type="PolyhedraRegular" numsides="HCalEndcap_symmetry" rmin="HCalEndcap_inner_radius-env_safety" rmax="HCalEndcap_outer_radius+10.0*env_safety" dz="2.0*HCalEndcap_max_z+2*env_safety"/>
<shape type="PolyhedraRegular" numsides="HCalEndcap_symmetry" rmin="0" rmax="HCalEndcap_outer_radius+10.0*env_safety" dz="2.0*HCalEndcap_min_z-2*env_safety"/>
</shape>
<!--shape type="PolyhedraRegular" numsides="HCalEndcap_symmetry" rmin="0" rmax="HCalEndcap_outer_radius+2.0*env_safety" dz="2.0*HCalRing_min_z-2.0*env_safety"/-->
</shape>
</shape>
<shape type="Polycone" startphi="0" deltaphi="2.0*pi*rad">
<zplane z="-HCalEndcap_max_z-env_safety" rmin="0" rmax="HCalEndcap_inner_radius2"/>
<zplane z="-HCalEndcap_min_z" rmin="0" rmax="HCalEndcap_inner_radius"/>
<zplane z="HCalEndcap_min_z" rmin="0" rmax="HCalEndcap_inner_radius"/>
<zplane z="HCalEndcap_max_z+env_safety" rmin="0" rmax="HCalEndcap_inner_radius2"/>
</shape>
</shape>
<rotation x="0*deg" y="0*deg" z="90*deg-180*deg/HCalEndcap_symmetry"/>
<comment>HCalEndcap Assembly</comment>
<composite name="HCalEndcap"/>
<!--composite name="HCalRing"/-->
</detector>
</detectors>
<!-- Definition of the readout segmentation -->
<readouts>
<readout name="HCalEndcapCollection">
<segmentation type="CartesianGridXY" grid_size_x="HCal_cell_size" grid_size_y="HCal_cell_size" />
<id>${GlobalCalorimeterReadoutID}</id>
</readout>
<!--readout name="HCalRingCollection">
<segmentation type="CartesianGridXY" grid_size_x="HCal_cell_size" grid_size_y="HCal_cell_size" />
<id>${GlobalCalorimeterReadoutID}</id>
</readout-->
</readouts>
<detectors>
<detector name="HCalEndcap" type="GenericCalEndcap_o2_v01" id="DetID_HCAL_Endcap" readout="HCalEndcapCollection" vis="HCALVis" >
<comment>Hadronic Calorimeter: Endcap</comment>
<type_flags type="DetType_CALORIMETER + DetType_HADRONIC + DetType_ENDCAP"/>
<envelope vis="HCALVis">
<shape type="Assembly"/>
</envelope>
<dimensions nsides_inner="HCalEndcap_symmetry" nsides_outer="(int) HCalEndcap_symmetry"
zmin="HCalEndcap_min_z" rmin="HCalEndcap_inner_radius" rmin2="HCalEndcap_inner_radius2"
rmax="HCalEndcap_outer_radius"/>
<layer repeat="HCalStep_layers" vis="HCalEndcapLayerVis" rmin="HCalEndcap_inner_radius+HCalStep_dr">
<slice material="Steel235" thickness="0.5*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="Steel235" thickness="19*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="G4_POLYSTYRENE" thickness="3*mm" vis="HCalSensorVis" sensitive="yes" limits="cal_limits"/>
<slice material="Copper" thickness="0.1*mm" vis="HCalCopperVis"/>
<slice material="PCB" thickness="0.7*mm" vis="HCalPCBVis"/>
<slice material="Steel235" thickness="0.5*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="Air" thickness="2.7*mm" vis="InvisibleNoDaughters"/>
</layer>
<layer repeat="HCalStep_layers" vis="HCalEndcapLayerVis" rmin="HCalEndcap_inner_radius+HCalStep_dr*2.0">
<slice material="Steel235" thickness="0.5*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="Steel235" thickness="19*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="G4_POLYSTYRENE" thickness="3*mm" vis="HCalSensorVis" sensitive="yes" limits="cal_limits"/>
<slice material="Copper" thickness="0.1*mm" vis="HCalCopperVis"/>
<slice material="PCB" thickness="0.7*mm" vis="HCalPCBVis"/>
<slice material="Steel235" thickness="0.5*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="Air" thickness="2.7*mm" vis="InvisibleNoDaughters"/>
</layer>
<layer repeat="HCalStep_layers" vis="HCalEndcapLayerVis" rmin="HCalEndcap_inner_radius+HCalStep_dr*3.0">
<slice material="Steel235" thickness="0.5*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="Steel235" thickness="19*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="G4_POLYSTYRENE" thickness="3*mm" vis="HCalSensorVis" sensitive="yes" limits="cal_limits"/>
<slice material="Copper" thickness="0.1*mm" vis="HCalCopperVis"/>
<slice material="PCB" thickness="0.7*mm" vis="HCalPCBVis"/>
<slice material="Steel235" thickness="0.5*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="Air" thickness="2.7*mm" vis="InvisibleNoDaughters"/>
</layer>
<layer repeat="HCalStep_layers" vis="HCalEndcapLayerVis" rmin="HCalEndcap_inner_radius+HCalStep_dr*4.0">
<slice material="Steel235" thickness="0.5*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="Steel235" thickness="19*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="G4_POLYSTYRENE" thickness="3*mm" vis="HCalSensorVis" sensitive="yes" limits="cal_limits"/>
<slice material="Copper" thickness="0.1*mm" vis="HCalCopperVis"/>
<slice material="PCB" thickness="0.7*mm" vis="HCalPCBVis"/>
<slice material="Steel235" thickness="0.5*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="Air" thickness="2.7*mm" vis="InvisibleNoDaughters"/>
</layer>
<layer repeat="HCalStep_layers" vis="HCalEndcapLayerVis" rmin="HCalEndcap_inner_radius+HCalStep_dr*5.0">
<slice material="Steel235" thickness="0.5*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="Steel235" thickness="19*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="G4_POLYSTYRENE" thickness="3*mm" vis="HCalSensorVis" sensitive="yes" limits="cal_limits"/>
<slice material="Copper" thickness="0.1*mm" vis="HCalCopperVis"/>
<slice material="PCB" thickness="0.7*mm" vis="HCalPCBVis"/>
<slice material="Steel235" thickness="0.5*mm" vis="HCalAbsorberVis" radiator="yes"/>
<slice material="Air" thickness="2.7*mm" vis="InvisibleNoDaughters"/>
</layer>
</detector>
</detectors>
<!-- detectors>
<detector name="HCalRing" type="GenericCalEndcap_o1_v01" id="DetID_HCAL_Ring" readout="HCalRingCollection" vis="HCALVis" >
<comment>Hadronic Calorimeter Endcap</comment>
<type_flags type=" DetType_CALORIMETER + DetType_HADRONIC + DetType_ENDCAP + DetType_AUXILIARY"/>
<envelope vis="HCALVis">
<shape type="Assembly"/>
</envelope>
<dimensions nsides_inner="HCalEndcap_symmetry" nsides_outer="(int) HCalEndcap_symmetry"
zmin="HCalRing_min_z" rmin="HCalRing_inner_radius" rmax="HCalRing_outer_radius"
phi0="0" rmin2="0" z2="HCalRing_layers * HCalEndcap_layer_thickness"/>
<layer repeat="HCalRing_layers" vis="HCalEndcapLayerVis">
<slice material="Steel235" thickness="0.5*mm" radiator="yes" vis="HCalAbsorberVis"/>
<slice material="Steel235" thickness="19*mm" radiator="yes" vis="HCalAbsorberVis"/>
<slice material="G4_POLYSTYRENE" thickness="3*mm" sensitive="yes" vis="HCalSensorVis" limits="cal_limits"/>
<slice material="Copper" thickness="0.1*mm" vis="HCalCopperVis"/>
<slice material="PCB" thickness="0.7*mm" vis="HCalPCBVis"/>
<slice material="Steel235" thickness="0.5*mm" radiator="yes" vis="HCalAbsorberVis"/>
<slice material="Air" thickness="2.7*mm" vis="InvisibleNoDaughters"/>
</layer>
</detector>
</detectors -->
</lccdd>