definitions.xml 28 KB
Newer Older
1
  <define>
2
3
4
5
6
7
    <constant name="world_side" value="30*m"/>
    <constant name="world_x" value="world_side"/>
    <constant name="world_y" value="world_side"/>
    <constant name="world_z" value="100*m"/>

    <comment>Although not explicit in the EIC design study, the crossing angle is not symmetric.</comment>
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
    <constant name="CrossingAngle" value="0.025"/>
    <constant name="ionCrossingAngle" value="0.0166667"/>
    <constant name="electronCrossingAngle" value="0.00833333"/>
    <constant name="CrossingSlope" value="0.0166682"/>

    <constant name="Pi" value="3.14159265359"/>

    <constant name="mil" value="0.0254*mm"/>

    <comment>
      ------------
      Detector IDs
      ------------

      Note about ACTS tracking geometry construction
      ----------------------------------------------

      The tracking surfaces need to be structured in a barrel + endcapP + endcapN where 
      endcapP/endcapN are the endcaps at positive/negative z values. 
      See https://acts.readthedocs.io/en/latest/plugins/dd4hep.html for more details.

Whitney Armstrong's avatar
Whitney Armstrong committed
29
      The tracking geometry needs to be constructed from cylinders from the inside out. For this reason
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
      each layer needs its own subsystem assembly. This increases the number of top level system IDs. 
      For example the silicon tracker needs 3 IDs for each area (endcap+barrel+endcap) and a subassembly for each
      layer. Therefore it needs a minimum of 20 IDs. Therefore we will allocate blocks of ~25 for each major subsystem.
      Note, future improvements will likely include a more sophisticated ACTS-dd4hep plugin, 
      eliminating the need for so many system IDs at construction time.

      This barrel/endcap structure needs IDs to be in increasing order going outward. 
      The space of IDs for the subassemblies starts at (Subassembly_ID*10+101).

      The unused IDs below are saved for future use.
    </comment>


    <comment> 
      ===================
      (1-9) Reserved IDs
      ===================
      Unused IDs: 1-9 

      ====================================
      (10-24) Interaction region beamline 
      ====================================

      Beampipe ID : 10
      Unused   IDs: 11-24

    </comment> 
    <constant name="BeamPipe_ID" value="10"/>


    <comment> 
      ===============================
      (25-49) Silicon Vertex Tracker
      ===============================
      SiVertex subsystem  ID: 25 
      Layer 1 subassembly ID: 26
      Layer 2 subassembly ID: 27
      Layer 3 subassembly ID: 28
      Layer 4 subassembly ID: 29
      Layer 5 subassembly ID: 30
    </comment>
Jihee Kim's avatar
Jihee Kim committed
71
    <constant name="cb_VTX_Barrel_ID" value="25"/>
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
    <comment>
      Unused values reserved for vertex:
      constant name="SiVertexSubAssemblyLayer1_ID" value="121"
      constant name="SiVertexSubAssemblyLayer2_ID" value="122"
      constant name="SiVertexSubAssemblyLayer3_ID" value="123"
      constant name="SiVertexSubAssemblyLayer4_ID" value="124"
      constant name="SiVertexSubAssemblyLayer5_ID" value="125"
    </comment>

    <comment>
      ===============================
      (50-74) Silicon Tracker System
      ===============================

      SiTracker subsystem  ID: 50
      Layer 1 subassembly  ID: 51      
      Layer 2 subassembly  ID: 52      
      Layer 3 subassembly  ID: 53
      Layer 4 subassembly  ID: 54
      Layer 5 subassembly  ID: 55

      (56-70) etc...

      Unused IDs: 71-74

    </comment>

    <constant name="SiTrackerSubAssembly_ID" value="50"/>
    <constant name="SiTrackerSubAssemblyLayer1_ID" value="51"/>
    <constant name="SiTrackerSubAssemblyLayer2_ID" value="52"/>
    <constant name="SiTrackerSubAssemblyLayer3_ID" value="53"/>
    <constant name="SiTrackerSubAssemblyLayer4_ID" value="54"/>
    <constant name="SiTrackerSubAssemblyLayer5_ID" value="55"/>

    <constant name="SiTrackerBarrel_Layer1_ID"      value="56"/>
    <constant name="SiTrackerEndcapP_Layer1_ID"     value="57"/>
    <constant name="SiTrackerEndcapN_Layer1_ID"     value="58"/>

    <constant name="SiTrackerBarrel_Layer2_ID"      value="59"/>
    <constant name="SiTrackerEndcapP_Layer2_ID"     value="60"/>
    <constant name="SiTrackerEndcapN_Layer2_ID"     value="61"/>

    <constant name="SiTrackerBarrel_Layer3_ID"      value="62"/>
    <constant name="SiTrackerEndcapP_Layer3_ID"     value="63"/>
    <constant name="SiTrackerEndcapN_Layer3_ID"     value="64"/>

    <constant name="SiTrackerBarrel_Layer4_ID"      value="65"/>
    <constant name="SiTrackerEndcapP_Layer4_ID"     value="66"/>
    <constant name="SiTrackerEndcapN_Layer4_ID"     value="67"/>

    <constant name="SiTrackerBarrel_Layer5_ID"      value="68"/>
    <constant name="SiTrackerEndcapP_Layer5_ID"     value="69"/>
    <constant name="SiTrackerEndcapN_Layer5_ID"     value="70"/>

