|
| def | __init__ (self, workerID, queues, events, params, subworkers) |
| |
| def | processConfiguration (self) |
| |
| def | Engine (self) |
| |
| def | getCheckAlgs (self) |
| |
| def | checkExecutedPassed (self, algName) |
| |
| def | isEventPassed (self) |
| |
| def | __init__ (self, workerID, queues, events, params, subworkers) |
| |
| def | processConfiguration (self) |
| |
| def | Engine (self) |
| |
| def | getCheckAlgs (self) |
| |
| def | checkExecutedPassed (self, algName) |
| |
| def | isEventPassed (self) |
| |
| def | __init__ (self, nodeType, nodeID, queues, events, params, subworkers) |
| |
| def | Start (self) |
| |
| def | Engine (self) |
| |
| def | processConfiguration (self) |
| |
| def | SetupGaudiPython (self) |
| |
| def | StartGaudiPython (self) |
| |
| def | LoadTES (self, tbufferfile) |
| |
| def | getEventNumber (self) |
| |
| def | IdentifyWriters (self) |
| |
| def | dumpHistograms (self) |
| |
| def | Initialize (self) |
| |
| def | Finalize (self) |
| |
| def | Report (self) |
| |
| def | __init__ (self, nodeType, nodeID, queues, events, params, subworkers) |
| |
| def | Start (self) |
| |
| def | Engine (self) |
| |
| def | processConfiguration (self) |
| |
| def | SetupGaudiPython (self) |
| |
| def | StartGaudiPython (self) |
| |
| def | LoadTES (self, tbufferfile) |
| |
| def | getEventNumber (self) |
| |
| def | IdentifyWriters (self) |
| |
| def | dumpHistograms (self) |
| |
| def | Initialize (self) |
| |
| def | Finalize (self) |
| |
| def | Report (self) |
| |
Definition at line 940 of file GMPBase.py.
| def GaudiMP.GMPBase.Worker.__init__ |
( |
|
self, |
|
|
|
workerID, |
|
|
|
queues, |
|
|
|
events, |
|
|
|
params, |
|
|
|
subworkers |
|
) |
| |
Definition at line 941 of file GMPBase.py.
941 def __init__( self, workerID, queues, events, params , subworkers ) :
942 GMPComponent.__init__(self,
'Worker', workerID, queues, events, params, subworkers )
947 self.log.name =
"Worker-%i"%(self.
nodeID)
948 self.log.info(
"Worker-%i Created OK"%(self.
nodeID))
def IdentifyWriters(self)
def __init__(self, workerID, queues, events, params, subworkers)
| def GaudiMP.GMPBase.Worker.__init__ |
( |
|
self, |
|
|
|
workerID, |
|
|
|
queues, |
|
|
|
events, |
|
|
|
params, |
|
|
|
subworkers |
|
) |
| |
Definition at line 941 of file GMPBase.py.
941 def __init__( self, workerID, queues, events, params , subworkers ) :
942 GMPComponent.__init__(self,
'Worker', workerID, queues, events, params, subworkers )
947 self.log.name =
"Worker-%i"%(self.
nodeID)
948 self.log.info(
"Worker-%i Created OK"%(self.
nodeID))
def IdentifyWriters(self)
def __init__(self, workerID, queues, events, params, subworkers)
| def GaudiMP.GMPBase.Worker.checkExecutedPassed |
( |
|
self, |
|
|
|
algName |
|
) |
| |
Definition at line 1123 of file GMPBase.py.
1124 if self.a.algorithm( algName )._ialg.isExecuted()\
1125 and self.a.algorithm( algName )._ialg.filterPassed() :
def checkExecutedPassed(self, algName)
| def GaudiMP.GMPBase.Worker.checkExecutedPassed |
( |
|
self, |
|
|
|
algName |
|
) |
| |
Definition at line 1123 of file GMPBase.py.
1124 if self.a.algorithm( algName )._ialg.isExecuted()\
1125 and self.a.algorithm( algName )._ialg.filterPassed() :
def checkExecutedPassed(self, algName)
| def GaudiMP.GMPBase.Worker.Engine |
( |
|
self | ) |
|
Definition at line 991 of file GMPBase.py.
996 libc = ctypes.CDLL(
'libc.so.6')
998 libc.prctl(15,name,0,0,0)
1000 startEngine = time.time()
1001 self.log.info(
"Worker %i starting Engine"%(self.
nodeID))
1006 self.log.info(
'EVT WRITERS ON WORKER : %i'\
1009 nEventWriters = len( self.
writerDict[
"events" ] )
1014 for item
in m.ItemList :
1015 hsh = item.find(
'#' )
1018 itemList.add( item )
1019 for item
in m.OptItemList :
1020 hsh = item.find(
'#' )
1023 optItemList.add( item )
1025 itemList -= optItemList
1026 for item
in sorted( itemList ):
1027 self.log.info(
' adding ItemList Item to ts : %s' % ( item ) )
1028 self.ts.addItem( item )
1029 for item
in sorted( optItemList ):
1030 self.log.info(
' adding Optional Item to ts : %s' % ( item ) )
1031 self.ts.addOptItem( item )
1033 self.log.info(
'There is no Event Output for this app' )
1039 packet = self.evcom.receive( )
1042 if packet ==
'FINISHED' :
break
1043 evtNumber, tbin = packet
1044 if self.
cntr !=
None:
1045 self.cntr.setEventCounter( evtNumber )
1052 self.log.info(
"Fork new subworkers and disconnect from CondDB")
1053 condDB = self.a.service(
'CondDBCnvSvc', gbl.ICondDBReader)
1062 self.TS.Load( tbin )
1065 sc = self.a.executeEvent()
1069 self.
rTime += (time.time()-t)
1073 self.log.warning(
'Did not Execute Event')
1074 self.evt.clearStore()
1079 self.log.warning(
'Event did not pass : %i'%(evtNumber) )
1080 self.evt.clearStore()
1086 tb = self.TS.Dump( )
1089 self.inc.fireIncident(gbl.Incident(
'Worker',
'EndEvent'))
1090 self.eventLoopSyncer.set()
1091 self.evt.clearStore( )
1092 self.log.info(
'Setting <Last> Event')
1093 self.lastEvent.set()
1095 self.evcom.finalize()
1096 self.log.info(
'Worker-%i Finished Processing Events'%(self.
nodeID) )
1098 self.filerecordsAgent.SendFileRecords()
1104 self.log.info(
'Join subworkers')
| def GaudiMP.GMPBase.Worker.Engine |
( |
|
self | ) |
|
Definition at line 991 of file GMPBase.py.
996 libc = ctypes.CDLL(
'libc.so.6')
998 libc.prctl(15,name,0,0,0)
1000 startEngine = time.time()
1001 self.log.info(
"Worker %i starting Engine"%(self.
nodeID))
1006 self.log.info(
'EVT WRITERS ON WORKER : %i'\
1009 nEventWriters = len( self.
writerDict[
"events" ] )
1014 for item
in m.ItemList :
1015 hsh = item.find(
'#' )
1018 itemList.add( item )
1019 for item
in m.OptItemList :
1020 hsh = item.find(
'#' )
1023 optItemList.add( item )
1025 itemList -= optItemList
1026 for item
in sorted( itemList ):
1027 self.log.info(
' adding ItemList Item to ts : %s' % ( item ) )
1028 self.ts.addItem( item )
1029 for item
in sorted( optItemList ):
1030 self.log.info(
' adding Optional Item to ts : %s' % ( item ) )
1031 self.ts.addOptItem( item )
1033 self.log.info(
'There is no Event Output for this app' )
1039 packet = self.evcom.receive( )
1042 if packet ==
'FINISHED' :
break
1043 evtNumber, tbin = packet
1044 if self.
cntr !=
None:
1045 self.cntr.setEventCounter( evtNumber )
1052 self.log.info(
"Fork new subworkers and disconnect from CondDB")
1053 condDB = self.a.service(
'CondDBCnvSvc', gbl.ICondDBReader)
1062 self.TS.Load( tbin )
1065 sc = self.a.executeEvent()
1069 self.
rTime += (time.time()-t)
1073 self.log.warning(
'Did not Execute Event')
1074 self.evt.clearStore()
1079 self.log.warning(
'Event did not pass : %i'%(evtNumber) )
1080 self.evt.clearStore()
1086 tb = self.TS.Dump( )
1089 self.inc.fireIncident(gbl.Incident(
'Worker',
'EndEvent'))
1090 self.eventLoopSyncer.set()
1091 self.evt.clearStore( )
1092 self.log.info(
'Setting <Last> Event')
1093 self.lastEvent.set()
1095 self.evcom.finalize()
1096 self.log.info(
'Worker-%i Finished Processing Events'%(self.
nodeID) )
1098 self.filerecordsAgent.SendFileRecords()
1104 self.log.info(
'Join subworkers')
| def GaudiMP.GMPBase.Worker.getCheckAlgs |
( |
|
self | ) |
|
For some output writers, a check is performed to see if the event has
executed certain algorithms.
These reside in the AcceptAlgs property for those writers
Definition at line 1107 of file GMPBase.py.
1109 For some output writers, a check is performed to see if the event has
1110 executed certain algorithms.
1111 These reside in the AcceptAlgs property for those writers
1117 if hasattr(m.w,
'AcceptAlgs') : acc += m.w.AcceptAlgs
1118 if hasattr(m.w,
'RequireAlgs') : req += m.w.RequireAlgs
1119 if hasattr(m.w,
'VetoAlgs') : vet += m.w.VetoAlgs
1120 return (acc, req, vet)
| def GaudiMP.GMPBase.Worker.getCheckAlgs |
( |
|
self | ) |
|
For some output writers, a check is performed to see if the event has
executed certain algorithms.
These reside in the AcceptAlgs property for those writers
Definition at line 1107 of file GMPBase.py.
1109 For some output writers, a check is performed to see if the event has
1110 executed certain algorithms.
1111 These reside in the AcceptAlgs property for those writers
1117 if hasattr(m.w,
'AcceptAlgs') : acc += m.w.AcceptAlgs
1118 if hasattr(m.w,
'RequireAlgs') : req += m.w.RequireAlgs
1119 if hasattr(m.w,
'VetoAlgs') : vet += m.w.VetoAlgs
1120 return (acc, req, vet)
| def GaudiMP.GMPBase.Worker.isEventPassed |
( |
|
self | ) |
|
Check the algorithm status for an event.
Depending on output writer settings, the event
may be declined based on various criteria.
This is a transcript of the check that occurs in GaudiSvc::OutputStream
Definition at line 1130 of file GMPBase.py.
1132 Check the algorithm status for an event.
1133 Depending on output writer settings, the event
1134 may be declined based on various criteria.
1135 This is a transcript of the check that occurs in GaudiSvc::OutputStream
1139 self.log.debug(
'self.acceptAlgs is %s'%(str(self.acceptAlgs)))
1140 if self.acceptAlgs :
1141 for name
in self.acceptAlgs :
1148 self.log.debug(
'self.requireAlgs is %s'%(str(self.requireAlgs)))
1149 for name
in self.requireAlgs :
1153 self.log.info(
'Evt declined (requireAlgs) : %s'%(name) )
1156 self.log.debug(
'self.vetoAlgs is %s'%(str(self.
vetoAlgs)))
1161 self.log.info(
'Evt declined : (vetoAlgs) : %s'%(name) )
def checkExecutedPassed(self, algName)
| def GaudiMP.GMPBase.Worker.isEventPassed |
( |
|
self | ) |
|
Check the algorithm status for an event.
Depending on output writer settings, the event
may be declined based on various criteria.
This is a transcript of the check that occurs in GaudiSvc::OutputStream
Definition at line 1130 of file GMPBase.py.
1132 Check the algorithm status for an event.
1133 Depending on output writer settings, the event
1134 may be declined based on various criteria.
1135 This is a transcript of the check that occurs in GaudiSvc::OutputStream
1139 self.log.debug(
'self.acceptAlgs is %s'%(str(self.acceptAlgs)))
1140 if self.acceptAlgs :
1141 for name
in self.acceptAlgs :
1148 self.log.debug(
'self.requireAlgs is %s'%(str(self.requireAlgs)))
1149 for name
in self.requireAlgs :
1153 self.log.info(
'Evt declined (requireAlgs) : %s'%(name) )
1156 self.log.debug(
'self.vetoAlgs is %s'%(str(self.
vetoAlgs)))
1161 self.log.info(
'Evt declined : (vetoAlgs) : %s'%(name) )
def checkExecutedPassed(self, algName)
| def GaudiMP.GMPBase.Worker.processConfiguration |
( |
|
self | ) |
|
Definition at line 951 of file GMPBase.py.
957 self.config[
'EventSelector' ].Input = []
958 self.config[
'ApplicationMgr' ].OutStream = []
959 if "HistogramPersistencySvc" in self.config.keys() :
960 self.config[
'HistogramPersistencySvc' ].OutputFile =
''
961 formatHead =
'[Worker-%i] '%(self.
nodeID)
962 self.config[
'MessageSvc'].Format = formatHead+
'% F%18W%S%7W%R%T %0W%M'
964 for key, lst
in self.writerDict.iteritems() :
965 self.log.info(
'Writer Type : %s\t : %i'%(key, len(lst)) )
970 newName = m.getNewName(
'.',
'.w%i.'%(self.
nodeID) )
971 self.config[ m.key ].Output = newName
981 if "ToolSvc.EvtCounter" not in self.config:
982 from Configurables
import EvtCounter
983 counter = EvtCounter()
985 counter = self.config[
"ToolSvc.EvtCounter"]
986 counter.UseIncident =
False
989 self.log.warning(
'Cannot configure EvtCounter')
def processConfiguration(self)
| def GaudiMP.GMPBase.Worker.processConfiguration |
( |
|
self | ) |
|
Definition at line 951 of file GMPBase.py.
957 self.config[
'EventSelector' ].Input = []
958 self.config[
'ApplicationMgr' ].OutStream = []
959 if "HistogramPersistencySvc" in self.config.keys() :
960 self.config[
'HistogramPersistencySvc' ].OutputFile =
''
961 formatHead =
'[Worker-%i] '%(self.
nodeID)
962 self.config[
'MessageSvc'].Format = formatHead+
'% F%18W%S%7W%R%T %0W%M'
964 for key, lst
in self.writerDict.iteritems() :
965 self.log.info(
'Writer Type : %s\t : %i'%(key, len(lst)) )
970 newName = m.getNewName(
'.',
'.w%i.'%(self.
nodeID) )
971 self.config[ m.key ].Output = newName
981 if "ToolSvc.EvtCounter" not in self.config:
982 from Configurables
import EvtCounter
983 counter = EvtCounter()
985 counter = self.config[
"ToolSvc.EvtCounter"]
986 counter.UseIncident =
False
989 self.log.warning(
'Cannot configure EvtCounter')
def processConfiguration(self)
| GaudiMP.GMPBase.Worker.app |
| GaudiMP.GMPBase.Worker.currentEvent |
| GaudiMP.GMPBase.Worker.eventOutput |
| GaudiMP.GMPBase.Worker.filerecordsAgent |
| GaudiMP.GMPBase.Worker.firstEvTime |
| GaudiMP.GMPBase.Worker.nIn |
| GaudiMP.GMPBase.Worker.tTime |
| GaudiMP.GMPBase.Worker.vetoAlgs |
| GaudiMP.GMPBase.Worker.writerDict |
The documentation for this class was generated from the following file:
- InstallArea/x86_64-slc6-gcc48-opt/python/GaudiMP/GMPBase.py