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: 1.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 """TrgPPSTimer: Abstract interface to 1-PPS timer""" 00025 00026 00027 class TrgPPSTimer(TrgObject): 00028 """\brief TrgPPSTimer class definition 00029 This class controls the GEM's 1-PPS timer. 00030 """ 00031 def __init__(self): 00032 """\brief TrgPPSTimer constructor 00033 """ 00034 pass 00035 00036 def seconds(self): 00037 """ \brief seconds() method 00038 Return the counts the number of arrived 1-PPS signals since the GEM was reset 00039 \return an integer 00040 """ 00041 raise NotImplementedError 00042 pass # returns an integer... 00043 00044 def timebase(self): 00045 """ \brief timebase() method 00046 Return the contains the time, in system clock ticks 00047 (50 nano-seconds), of the last arrived 1-PPS signal. 00048 \return an integer """ 00049 raise NotImplementedError 00050 pass # returns an integer... 00051