Jihee Kim's avatar
Jihee Kim committed
126
127
    <constant name="cb_CTD_Si_ID"                   value="74"/>

128
129
    <comment> 
    ===================
Whitney Armstrong's avatar
Whitney Armstrong committed
130
    (75-99) Reserved IDs
131
132
    ===================

133
    Unused IDs: 75-89 
Jihee Kim's avatar
Jihee Kim committed
134
    TBD
135
    </comment>
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
    <comment> 
    ======================
    (90-99) Barrel PID IDs
    ======================

    DIRC subsystem       ID: 90
    Barrel TRD subsystem ID: 91
    Barrel TOF subsystem ID: 92

    Unused IDs: 93-99 
    </comment>
    <constant name="BarrelDIRC_ID" value="90"/>
    <constant name="BarrelTRD_ID"  value="91"/>
    <constant name="BarrelTOF_ID"  value="92"/>

151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173

    <comment> 
      =====================================
      (100-109) Electromagnetic Calorimeter
      =====================================

      ECal     subsystem  ID:  100
      Barrel   subassembly ID: 101
      EndcapP  subassembly ID: 102
      EndcapN  subassembly ID: 103
      Crystal  subassembly ID: 104

      Unused IDs: 105-109

    </comment>
    <constant name="ECalSubAssembly_ID" value="100"/>
    <constant name="ECalBarrel_ID"      value="101"/>
    <constant name="ECalEndcapP_ID"     value="102"/>
    <constant name="ECalEndcapN_ID"     value="103"/>
    <constant name="CrystalEndcap_ID"   value="104"/>

    <comment> 
      =====================================
Whitney Armstrong's avatar
Whitney Armstrong committed
174
      (110-119) Hadronic Calorimeter
175
176
177
178
179
180
181
      =====================================

      HCal     subsystem  ID:  110
      Barrel   subassembly ID: 111
      EndcapP  subassembly ID: 112
      EndcapN  subassembly ID: 113

Whitney Armstrong's avatar
Whitney Armstrong committed
182
      Unused IDs: 115-119
183
184
185
186
187
    </comment>
    <constant name="HCalSubAssembly_ID" value="110"/>
    <constant name="HCalBarrel_ID"      value="111"/>
    <constant name="HCalEndcapP_ID"     value="112"/>
    <constant name="HCalEndcapN_ID"     value="113"/>
Whitney Armstrong's avatar
Whitney Armstrong committed
188
    <constant name="ci_HCAL_id"         value="200"/>
189
190
191
192
193
194
195
196
    <comment> 
      =====================================
      (120-129) (near) Forward reserved
      =====================================

      Forwardtracking ID: 120
      Forward RICH    ID: 121

197
      Unused IDs: 124-129
198
199
200
    </comment>
    <constant name="ForwardTracking_ID" value="120"/>
    <constant name="ForwardRICH_ID"     value="121"/>
Whitney Armstrong's avatar
Whitney Armstrong committed
201
    <constant name="ci_GEM_id"          value="122"/>
202
    <constant name="ForwardTRD_ID"      value="123"/>
203
204
205
206
207
208

    <comment> 
      =====================================
      (130-139) Backward reserved
      =====================================

Chao Peng's avatar
Chao Peng committed
209
      Modular RICH ID: 130
Jihee Kim's avatar
Jihee Kim committed
210
211
      Electron Endcap GEM tracking ID: 131
      Unused IDs: 132-139
212
213

    </comment>
Chao Peng's avatar
Chao Peng committed
214
    <constant name="ce_MRICH_ID"        value="130"/>
Jihee Kim's avatar
Jihee Kim committed
215
    <constant name="ce_GEM_ID"          value="131"/>
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237

    <comment> 
      =====================================
      (140-149) Central Magnet
      =====================================

      Solenoid         ID: 140
      Solenoid support ID: 141
      Solenoid Yoke    ID: 142

      Unused IDs: 143-149

    </comment>
    <constant name="Solenoid_ID"             value="140"/>
    <constant name="SolenoidSupport_ID"      value="141"/>
    <constant name="SolenoidYoke_ID"         value="142"/>

    <comment> 
      =====================================
      (150-169) Far Forward  Detectors
      =====================================

238
239
240
      Forward Roman Pot  ID: 150
      Forward B0 Tracker ID: 151
      Zero Degree Cal.   ID: 160
