Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

    trbit = [0,0,0,0]
    asicPixelConfig = np.zeros((144, 768), dtype=np.uint8)

_segment_numbers(self, evt) returns 3 fixed as 0

Default geometry files

Detector package code is fixed to load default geometry from files if constants are missing in DB

...

segnums = det.raw._segment_numbers : = [3,]

pedestals and other arrays from calib constants including mask and geometry coordinate and index arrays:

peds = det.raw._pedestals()                                    # peds.shape=(7, 1, 144, 768) 

peds = det.raw._pedestals(all_segs=True)            # peds.shape=(7, 20, 144, 768) 

mask = det.raw._mask(...)                                        # mask.shape=(1, 144, 768) 

mask = det.raw._mask(all_segs=True, ...)              # mask.shape=(20, 144, 768)

x,y,z = det.raw._pixel_coords(...)                             # x/y/z.shape=(1, 144, 768) 

x,y,z = det.raw._pixel_coords(all_segs=True, ...)   # x/y/z.shape=(20, 144, 768) 

raw = det.raw.raw(evt) # raw.shape=(1, 144, 768) <== ALWAYS

raw = det.raw.calib(evt) # calib.shape=(1, 144, 768) <== ALWAYS, because derived from raw.

...