| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Configuration::LHCbApp Class Reference

Inheritance diagram for Configuration::LHCbApp:
[legend]
Collaboration diagram for Configuration::LHCbApp:
[legend]
List of all members.

Public Member Functions

def knownMonitors
def knownAuditors
def defineDB
def defineEvents
def evtMax
def skipEvents
def defineMonitors
def __apply_configuration__
def __init__
def initialize
def setOtherProp
def setOtherProps

Static Private Attributes

dictionary __slots__
dictionary _propertyDocDct
list __used_configurables__ = [ DDDBConf ]

Detailed Description

Definition at line 12 of file Configuration.py.


Member Function Documentation

def Configuration::LHCbApp::knownMonitors (   self  ) 

Definition at line 35 of file Configuration.py.

00035                            :
00036         return ["SC", "FPE"]
00037 
    def knownAuditors(self):

def Configuration::LHCbApp::knownAuditors (   self  ) 

Definition at line 38 of file Configuration.py.

00038                            :
00039         return ["NameAuditor","MemoryAuditor","ChronoAuditor"]
00040 
    def defineDB(self):

def Configuration::LHCbApp::defineDB (   self  ) 

Definition at line 41 of file Configuration.py.

00041                       :
00042         # Delegate handling of properties to DDDBConf
00043         self.setOtherProps( DDDBConf(), ["Simulation", "DataType" ] )
00044         # CondDB tags must be set
00045         from Configurables import CondDB
00046         tagsOK = True
00047         if hasattr( self, "DDDBtag" ):
00048             CondDB().Tags [ "DDDB" ] = self.getProp("DDDBtag")
00049         else:
00050             log.error( "DDDBtag property has not been set in the options" )
00051             tagsOK = False
00052         if hasattr( self, "CondDBtag" ):
00053             CondDB().Tags [ "LHCBCOND" ] = self.getProp("CondDBtag")
00054             CondDB().Tags [ "SIMCOND"  ] = self.getProp("CondDBtag")
00055         else:
00056             log.error( "CondDBtag property has not been set in the options" )
00057             tagsOK = False
00058         if not tagsOK : sys.exit(1)
00059             
    def defineEvents(self):

def Configuration::LHCbApp::defineEvents (   self  ) 

Definition at line 60 of file Configuration.py.

00060                           :
00061         # Set up transient store and data on demand service
00062         EventDataSvc( ForceLeaves        = True,
00063                       RootCLID           =    1,
00064                       EnableFaultHandler = True )
00065 
00066         SkipEvents = self.getProp("SkipEvents")
00067         if SkipEvents > 0 :
00068             if hasattr(EventSelector(),"FirstEvent"):
00069                 log.warning( "EventSelector().FirstEvent and LHCBApp().SkipEvents both defined, using LHCbApp().SkipEvents")
00070             EventSelector().FirstEvent = SkipEvents + 1
00071 
00072         # Delegate handling to ApplicationMgr configurable
00073         self.setOtherProps(ApplicationMgr(),["EvtMax"])
00074 
    def evtMax(self):

def Configuration::LHCbApp::evtMax (   self  ) 

Definition at line 75 of file Configuration.py.

00075                     :
00076         if hasattr(ApplicationMgr(),"EvtMax") and not hasattr(self,"EvtMax"):
00077             return ApplicationMgr().getProp("EvtMax")
00078         else:
00079             return self.getProp("EvtMax")
00080 
    def skipEvents(self):

def Configuration::LHCbApp::skipEvents (   self  ) 

Definition at line 81 of file Configuration.py.

00081                         :
00082         if hasattr(EventSelector(),"FirstEvent") and not hasattr(self,"SkipEvents"):
00083             return EventSelector().getProp("FirstEvent") - 1
00084         else:
00085             return self.getProp("SkipEvents")
00086 
    def defineMonitors(self):

def Configuration::LHCbApp::defineMonitors (   self  ) 

Definition at line 87 of file Configuration.py.

00087                             :
00088         for prop in self.getProp("Monitors"):
00089             if prop not in self.knownMonitors():
00090                 if prop in self.knownAuditors():
00091                     from Configurables import AuditorSvc
00092                     AuditorSvc().Auditors.append( prop )
00093                     theConf = getConfigurable(prop)
00094                     theConf.Enable = True
00095                 else:
00096                     raise RuntimeError("Unknown monitor '%s'"%prop)
00097         if "SC" in self.getProp("Monitors"):
00098             ApplicationMgr().StatusCodeCheck = True
00099         if "FPE" in self.getProp("Monitors"):
00100             importOptions( "$STDOPTS/FPEAudit.opts" )
00101 
    def __apply_configuration__(self):

def Configuration::LHCbApp::__apply_configuration__ (   self  ) 

Definition at line 102 of file Configuration.py.

00102                                      :
00103         self.defineDB()
00104         self.defineEvents()
00105         self.defineMonitors()
        self.defineMonitors()


Member Data Documentation

dictionary Configuration::LHCbApp::__slots__ [static, private]

Initial value:

{
        "EvtMax"     : -1
       ,"SkipEvents" : 0
       ,"DataType"   : "2008"
       ,"DDDBtag"    : ""
       ,"CondDBtag"  : ""
       ,"Simulation" : False
       ,"Monitors"   : []
        }

Reimplemented from Configuration::LHCbConfigurableUser.

Definition at line 13 of file Configuration.py.

dictionary Configuration::LHCbApp::_propertyDocDct [static, private]

Initial value:

{ 
        'EvtMax'     : 
       ,'SkipEvents' : """ Number of events to skip """
       ,'DataType'   : """ Data type, can be ['DC06','2008']. Default '2008' """
       ,'DDDBtag'    : """ Tag for DDDB. Default as set in DDDBConf for DataType """
       ,'CondDBtag'  : """ Tag for CondDB. Default as set in DDDBConf for DataType """
       ,'Simulation' : """ Flag to indicate usage of simulation conditions """
       ,'Monitors'   : """ List of monitors to execute """
       }

Definition at line 23 of file Configuration.py.

list Configuration::LHCbApp::__used_configurables__ = [ DDDBConf ] [static, private]

Definition at line 33 of file Configuration.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:04:43 2011 for GaudiConf by doxygen 1.4.7