Mixin class with functions specific for a square detector.
|
Methods
|
|
DetectorEdgeMM Disconnect Hit SetIdleTask SetImageSink
|
|
|
DetectorEdgeMM
|
DetectorEdgeMM (
self,
ang,
margin=0,
)
A pointer to a vector on the edge of the detector.
parameters:
- ang
the angular position on the edge of the detector. The
angle 0 is pointing to the right (positive y, positive
theta) side of the detector, pi/2 points up (positive z),
angle pi is pointing to the left (negative y, negative
theta) and 3/2*pi is pointing down (negative z).
- margin
how far to stay away from the real edge of the detector.
|
|
|
Disconnect
|
Disconnect ( self )
Disconnect any network connection to the hardware |
|
|
Hit
|
Hit (
self,
mmx,
mmy,
margin=0,
)
Check whether the position mmx,mmy falls on the active area of the detector.
This can either be called with floating point values mmx and mmy or with
Numeric arrays. In the former case the return value is either 1 or 0, in
the latter it is a similarly shaped array of 0's and 1's. |
|
|
SetIdleTask
|
SetIdleTask ( self, function )
Tell the driver what to do while idling |
|
|
SetImageSink
|
SetImageSink ( self, sink )
Tell the driver where images are to be sent. |
|