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 Trigger Object class" 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 """TrgGemPeriodicCondition: Hardware implementation of TrgPeriodicCondition""" 00021 00022 from TrgPeriodic import TrgPeriodicCondition 00023 00024 class TrgGemPeriodicCondition(TrgPeriodicCondition): 00025 """\brief Trigger Periodic Condition class definition 00026 """ 00027 00028 def __init__(self): # constructor... 00029 TrgPeriodicCondition.__init__(self) 00030 self.__gem = None 00031 00032 def __setGEM(self, gem): 00033 self.__gem = gem 00034 00035 def remaining(self): 00036 """\brief remaining() method 00037 See base class 00038 """ 00039 return self.__gem.GEMC.PERIODIC_LIMITS 00040 00041 def reset(self): 00042 """\brief reset() method 00043 See base class 00044 """ 00045 self.__gem.GEMC.PERIODIC_LIMITS = 0 00046 self.__gem.GEMC.PERIODIC_LIMITS = self.limit() 00047 00048 def abort(self): 00049 """\brief abort() method 00050 See base class 00051 """ 00052 self.__gem.GEMC.PERIODIC_LIMITS = 0 00053 00054 00055 def source(self): 00056 """\brief source() method 00057 See base class 00058 """ 00059 return self.definition().source() 00060 00061 def prescale(self): 00062 """\brief prescale() method 00063 See base class 00064 """ 00065 return self.definition().prescale() 00066 00067 def limit(self): 00068 """\brief limit() method 00069 See base class 00070 """ 00071 return self.definition().limit()