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 """TrgTileCounters: Trigger GEM tile counter abstract class""" 00025 00026 class TrgTileCounters(TrgObject): 00027 """\brief TrgTileCounters class definition 00028 This class controls the counters used to count ACD tile transitions. 00029 """ 00030 def __init__(self): # constructor... 00031 pass 00032 00033 def stats(self): 00034 """\brief stats() member function 00035 Returns the statistics object for the tile counters 00036 \return A TrgTileStats object 00037 """ 00038 raise NotImplementedError 00039 pass # returns a TrgTileStats object... 00040 00041 def reset(self): 00042 """\brief reset() member function 00043 Reset the tile statistics 00044 """ 00045 raise NotImplementedError 00046 pass # returns void... 00047 00048 def assignA(self, a): 00049 """\brief assignA() member function 00050 Assign the 'A' tile counter to watch a particular tile 00051 Immediately after counter assignment, both counters are reset. 00052 """ 00053 raise NotImplementedError 00054 pass # returns void... 00055 00056 def assignB(self, B): 00057 """\brief assignB() member function 00058 Assign the 'B' tile counter to watch a particular tile 00059 Immediately after counter assignment, both counters are reset. 00060 """ 00061 raise NotImplementedError 00062 pass # returns void... 00063 00064 def assignAB(self, a, b): 00065 """\brief assignAB() member function 00066 Assign both the 'A' and the'B' tile counters to watch two tiles 00067 Immediately after counter assignment, both counters are reset. 00068 """ 00069 raise NotImplementedError 00070 pass # returns void... 00071 00072 00073 class TrgTileStats(TrgObject): 00074 """\brief TrgTileStats class definition 00075 This class specifies the statistics returned by the counters 00076 described by TrgTileCounters. 00077 """ 00078 def __init__(self): # constructor... 00079 pass 00080 00081 def A(self): 00082 """ 00083 Return the statistics for the 'A' tile counter 00084 \return an integer 00085 """ 00086 raise NotImplementedError 00087 pass # returns an integer... 00088 00089 def B(self): 00090 """ 00091 Return the statistics for the 'B' tile counter 00092 \return an integer 00093 """ 00094 raise NotImplementedError 00095 pass 00096