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 """TrgTriggerCounters: Abstract interface to trigger counters""" 00025 00026 00027 class TrgTriggerCounters(TrgObject): 00028 """\brief TrgTriggerCounters class definition 00029 This class controls the counters associated with the performance of 00030 the LAT with respect to the Trigger System. 00031 """ 00032 def __init__(self): 00033 """\brief TrgTriggerCounters constructor 00034 """ 00035 pass 00036 00037 def stats(self): 00038 """ \brief stats() method 00039 Returns the Trigger Counter Statistics object. 00040 \return A TrgTriggerStats object 00041 """ 00042 raise NotImplementedError 00043 pass 00044 00045 def reset(self): 00046 """\brief reset() method 00047 Reset the trigger counters. 00048 """ 00049 raise NotImplementedError 00050 pass 00051 00052 class TrgTriggerStats(TrgObject): 00053 """\brief TrgTriggerStats 00054 This class specifies the statistics returned by the counters defined in TrgTriggerCounters. 00055 """ 00056 def __init__(self): # constructor... 00057 """\brief TrgTriggerStats constructor 00058 """ 00059 pass 00060 def livetime(self): 00061 """ \brief livetime() method 00062 Return the system livetime 00063 \return an integer 00064 """ 00065 raise NotImplementedError 00066 pass # returns an integer... 00067 00068 def prescaled(self): 00069 """ \brief prescaled() method 00070 Return the number of events that have been prescaled 00071 \return an integer """ 00072 raise NotImplementedError 00073 pass # returns an integer... 00074 00075 def discarded(self): 00076 """\brief discarded() method 00077 Return the number of events discarded 00078 \return an integer 00079 """ 00080 raise NotImplementedError 00081 pass # returns an integer... 00082 00083 def sent(self): 00084 """\brief sent() method 00085 Return the number of events sent on 00086 \return an integer 00087 """ 00088 raise NotImplementedError 00089 pass # returns an integer... 00090