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 Interface 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 """TrgMiniGLTAbstract: Abstract interface for MiniGLT based systems. """ 00021 00022 from TrgAbstract import TrgAbstract 00023 00024 class TrgMiniGLTAbstract(TrgAbstract): 00025 """\brief TrgMiniGLTAbstract Interface class definition 00026 This class inherits from TrgAbstract to define the structure of 00027 a MiniGLT trigger. 00028 """ 00029 def __init__(self): 00030 """\brief TrgMiniGLTAbstract constructor 00031 """ 00032 TrgAbstract.__init__(self) 00033 00034 ############# Pure Virtual functions 00035 def parity(self): 00036 """\brief parity() member function 00037 Returns a boolean indicating the state of the parity bitfield 00038 in the configuration register of the MiniGLT 00039 \return a boolean 00040 """ 00041 raise NotImplementedError 00042 pass 00043 00044 def tag(self): 00045 """\brief tag() member function 00046 Returns an integer indicating the state of the tag bitfield in 00047 the configuration register of the MiniGLT 00048 \return an integer 00049 """ 00050 raise NotImplementedError 00051 pass 00052 00053 def eventNumber(self): 00054 """\brief eventNumber() member function 00055 Returns an integer indicating the starting event number 00056 of the MiniGLT 00057 \return an integer 00058 """ 00059 raise NotImplementedError 00060 pass 00061 00062 def destination(self): 00063 """\brief destination() member function 00064 Returns an integer indicating the state of the destination bitfield in 00065 the configuration register of the MiniGLT 00066 \return an integer 00067 """ 00068 raise NotImplementedError 00069 pass 00070 00071 def marker(self): 00072 """\brief marker() member function 00073 Returns an integer indicating the state of the marker bitfield in 00074 the configuration register of the MiniGLT 00075 \return an integer 00076 """ 00077 raise NotImplementedError 00078 pass 00079 00080 def tack(self): 00081 """\brief tack() member function 00082 Returns a boolean indicating the state of the tack bitfield 00083 in the configuration register of the MiniGLT 00084 \return a boolean 00085 """ 00086 raise NotImplementedError 00087 pass 00088 00089 def zeroSuppress(self): 00090 """\brief zeroSuppress() member function 00091 Returns a boolean indicating the state of the zeroSuppress bitfield 00092 in the configuration register of the MiniGLT 00093 \return a boolean 00094 """ 00095 raise NotImplementedError 00096 pass 00097 00098 def fourRangeReadout(self): 00099 """\brief fourRangeReadout() member function 00100 Returns a boolean indicating the state of the fourRangeReadout bitfield 00101 in the configuration register of the MiniGLT 00102 \return a boolean 00103 """ 00104 raise NotImplementedError 00105 pass 00106 00107 def calStrobe(self): 00108 """\brief calStrobe() member function 00109 Returns a boolean indicating the state of the calStrobe bitfield 00110 in the configuration register of the MiniGLT 00111 \return a boolean 00112 """ 00113 raise NotImplementedError 00114 pass 00115 00116 00117 00118 00119 00120 00121