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

GOCS Class Reference

OCS node. More...

Inheritance diagram for GOCS:

Inheritance graph
[legend]
Collaboration diagram for GOCS:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 __init__ (client)
 read (reg)
 load (reg, value)
 evtHandlerSendAll ()
 Sets the current event mode to send all events to the client.
 evtHandlerSendNothing ()
 Sets the current event mode to send no data events to the client.
 evtHandlerSendErrorsOnly ()
 Sets the current event mode to send only error events to the client.
 evtHandlerSendAcdScalers (marker, prescale=0)
 Sets the current event mode to send only events containing the ACD software scalers to the client upon recept of the given marker. All marker zero events are accumulated by the scaler code. If an event is triggered with the specified marker, the scaler data will be delivered with that event. Thus, if the specified marker is zero, then all data events will be accompanied by the scaler data. In addition, marker zero events can be prescaled before delivery to the client. A prescale value of zero (the default) delivers every marker zero event. A prescale value of 0xffffffffL disables prescaling and delivers no events.
 evtHandlerSendPrescaled (prescale)
 Sets the current event mode to send prescaled events to the client. A prescale value of zero delivers every event. A prescale value of 0xffffffffL disables prescaling and delivers no events.
 evtHandlerPrescaleExternal (prescale)
 Sets the current event mode to prescale externally triggered events. Only events with only the external trigger firing will be prescaled. A prescale value of zero delivers every event. A prescale value of 0xffffffffL disables prescaling and delivers no events.
 evtHandlerFilterTkrHits (lowThreshold=0, towerMask=0xffff, highThreshold=0xffffffffL, prescale=0xffffffffL)
 Sets the current event mode to the Tracker Hit Filter.
 evtHandlerSetVerbosity (verbosity)
 Sets the event server verbosity.
 evtClearEvtSeqMSW ()
 Clears the event sequence counter.
 synchronize ()
 Synchronize the SBC's clock with the host's clock.
 getCallbackParams ()
 Return a dictionary of the parameters used in the active OES callback.
 getVersion ()
 Get the protocol versions of code running on the SBC.
 getStartupScriptInfo ()
 Retrieve CVS
Id
gOCS.py,v 2.29 2005/06/23 23:54:48 perazzo Exp
info for the startup script.
 verifyVersion ()
 Verify that the protocol version of the code running on the SBC is one the host code is expected to support.
 cmxAsBuilt ()

Detailed Description

OCS node.

Has OCS specific registers and methods.

Valid Registers:

Event statistics:

The following statistics registers are initialized at the start of each RunControl run:

Definition at line 68 of file gOCS.py.


Member Function Documentation

evtHandlerFilterTkrHits lowThreshold  = 0,
towerMask  = 0xffff,
highThreshold  = 0xffffffffL,
prescale  = 0xffffffffL
 

Sets the current event mode to the Tracker Hit Filter.

The Tracker Hit Filter filters events based on the number of hits in the tracker. Only events with no errors will be filtered.

The filter algorithm sums up the number of hits found in the tracker contributions of the towers given in the towerMask and requires this total number of hits to be greater than or equal to the lowThreshold value and less than or equal to the highThreshold value in order to send the event downstream. The default threshold values allow all events to pass the filter, i.e., the default low threshold is zero, and the default high threshold is larger than the full LAT can generate.

The towerMask value is constructed by setting the bit at the position corresponding to the tower address of the tower to be included. Bit zero is the least significant, right-most bit and corresponds to the tower with LATp address zero. By default, all 16 towers are included in the filter calculation.

A prescale can be applied to allow a fraction of the events that don't pass the TKR hit filter through. If the prescale value is zero, the TKR hit filter is ignored. If the prescale value is 0xffffffffL (the default), prescaling is disabled and filtering is determined by the TKR hit filter. If prescaling is enabled, every event is considered for prescaling, not just the events that fail the TKR hit filter.

Parameters:
lowThreshold - Minimum number of TKR hits needed to pass the event downstream
towerMask - Mask of the towers participating in the filter
highThreshold - Maximum number of TKR hits allowed to pass the event downstream
prescale - Prescale value to use

evtHandlerPrescaleExternal prescale   ) 
 

Sets the current event mode to prescale externally triggered events. Only events with only the external trigger firing will be prescaled. A prescale value of zero delivers every event. A prescale value of 0xffffffffL disables prescaling and delivers no events.

Parameters:
prescale - Prescale value to use

evtHandlerSendAcdScalers marker  ,
prescale  = 0
 

Sets the current event mode to send only events containing the ACD software scalers to the client upon recept of the given marker. All marker zero events are accumulated by the scaler code. If an event is triggered with the specified marker, the scaler data will be delivered with that event. Thus, if the specified marker is zero, then all data events will be accompanied by the scaler data. In addition, marker zero events can be prescaled before delivery to the client. A prescale value of zero (the default) delivers every marker zero event. A prescale value of 0xffffffffL disables prescaling and delivers no events.

Parameters:
marker - Marker to value to use
prescale - Prescale value to use

evtHandlerSendPrescaled prescale   ) 
 

Sets the current event mode to send prescaled events to the client. A prescale value of zero delivers every event. A prescale value of 0xffffffffL disables prescaling and delivers no events.

Parameters:
prescale - Prescale value to use

evtHandlerSetVerbosity verbosity   ) 
 

Sets the event server verbosity.

Parameters:
verbosity - Verbosity value to use

getStartupScriptInfo  ) 
 

Retrieve CVS

Id
gOCS.py,v 2.29 2005/06/23 23:54:48 perazzo Exp
info for the startup script.

Returns:
A list of CVS related info in the form: [filename, version, date, time, user]


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