00001 #!/usr/local/bin/python 00002 # 00003 # Copyright 2004 00004 # by 00005 # The Board of Trustees of the 00006 # Leland Stanford Junior University. 00007 # All rights reserved. 00008 # 00009 00010 __facility__ = "Online" 00011 __abstract__ = "GLAST LAT Coincidence based Trigger System Abstract classes" 00012 __author__ = "Jim Panetta <panetta@slac.stanford.edu> SLAC - GLAST I&T" 00013 __date__ = "2/14/04" 00014 __version__ = "$Revision: 2.1 $" 00015 __release__ = "$Name: R04-12-00 $" 00016 __credits__ = "SLAC" 00017 00018 import LATTE.copyright_SLAC 00019 00020 00021 from TrgObject import TrgObject 00022 00023 00024 """TrgAbstract: Interface for Coincidence based Trigger System""" 00025 00026 00027 class TrgAbstract(TrgObject): 00028 """\brief Abstract trigger interface class definition 00029 """ 00030 def __init__(self): 00031 """\brief TrgAbstract constructor 00032 """ 00033 pass 00034 00035 def conditions(self): 00036 """\brief conditions 'pure virtual' method 00037 00038 \return A TrgConditionsValue object 00039 This object specifies the set of conditions to be enabled when 00040 the enable() member function is called 00041 """ 00042 raise NotImplementedError 00043 pass 00044 00045 def engines(self): 00046 """\brief Engines 'pure virtual' method 00047 00048 \return A TrgEngines object 00049 This object specifies the set of engines used by the trigger 00050 """ 00051 raise NotImplementedError 00052 pass 00053 00054 def sequence(self): 00055 """\brief Sequence 'pure virtual' method 00056 00057 \return A TrgSequence object 00058 This object specifies the initial sequence number definitions for the trigger 00059 """ 00060 raise NotImplementedError 00061 pass 00062 00063 def inputEnables(self): 00064 """\brief Enables 'pure virtual' method 00065 00066 \return A TrgInputEnables object 00067 This object specifies the input masking definitions for the trigger 00068 """ 00069 raise NotImplementedError 00070 pass 00071 00072 def version(self): 00073 """\brief Version 'pure virtual' method 00074 00075 \return An integer 00076 This value specifies (in a hardware dependent representation) the 00077 generation and revision numbers of the Trigger System. 00078 """ 00079 raise NotImplementedError 00080 pass 00081 00082 def maxEngines(self): 00083 """\brief maxEngines 'pure virtual' method 00084 00085 \return An integer 00086 This value determines the maximum number of Trigger Engines 00087 supported by the Trigger System. 00088 """ 00089 raise NotImplementedError 00090 pass 00091 00092 def maxConditions(self): 00093 """\brief maxConditions 'pure virtual' method 00094 00095 \return An integer 00096 This value specifies the type and number of conditions 00097 supported by the Trigger System. 00098 """ 00099 raise NotImplementedError 00100 pass 00101 00102 def solicit(self): 00103 """\brief Solicit 'pure virtual' method 00104 00105 Allows the application to assert the solicited condition. 00106 Depending on the engine (or engines) associated with this 00107 condition, asserting this condition will most likely cause 00108 a readout of the detector. This function returns no value. 00109 """ 00110 raise NotImplementedError 00111 pass 00112 00113 def enable(self): 00114 """\brief Enable 'pure virtual' method 00115 00116 This function returns no value. 00117 00118 Enables the trigger conditions returned by the conditions() member function. 00119 Once a condition is enabled and the 00120 condition occurs in the LAT, the Trigger Engines corresponding to 00121 the condition will fire and most likely cause a Trigger Message to 00122 be emitted by the Trigger System. 00123 """ 00124 raise NotImplementedError 00125 pass 00126 00127 def disable(self): 00128 """\brief disable 'pure virtual' method 00129 00130 This function returns no value. 00131 00132 Disables the conditions returned by the conditions() member function. 00133 Once a condition is disabled, the 00134 condition will not activate the Trigger System, independent of its 00135 presence in the LAT. 00136 """ 00137 raise NotImplementedError 00138 pass 00139 00140 def shut(self, marker): 00141 """\brief shut 'pure virtual' method 00142 00143 \param marker an integer representing a marker value 00144 00145 This function returns no value. 00146 00147 This function returns performs two functions: 00148 a) it disables any enabled conditions 00149 b) it solicits a trigger with a marker of the value of the input value 00150 """ 00151 raise NotImplementedError 00152 pass 00153 00154