Table of Contents

Class: VerticalImpact goniometer/impact.py

Impact calculations for a single scan

Methods   
__init__
cmat
hitrot
mm
rot
setHkl
setupiv
shkl
simrange
  __init__ 
__init__ (
        self,
        cell,
        p,
        hkl,
        durationmax=0,
        detectorsizemargin=config.detectorsizemargin,
        clockwise=1,
        )

Constructor.

arguments:

cell

The cell to which the reflections belong

p

The position of the goniostat and the detector at the beginning of the scan.

hkl

The DataSet() object containing the reflections to be predicted.

optional arguments:

durationmax

the upper limit for the reflection duration factor to accept a reflection. If set to 0, the duration is not limited.

detectorsizemargin

the insensitive edge of the detector.

clockwise

whether the angle of interest turns clockwise.

  cmat 
cmat ( self )

Return the hkl2c matrix at the starting position p

  hitrot 
hitrot ( self )

See where the reflection is reflecting during the scan

This routine checks whether refls actually hit the detector

  mm 
mm ( self )

Calculate left and right impact vectors on the detector

returns 4-tuple of vectors mmx1,mmy1,mmx2,mmy2

  rot 
rot ( self )

See where the reflection is reflecting during the scan.

This routines does not check whether it actually hits the detector

  setHkl 
setHkl ( self,  hkl )

  setupiv 
setupiv ( self )

  shkl 
shkl ( self )

  simrange 
simrange ( self,  anglim )

Simulate a rotation of anglim radians starting from p

Return an array representing the number of intersections for each reflection.


Table of Contents

This document was automatically generated on Fri Jul 3 09:28:36 2009 by HappyDoc version WORKING