Skip to content

Commit

Permalink
Introduce ldmx-reduced-v2 (#1489)
Browse files Browse the repository at this point in the history
Implemented reduced ldmx v2 geometry + modified dependent scripts
  • Loading branch information
SanjitMasanam authored Oct 17, 2024
1 parent 34d43a5 commit 96f6980
Show file tree
Hide file tree
Showing 16 changed files with 5,467 additions and 4 deletions.
19 changes: 16 additions & 3 deletions DetDescr/python/EcalGeometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ def v14() :
eg.layer_shift_x = 2*eg.moduleMinR / eg.nCellRHeight
return eg


def reduced() :
eg = EcalGeometry(detectors_valid = ["ldmx-reduced","ldmx-reduced[.].*"],
eg = EcalGeometry(detectors_valid = ["ldmx-reduced"],
gap = 1.5,
layerZPositions = [
7.932, 14.532, 32.146, 40.746, 58.110, 67.710
Expand All @@ -139,5 +138,19 @@ def reduced() :
eg.layer_shift_x = 2*eg.moduleMinR / eg.nCellRHeight
return eg

def reduced_v2() :
eg = EcalGeometry(detectors_valid = ["ldmx-reduced-v2"],
gap = 1.5,
layerZPositions = [
9.932, 22.412, 40.81, 54.556, 71.954, 85.67
],
ecalFrontZ = 240.0,
cornersSideUp = True,
layer_shift_odd = True,
)
# shift by a single cell diameter
eg.layer_shift_x = 2*eg.moduleMinR / eg.nCellRHeight
return eg

def geometries() :
return [EcalGeometry.v9(), EcalGeometry.v12(), EcalGeometry.v13(), EcalGeometry.v14(), EcalGeometry.reduced()]
return [EcalGeometry.v9(), EcalGeometry.v12(), EcalGeometry.v13(), EcalGeometry.v14(), EcalGeometry.reduced(), EcalGeometry.reduced_v2()]
2 changes: 1 addition & 1 deletion DetDescr/python/HcalGeometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,5 +487,5 @@ def make_v14(self):
]
# added the reduced geometry temporarily, for the final geometry
# we should have a new function "reduced()" with the prototype geom
self.v14.detectors_valid = ["ldmx-det-v14", "ldmx-det-v14.*", "ldmx-reduced","ldmx-lyso-r1-v14", "ldmx-lyso-r1-v14.*"]
self.v14.detectors_valid = ["ldmx-det-v14", "ldmx-det-v14.*", "ldmx-reduced", "ldmx-reduced-v2","ldmx-lyso-r1-v14", "ldmx-lyso-r1-v14.*"]
self.v14.y_offset = 19.05
Loading

0 comments on commit 96f6980

Please sign in to comment.