Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

TrgConditionsValue.py

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 Conditions Interface classes"
00012 __author__   = "Jim Panetta <panetta@slac.stanford.edu> SLAC - GLAST I&T"
00013 __date__     = "2/14/04"
00014 __version__  = "$Revision: 2.2 $"
00015 __release__  = "$Name: R04-12-00 $"
00016 __credits__  = "SLAC"
00017 
00018 import LATTE.copyright_SLAC
00019 
00020 
00021 from TrgConditions import TrgConditions
00022 
00023 
00024 
00025 class TrgConditionsValue(TrgConditions):
00026   """\brief Trigger Conditions Value  class definition
00027   """
00028   def __init__(self):
00029     """\brief TrgConditionsValue constructor
00030     """
00031     pass
00032 
00033   def value(self):
00034     """\brief Value method
00035 
00036     \return integer
00037     
00038     Returns an integer corresponding to the conditionValue integer
00039             corresponding to the WINDOW_OPEN mask register of the GEM
00040             Ref: LAT-TD-01545, S 2.9.2
00041     """
00042     val = 0
00043     val |= ( self.roi()       & 0x1  )  << 0
00044     val |= ( self.tkr()       & 0x1  )  << 1
00045     val |= ( self.calLow()    & 0x1  )  << 2
00046     val |= ( self.calHigh()   & 0x1  )  << 3
00047     val |= ( self.cno()       & 0x1  )  << 4
00048     val |= ( self.periodic()  & 0x1  )  << 5
00049     val |= ( self.solicited() & 0x1  )  << 6
00050     val |= ( self.external()  & 0x1  )  << 7
00051     return val
00052 
00053   ########### implementation of pure virtual methods from TrgConditions
00054   # All triggers are off by default.
00055   def roi(self):
00056     return False
00057 
00058   def calLow(self):
00059     return False
00060 
00061   def calHigh(self):
00062     return False
00063 
00064   def tkr(self):
00065     return False
00066 
00067   def periodic(self):
00068     return False
00069 
00070   def solicited(self):
00071     return False
00072 
00073   def cno(self):
00074     return False
00075 
00076   def external(self):
00077     return False
00078 

Generated on Fri Jul 21 13:26:33 2006 for LATTE R04-12-00 by doxygen 1.4.3