Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

fname = '/reg/d/psdm/cxi/cxii0114/calib/CsPad::CalibV1/CxiDs1.0:Cspad.0/geometry/0-end.data'
list_of_geos = load_pars_from_file(fname)

loads parameters from geometry file, saves each data line from this file in geo, creates and  returns the  list_of_geos with already set relations between children and parents.

...

top_parent = GeometryObject(pname=None, pindex=-1, oname=geobj.pname, oindex=geobj.pindex)

list_of_geos.append(top_parent)

Interface

Code Block
    # Initialization
    fname = '/reg/d/psdm/cxi/cxii0114/calib/CsPad::CalibV1/CxiDs1.0:Cspad.0/geometry/0-end.data'
    list_of_geos = load_pars_from_file(fname)

	# Information printout
    for geo in list_of_geos : geo.print_geo()
    for geo in list_of_geos : geo.print_geo_children()

    # Access to the pixel coordinate arrays 
	top_geo = list_of_geos[-1] # the top parent object is appaended as a last element of the list
	xarr, yarr, zarr = top_geo.get_pixel_coords()

 

2014-07-18 Status & Todo list

References

Status

Modules GeometryObject and GeometryAccess are implemented in C++ (ImgAlgos) and Python (pyimgalgos)

Todo list just before vacation

  • In addition to X, Y, Z pixel coordanate arrays add pixel "area" array
  • Make better interface for basic elements (2x1) pixel geometry
  • Use new geometry in image producers
  • Add geometry file producers for xpp-CSPAD and ePix
  • Automated GUI-based system for alignment of geometry objects

References