Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

rcTrgGem Class Reference

rcTrgGem class definition This class implements a 'threaded' model for enabling/disabling the trigger More...

Inheritance diagram for rcTrgGem:

Inheritance graph
[legend]
Collaboration diagram for rcTrgGem:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 __init__ ()
 commit (gem=None)
 public commit function
 waitForMaskEnable (tmo=None)
 getEnableTime ()
 getDisableTime ()
 getTimeStamp ()
 sweepOnShut ()
 enable (mask=None)
 disable ()
 shut (sweepEvent, progress=None)

Detailed Description

rcTrgGem class definition This class implements a 'threaded' model for enabling/disabling the trigger

Definition at line 18 of file rcTrgGem.py.


Member Function Documentation

__init__  ) 
 

rcTrgGem constructor

Reimplemented from TrgGem.

Reimplemented in rcGEMDefaultTrigger, and TrgUsingTiles.

commit gem  = None  ) 
 

public commit function

This function commits the configuration defined by this TrgGem object to the hardware. It does *all* the registers. This function should never be called by anyone other than Run Control.

disable  ) 
 

Re-implementation of the disable() function to take advantage of threading

Reimplemented from TrgGem.

enable mask  = None  ) 
 

Re-implementation of the enable() function to take advantage of threading

Reimplemented from TrgGem.

getDisableTime  ) 
 

Returns the VxWorks timestamp at the time the triggers are disabled

Returns:
Trigger disable time

getEnableTime  ) 
 

Returns the VxWorks timestamp at the time the triggers are enabled

Returns:
Trigger enable time

getTimeStamp  ) 
 

Returns the VxWorks timestamp for the last time a self-trigger was asserted.

Returns:
Trigger timestamp

shut sweepEvent  ,
progress  = None
 

Re-implementation of the shut function to take advantage of the fact that in rcTrgGem, trigger engine 15 is reserved for the marker.

Parameters:
sweepEvent,: A sweep Event() defined by runControl
progress,: An optional function that returns a non-zero value when when events are passing through the system. If omitted a fixed timeout is used.

Reimplemented in rcGEMDefaultTrigger.

sweepOnShut  ) 
 

Returns whether or not shut() does a sweep event. Default true.

Returns:
a boolean

Reimplemented in rcGEMDefaultTrigger.

waitForMaskEnable tmo  = None  ) 
 

Waits until the enableMask() method is called. This is usually needed by non-self-triggering scripts where the _commandSynch thread needs to wait until RunControl actually enables the mask before continuing.

Parameters:
tmo Optional parameter giving the wait timeout in seconds


The documentation for this class was generated from the following file:
Generated on Fri Jul 21 13:27:57 2006 for LATTE R04-12-00 by doxygen 1.4.3