241
242

    </comment>
243
244
245
246
247
    <constant name="B0Tracker_ID"        value="150"/>
    <constant name="ForwardRomanPotA_ID" value="155"/>
    <constant name="ForwardRomanPotB_ID" value="156"/>
    <constant name="ForwardRomanPotC_ID" value="157"/>
    <constant name="ffi_ZDC_ID"          value="160"/>
248
249
250
251
252
253
254
255
256
257
258
259
260
261

    <comment> 
      =====================================
      (170-189) Forward Beamline Magnets
      =====================================
    </comment>

    <comment> 
      =====================================
      (190-199) Backward Beamline Magnets
      =====================================
    </comment>

    <comment>
262
263
264
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Detector Definition Parameters 
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Whitney Armstrong's avatar
Whitney Armstrong committed
265
266
267
268
269
270
271
272
273
274
275
276

      ## Parameter nomenclature

       - "rmin", "rmax", "thickness" all refer to the radial direction.
       - "zmin", "zmax", "length", "offset" all refer to the z direction.
       - Positive and Negative are  "EndcapP" and "EndcapN", respectively.
       - All values are positive. When refering to a negative endcap z position, the values are
           also positive then negated when required. (Many endcap constructions are mirrored, 
           hence a postive value.
       - We will try to keep the subsystem component name first and the parameter after an "_" (eg, EcalBarrel_length").
           TODO: fix parameter naming to be uniform in the above convention.

277
    </comment>
278
279

    <comment>
280
281
282
      ==========================
      Solenoid Magnet Parameters
      ==========================
283
    </comment>
284

Whitney Armstrong's avatar
Whitney Armstrong committed
285
286
287
288
    <constant name="Solenoid_length"           value="7000.0*mm"/>
    <constant name="Solenoid_rmin"             value="3000.0*mm"/>
    <constant name="Solenoid_thickness"        value="400*mm"/>
    <constant name="Solenoid_offset"           value="600.0*mm"/>
289

Whitney Armstrong's avatar
Whitney Armstrong committed
290
291
292
293
    <constant name="Solenoid_rmax"             value="Solenoid_rmin + Solenoid_thickness"/>
    <constant name="SolenoidBarrel_rmin"       value="Solenoid_rmin"/>
    <constant name="SolenoidBarrel_length"     value="Solenoid_length"/>
    <constant name="SolenoidBarrel_zmax"       value="Solenoid_length/2.0"/>
294

295
296
297

    <comment>
      --------------------------------
Whitney Armstrong's avatar
Whitney Armstrong committed
298
299
300
      Key Central Detector Parameters
      --------------------------------

301
302
303
      These are needed here to compute the dependent parameters.
    </comment>

304
305
306
    <constant name="ForwardRICH_length"       value="1.1*m"/>
    <constant name="ForwardTRD_length"        value="20.0*cm"/>
    <constant name="ForwardTOF_length" value="10.0*cm"/>
307
308
309
310
    
    <constant name="BackwardCherenkovLength"   value="15.0*cm"/>
    <constant name="BackwardTOFLength"         value="10.0*cm"/>

Whitney Armstrong's avatar
Whitney Armstrong committed
311
    <comment> Total length of PID detectors above</comment>
312
    <constant name="ForwardPIDLength"    value="ForwardRICH_length + ForwardTRD_length + ForwardTOF_length"/>
Whitney Armstrong's avatar
Whitney Armstrong committed
313
314
    <constant name="BackwardPIDLength"   value="BackwardCherenkovLength + BackwardTOFLength"/>

315
316
317
318
    <comment> Barrel PID thicknesses</comment>
    <constant name="BarrelExtraPIDThickness"  value="25.0 * cm"/>
    <constant name="BarrelTRDThickness"  value="25.0 * cm"/>
    <constant name="BarrelTOFThickness"  value="1.0 * cm"/>
319

320
321
    <comment>
      ============================
Whitney Armstrong's avatar
Whitney Armstrong committed
322
      Tracking Detector Parameters
323
324
      ============================
    </comment>
Whitney Armstrong's avatar
Whitney Armstrong committed
325

Whitney Armstrong's avatar
Whitney Armstrong committed
326
327
328
329
330
    <comment>
      -------------------------
      GEM Tracker Parameters
      -------------------------
    </comment>
Whitney Armstrong's avatar
Whitney Armstrong committed
331
332
    <constant name="ForwardTrackingGEMLength" value="30.0*cm"/>

333
334
335
336
337
338
    <comment>
      -------------------------
      Vertex Tracker Parameters
      -------------------------
    </comment>
    <constant name="VertexTrackerInnerRadius"       value="30.0*mm"/>
339
340
    <constant name="VertexTrackerOuterRadius"       value="90.0*mm"/>
    <constant name="VertexTrackerOuterBarrelLength" value="400.0*mm"/>
341

Jihee Kim's avatar
Jihee Kim committed
342
343
344
345
346
347
348
349
    
    <constant name="cb_VTX_Barrel_rmin"   value="33.0*mm"/>
    <constant name="cb_VTX_Barrel_rmax"   value="165.0*mm"/>
    <constant name="cb_VTX_Barrel_length" value="740.0*mm"/>

    <constant name="cb_VTX_Barrel_x_pos"   value="0.0*mm"/>
    <constant name="cb_VTX_Barrel_y_pos"   value="0.0*mm"/>
    <constant name="cb_VTX_Barrel_z_pos"   value="0.0*mm"/>
350

Jihee Kim's avatar
Jihee Kim committed
351
    <constant name="cb_VTX_Barrel_layer"   value="6"/>
352
353
354
355
356
357
    <comment>
      --------------------------
      Silicon Tracker Parameters
      --------------------------
    </comment>
    <constant name="SiliconTrackerInnerRadius"       value="95.0*mm"/>
358
359
    <constant name="SiliconTrackerInnerBarrelLength" value="300.0*mm"/>
    <constant name="SiliconTrackerOuterRadius"       value="Solenoid_rmax/3.0"/>
Whitney Armstrong's avatar
Whitney Armstrong committed
360
    <constant name="SiliconTrackerOuterBarrelLength" value="Solenoid_length/2.5"/>
361
    <constant name="SiliconTrackerOuterBarrel_zmax"  value="SiliconTrackerOuterBarrelLength/2.0"/>
362

Whitney Armstrong's avatar
Whitney Armstrong committed
363
364
365
366
367
368
369
370
371
372
373
374
375
376
    <comment>
      Central tracking boundaries

      The central tracking detectors are assumed to be symmtric about the origin.
      
    </comment>
    <constant name="CentralTracking_rmax"    value="SiliconTrackerOuterRadius"/>
    <constant name="CentralTracking_length"  value="SiliconTrackerOuterBarrelLength + ForwardTrackingGEMLength"/>

    <comment> These are used by ddsim </comment>
    <constant name="tracker_region_rmax"   value="Solenoid_rmax/2.0"/>
    <constant name="tracker_region_zmax"   value="Solenoid_length/2.0"/>


Jihee Kim's avatar
Jihee Kim committed
377
378
379
380
    <comment>
      -------------------------------
      Central Barrel Tracker - Global
      -------------------------------
381
382

      The cb_CTD_* parameters can probably be moved to the detector specific xml file.
Jihee Kim's avatar
Jihee Kim committed
383
    </comment>
Jihee Kim's avatar
Jihee Kim committed
384
    <constant name="cb_CTD_rmin"   value="SiliconTrackerInnerRadius + 70.0 * mm"/>
385
386
387
    <constant name="cb_CTD_rmax"   value="SiliconTrackerOuterRadius"/>
    <constant name="cb_CTD_zmax"   value="SiliconTrackerOuterBarrel_zmax"/>
    <constant name="cb_CTD_length" value="SiliconTrackerOuterBarrelLength"/>
Jihee Kim's avatar
Jihee Kim committed
388

389
390
391
392
    <comment>
      ------------
      Calorimeters
      ------------
393
394
395
396
397
398
      ======================
      Calorimeter Parameters
      ======================

    </comment>
    <comment>
Whitney Armstrong's avatar
Whitney Armstrong committed
399
      Ecal and Hcal Barrel/Endcap 
400
401
    </comment>

Whitney Armstrong's avatar
Whitney Armstrong committed
402
403
404
405
406
    <constant name="ExtraHcalEndcapP_length"   value="0.0*cm"/>
    <constant name="ExtraHcalEndcapN_length"   value="0.0*cm"/>
    <constant name="SolenoidYokeEndcapP_zmin"  value="Solenoid_length/2.0 + Solenoid_offset+ExtraHcalEndcapP_length"/>
    <constant name="SolenoidYokeEndcapN_zmin"  value="Solenoid_length/2.0 - Solenoid_offset+ExtraHcalEndcapN_length"/>

407
    <constant name="EcalBarrel_rmin"            value="SiliconTrackerOuterRadius + BarrelExtraPIDThickness + 5.0 * mm"/>
Whitney Armstrong's avatar
Whitney Armstrong committed
408
    <constant name="HcalBarrel_rmax"            value="Solenoid_rmin - 10.0 *cm "/>
409
410
    <constant name="Barrel_TotalCalThickness"   value="HcalBarrel_rmax - EcalBarrel_rmin"/>
    <constant name="CalBarrelDivider"           value="0.5"/> <comment> Ecal and Hcal have the same thickness </comment>
Whitney Armstrong's avatar
Whitney Armstrong committed
411

412
413
    <constant name="EcalBarrel_TotalThickness"  value="Barrel_TotalCalThickness * CalBarrelDivider"/>
    <constant name="HcalBarrel_TotalThickness"  value="Barrel_TotalCalThickness * (1.0 - CalBarrelDivider)"/>
414

Whitney Armstrong's avatar
Whitney Armstrong committed
415
416
    <constant name="EcalBarrelLength"           value="CentralTracking_length + BackwardPIDLength"/>
    <constant name="EcalBarrel_offset"          value="(CentralTracking_length -(CentralTracking_length+BackwardPIDLength))/2.0"/>
417

Whitney Armstrong's avatar
Whitney Armstrong committed
418
419
420
421
422
423
    <constant name="EcalEndcapP_zmin"           value="CentralTracking_length/2.0 + ForwardPIDLength"/>
    <constant name="EcalEndcapN_zmin"           value="CentralTracking_length/2.0 + BackwardPIDLength"/>

    <constant name="BarrelLength"               value="SiliconTrackerOuterBarrelLength + ForwardPIDLength + BackwardPIDLength"/>
    <constant name="Barrel_offset"              value="(EcalEndcapP_zmin-EcalEndcapN_zmin)/2.0"/>

Whitney Armstrong's avatar
Whitney Armstrong committed
424
425
    <constant name="EndcapPTotalCal_length"  value="(SolenoidYokeEndcapP_zmin - 0.0 * mm) - (EcalEndcapP_zmin + 20.0 * mm)"/>
    <constant name="EndcapNTotalCal_length"  value="(SolenoidYokeEndcapN_zmin - 0.0 * mm) - (EcalEndcapN_zmin + 20.0 * mm)"/>
426
427
428
429

    <constant name="EndcapP_CalDivide"          value="0.5"/> <comment> 0.5 means Ecal and Hcal have the same thickness </comment>
    <constant name="EndcapN_CalDivide"          value="0.5"/> <comment> 0.5 means Ecal and Hcal have the same thickness </comment>

Whitney Armstrong's avatar
Whitney Armstrong committed
430
431
    <constant name="EcalEndcapP_length" value="EndcapPTotalCal_length * EndcapP_CalDivide"/>
    <constant name="EcalEndcapN_length" value="EndcapNTotalCal_length * EndcapN_CalDivide"/>
432

Whitney Armstrong's avatar
Whitney Armstrong committed
433
434
    <constant name="HcalEndcapP_length" value="EndcapPTotalCal_length * (1.0 - EndcapP_CalDivide)"/>
    <constant name="HcalEndcapN_length" value="EndcapNTotalCal_length * (1.0 - EndcapN_CalDivide)"/>
435
436

    <comment> These need to be set in sync with the forward and backward  detectors </comment>
437
438
    <constant name="EcalEndcapP_rmin"                      value="200.0*mm"/>
    <constant name="EcalEndcapN_rmin"                      value="300.0*mm"/>
439

Whitney Armstrong's avatar
Whitney Armstrong committed
440
441
    <constant name="HcalEndcapP_rmin"                      value="EcalEndcapP_rmin"/>
    <constant name="HcalEndcapN_rmin"                      value="EcalEndcapN_rmin"/>
442
443
444
445
446

    <comment>
      -------------------------
      EM Calorimeter Parameters
      -------------------------
447
448
449
450
451
452
453
454

       ## Note about Calormieter parameterization.
      
       The logic goes like this: 
       1. The space for the calorimeter is fixed via parameterization above.
       2. The layer thicknesses are fixed (first parameters below)
       3. From the space/thickness the number of layers is computed.

455
456
    </comment>
    <constant name="CaloSides"                  value="12"/>
Whitney Armstrong's avatar
Whitney Armstrong committed
457
      
458
    <comment>Material Thickness</comment>
459
460
461
462
463
464
465
    <constant name="EcalSiliconThickness"       value="9.00 * mm" />
    <constant name="EcalCopperThickness"        value="0.05 * mm" />
    <constant name="EcalKaptonThickness"        value="0.30 * mm" />
    <constant name="EcalAir1Thickness"          value="0.33 * mm" />
    <constant name="EcalAir2Thickness"          value="0.25 * mm" />
    <constant name="EcalThinTungstenThickness"  value="2.50 * mm" />
    <constant name="EcalThickTungstenThickness" value="5.00 * mm" />
Whitney Armstrong's avatar
Whitney Armstrong committed
466
      
467
    <comment> Layer Thickness  </comment>
468
    <constant name="EcalLayer1_thickness"
Whitney Armstrong's avatar
Whitney Armstrong committed
469
        value="EcalSiliconThickness + EcalCopperThickness + EcalKaptonThickness + EcalAir1Thickness"/>
470
    <constant name="EcalLayer2_thickness"   
Whitney Armstrong's avatar
Whitney Armstrong committed
471
        value="EcalThinTungstenThickness + EcalAir2Thickness + EcalSiliconThickness + EcalCopperThickness + EcalKaptonThickness + EcalAir1Thickness"/>
472
    <constant name="EcalLayer3_thickness"   
Whitney Armstrong's avatar
Whitney Armstrong committed
473
474
        value="EcalThickTungstenThickness + EcalAir2Thickness + EcalSiliconThickness + EcalCopperThickness + EcalKaptonThickness + EcalAir1Thickness"/>
      
475
476
    <comment> EM Barrel N Layer; same number of layers for EcalThin and EcalThick</comment>
    <constant name="EcalBarrelLayers" 
Whitney Armstrong's avatar
Whitney Armstrong committed
477
        value="floor((EcalBarrel_TotalThickness - EcalLayer1_thickness) / (EcalLayer2_thickness + EcalLayer3_thickness))"/>
478
479
480
481
    <constant name="EcalBarrelLayer1_NRepeat"       value="1"/>
    <constant name="EcalBarrelLayer2_NRepeat"       value="EcalBarrelLayers"/>
    <constant name="EcalBarrelLayer3_NRepeat"       value="EcalBarrelLayers"/>

482
483
    <comment> EM Barrel Thickness </comment>
    <constant name="EcalBarrelThickness"
Whitney Armstrong's avatar
Whitney Armstrong committed
484
        value="EcalBarrelLayer1_NRepeat*EcalLayer1_thickness + EcalBarrelLayer2_NRepeat * EcalLayer2_thickness + EcalBarrelLayer3_NRepeat * EcalLayer3_thickness"/>
485
486
487
    <constant name="EcalBarrel_rmax"            value="EcalBarrel_rmin + EcalBarrelThickness"/>

    <comment> EM Endcap N Layer; same number of layers for EcalThin and EcalThick </comment>
488
    <constant name="EcalEndcapPLayers" 
Whitney Armstrong's avatar
Whitney Armstrong committed
489
        value="floor((EcalEndcapP_length - EcalLayer1_thickness) / (EcalLayer2_thickness + EcalLayer3_thickness))"/>
490
    <constant name="EcalEndcapNLayers" 
Whitney Armstrong's avatar
Whitney Armstrong committed
491
        value="floor((EcalEndcapN_length - EcalLayer1_thickness) / (EcalLayer2_thickness + EcalLayer3_thickness))"/>
492
493
494
495
496
497
498
    <constant name="EcalEndcapPLayer1_NRepeat"      value="1"/>
    <constant name="EcalEndcapNLayer1_NRepeat"      value="1"/>
    <constant name="EcalEndcapPLayer2_NRepeat"      value="EcalEndcapPLayers"/>
    <constant name="EcalEndcapPLayer3_NRepeat"      value="EcalEndcapPLayers"/>
    <constant name="EcalEndcapNLayer2_NRepeat"      value="EcalEndcapNLayers"/>
    <constant name="EcalEndcapNLayer3_NRepeat"      value="EcalEndcapNLayers"/>

499
    <comment> EM Endcap Thickness </comment>
500
    <constant name="EcalEndcapPThickness"        
Whitney Armstrong's avatar
Whitney Armstrong committed
501
        value="EcalEndcapPLayer1_NRepeat*EcalLayer1_thickness + EcalEndcapPLayer2_NRepeat*EcalLayer2_thickness + EcalEndcapPLayer3_NRepeat*EcalLayer3_thickness "/>
502
    <constant name="EcalEndcapNThickness"        
Whitney Armstrong's avatar
Whitney Armstrong committed
503
        value="EcalEndcapNLayer1_NRepeat*EcalLayer1_thickness + EcalEndcapNLayer2_NRepeat*EcalLayer2_thickness + EcalEndcapNLayer3_NRepeat*EcalLayer3_thickness"/>
504

505
506
507
508
509
510

    <comment>
      -------------------------------
      Hadronic Calorimeter Parameters
      -------------------------------
    </comment>
Whitney Armstrong's avatar
Whitney Armstrong committed
511
    <constant name="HcalBarrel_rmin"          value="EcalBarrel_rmax"/>
512
    <constant name="HcalBarrelAvailThickness" value="HcalBarrel_rmax - HcalBarrel_rmin"/>
Whitney Armstrong's avatar
Whitney Armstrong committed
513
514
515
516
    <constant name="HcalBarrelLength"         value="Solenoid_length + ExtraHcalEndcapP_length + ExtraHcalEndcapN_length- HcalEndcapP_length- HcalEndcapN_length - 10*cm"/>
                                                                     
    <constant name="HcalEndcapP_zmin"          value="SolenoidYokeEndcapP_zmin - HcalEndcapP_length "/>
    <constant name="HcalEndcapN_zmin"          value="SolenoidYokeEndcapN_zmin - HcalEndcapN_length "/>
517
518
519
520
521
522
523
524

    <comment> Material Thickness </comment>
    <constant name="HcalSteelThickness"       value="1.89 * cm"/>
    <constant name="HcalPyrexThickness"       value="1.10 * mm"/>
    <constant name="HcalRPCGasThickness"      value="1.20 * mm"/>
    <constant name="HcalG10Thickness"         value="3.00 * mm"/>
    <constant name="HcalAirThickness"         value="1.60 * mm"/>

Whitney Armstrong's avatar
Whitney Armstrong committed
525
526
    <comment> Single Layer Thickness (for both barrel and endcap)</comment>
    <constant name="HcalSingleLayerThickness"
Whitney Armstrong's avatar
Whitney Armstrong committed
527
      value="HcalSteelThickness + (2 * HcalPyrexThickness) + HcalRPCGasThickness + HcalG10Thickness + HcalAirThickness"/>
528

Whitney Armstrong's avatar
Whitney Armstrong committed
529
530
531
532
533
534
535
536
537
    <comment> Hcal Barrel Layers and computed Thickness </comment>
    <constant name="HcalBarrelLayer_NRepeat" value="floor(HcalBarrelAvailThickness / HcalSingleLayerThickness)"/>
    <constant name="HcalBarrelThickness" value="HcalBarrelLayer_NRepeat * HcalSingleLayerThickness"/>

    <comment> Hcal Endcap Layers and computed Thickness </comment>
    <constant name="HcalEndcapPLayer_NRepeat" value="floor(HcalEndcapP_length / HcalSingleLayerThickness)"/>
    <constant name="HcalEndcapNLayer_NRepeat" value="floor(HcalEndcapN_length / HcalSingleLayerThickness)"/>
    <constant name="HcalEndcapP_thickness" value="HcalEndcapPLayer_NRepeat * HcalSingleLayerThickness"/>
    <constant name="HcalEndcapN_thickness" value="HcalEndcapNLayer_NRepeat * HcalSingleLayerThickness"/>
538

Jihee Kim's avatar
Jihee Kim committed
539
540
541
542
543
544
545
    <comment>
      ----------------------
      Zero Degree Parameters
      ----------------------
    </comment>
    <comment> BeamLines: IP6 </comment>
    <constant name="ffi_ZDC_z_pos"         value="3800.0 * cm"/>
Jihee Kim's avatar
Jihee Kim committed
546
547
    <constant name="ffi_ZDC_x_pos"         value="ffi_ZDC_z_pos * ionCrossingAngle"/> <comment> original value="90.0 * cm" </comment>
    <constant name="ffi_ZDC_y_pos"         value="0.0 * cm"/>
Jihee Kim's avatar
Jihee Kim committed
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
    <constant name="ffi_ZDC_rotateX_angle" value="0.0 * rad"/>
    <constant name="ffi_ZDC_rotateY_angle" value="-0.0125 * rad"/>
    <constant name="ffi_ZDC_rotateZ_angle" value="0.0 * rad"/>

    <comment> BeamLines: IP8 </comment>
    <!--
    <constant name="ffi_ZDC_x_pos"     value="127.0 * cm"/>
    <constant name="ffi_ZDC_y_pos"         value="0.0 * cm"/>
    <constant name="ffi_ZDC_z_pos"         value="3600.0 * cm"/>
    <constant name="ffi_ZDC_rotateX_angle" value="0.0 * rad"/>
    <constant name="ffi_ZDC_rotateY_angle" value="-0.025 * rad"/>
    <constant name="ffi_ZDC_rotateZ_angle" value="0.0 * rad"/>
    -->

    <comment> Global parameters </comment>
    <constant name="ffi_ZDC_width"             value="60.0 * cm"/>
    <constant name="ffi_ZDC_thickness"         value="200.0 * cm"/>
Whitney Armstrong's avatar
Whitney Armstrong committed
565
    <comment> Original Global parameters </comment>     
Jihee Kim's avatar
Jihee Kim committed
566
567
    <!--
    <constant name="ffi_ZDC_thickness"         value="250.0 * cm"/>
Whitney Armstrong's avatar
Whitney Armstrong committed
568
    -->     
Jihee Kim's avatar
Jihee Kim committed
569
570
571
572
573
574
    <constant name="ffi_ZDC_ECAL_thickness"    value="30.0 * cm"/>
    <constant name="ffi_ZDC_ECAL_inner_radius" value="0.0 * cm"/>
    <constant name="ffi_ZDC_ECAL_outer_radius" value="60.0 * cm"/>
    <constant name="ffi_ZDC_ECAL_width"        value="5.0 * cm"/>
    <constant name="ffi_ZDC_ECAL_gap"          value="5.0 * mm"/>
    <constant name="ffi_ZDC_ECAL_ntower"       value="10"/>
Whitney Armstrong's avatar
Whitney Armstrong committed
575
    <comment> Original number of towers parameter  </comment> 
Jihee Kim's avatar
Jihee Kim committed
576
577
578
579
    <!--
    <constant name="ffi_ZDC_ECAL_ntower"       value="20"/>
    -->

580
581
582
583
584
    <comment>
      -----------------------
      Gaseous RICH Parameters
      -----------------------
    </comment>
585
586
587
588
589
590
    <constant name="ForwardRICH_zmin"  value="SiliconTrackerOuterBarrel_zmax + 1 * cm"/>
    <constant name="ForwardRICH_rmin"  value="15 * cm"/>
    <constant name="ForwardRICH_rmax0"  value="SiliconTrackerOuterRadius"/>
    <constant name="ForwardRICH_rmax1"  value="EcalBarrel_rmin"/>
    <constant name="ForwardRICH_rmax2"  value="SolenoidBarrel_rmin-2*cm"/>
    <constant name="ForwardRICHDepth" value="0.9*m"/>
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611


    <comment>
      --------------------------
      Forward Tracker Parameters
      --------------------------
    </comment>

    <comment>
      --------------------------
      Forward ECal Parameters
      --------------------------
    </comment>

    <comment>
      --------------------------
      Forward HCal Parameters
      --------------------------
    </comment>


Chao Peng's avatar
Chao Peng committed
612
613
614
615
616
    <comment>
      --------------------------
      ce_MRICH Parameters
      --------------------------
    </comment>
617
618
619
620
    <constant name="ce_MRICHRMin"   value="15*cm"/>
    <constant name="ce_MRICHRMax"   value="100*cm"/>
    <constant name="ce_MRICHLength" value="BackwardCherenkovLength"/>
    <constant name="ce_MRICHZMin"   value="-EcalEndcapN_zmin+ce_MRICHLength"/>
Chao Peng's avatar
Chao Peng committed
621

Whitney Armstrong's avatar
Whitney Armstrong committed
622

Jihee Kim's avatar
Jihee Kim committed
623
624
625
626
627
    <comment>
      ------------------
      ce_GEM Parameters
      ------------------
    </comment>
Whitney Armstrong's avatar
Whitney Armstrong committed
628
    <constant name="ce_GEM_rmin"            value="10.0 * cm"/> <comment> temporary number. Need beampipe radius  </comment>
Jihee Kim's avatar
Jihee Kim committed
629
630
631
632
633
634
    <!--<constant name="ce_GEM_rmin"        value="0.0 * cm"/>-->
    <constant name="ce_GEM_rmax"            value="HcalEndcapN_rmin + 8.0 * cm"/> <comment> temporary number to avoid overlaps  </comment>
    <!--<constant name="ce_GEM_rmax"        value="45.0 * cm + 50.0 * cm"/>-->
    <constant name="ce_GEM_length"          value="30.0 * cm"/>
    <constant name="ce_GEM_x_pos"           value="0.0 * cm"/>
    <constant name="ce_GEM_y_pos"           value="0.0 * cm"/>
635
    <constant name="ce_GEM_z_pos"           value="-Solenoid_length/2.0 + ce_GEM_length/2.0"/>
Jihee Kim's avatar
Jihee Kim committed
636
637
    <constant name="ce_GEM_layer"           value="8"/>
    <constant name="ce_GEM_layer_thickness" value="1.0 * cm"/>
638

Whitney Armstrong's avatar
Whitney Armstrong committed
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
    <comment>
      --------------------------
      Central Ion HCal Parameters
      --------------------------
    </comment>
    <constant name="ci_HCAL_rin"     value="90 * cm"/><comment> Orginally 0, changed to not overlap solenoid </comment>
    <constant name="ci_HCAL_rout"    value="300 * cm"/>
    <constant name="ci_HCAL_sizez"   value="160 * cm"/>
    <constant name="ci_HCAL_shiftz"  value="5 * cm"/>
    <constant name="ci_HCAL_posz"    value="0 * cm"/>
   
    <constant name="ci_HCAL_nlayers"       value="20"/>
    <constant name="ci_HCAL_lay_rin"       value="ci_HCAL_rin"/> <comment> Orginally 80cm, changed to not overlap solenoid </comment>
    <constant name="ci_HCAL_lay_rout"      value="ci_HCAL_rout - 1 * cm"/>
    <constant name="ci_HCAL_lay_thickness" value="2* cm"/>
    <constant name="ci_HCAL_lay_gapz"      value="2* cm"/>

    <comment>
      --------------------------
      Central Ion GEM Parameters
      --------------------------
    </comment>
    <constant name="ci_GEM_rin"     value="10 * cm"/>
    <constant name="ci_GEM_rout"    value="95 * cm"/>
    <constant name="ci_GEM_sizez"   value="30 * cm"/>
    <constant name="ci_GEM_shiftz"  value="0 * cm"/>
    <constant name="ci_GEM_posz"    value="0 * cm"/>
    <constant name="ci_GEM_posx"    value="0 * cm"/>
    <constant name="ci_GEM_nlayers" value="8"/>

669
670
  </define>