Skip to content

Commit

Permalink
Refs #113. Started to convert to new 2D detector standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed May 22, 2019
1 parent 2b82b38 commit 59eeb00
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions hb3a_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@
# Definition of constants
HB3A_L1 = 2.

FourCircle_SETUP = {'L1': 2.0,
'L2': 0.3750, # arm length
'PixelNumber': {256: (256, 256), 512: (512, 512)},
'PixelSize': {256: xx, 512: 0.0002265625},
}

ZEBRA_SETUP = {}

DEMAND_SETUP = {'L1': 2.0,
'L2': 0.3750,
'Panel Center': {1: (0, -Y), 2: (0, 0), 3: (0, Y)},
'PixelNumber': {1: (512, 512), 2: (512, 512), 3: (512, 512)}
}



class HB3AGeometry(helper.MantidGeom):
"""
Expand All @@ -29,6 +44,10 @@ def generate_1_panel_idf(out_file_name):
""" Generate the 1 panel (256 X 256) IDF valid to October 2018
:return:
"""
# rot-y --> 2theta
# diffx --> deltax
# diffy --> deltay

# generate instrument geometry object
instrument_name = 'HB3A'
authors = ["Wenduo Zhou"]
Expand Down

0 comments on commit 59eeb00

Please sign in to comment.