|
| def | __init__ (self, workerID, queues, events, params, subworkers) |
| |
| def | Engine (self) |
| |
| def | SetServices (self, a, evt, hvt, fsr, inc, pers, ts, cntr) |
| |
| def | getCheckAlgs (self) |
| |
| def | checkExecutedPassed (self, algName) |
| |
| def | isEventPassed (self) |
| |
| def | __init__ (self, workerID, queues, events, params, subworkers) |
| |
| def | Engine (self) |
| |
| def | SetServices (self, a, evt, hvt, fsr, inc, pers, ts, cntr) |
| |
| 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 775 of file GMPBase.py.
| def GaudiMP.GMPBase.Subworker.__init__ |
( |
|
self, |
|
|
|
workerID, |
|
|
|
queues, |
|
|
|
events, |
|
|
|
params, |
|
|
|
subworkers |
|
) |
| |
Definition at line 776 of file GMPBase.py.
776 def __init__( self, workerID, queues, events, params, subworkers ) :
777 GMPComponent.__init__(self,
'Worker', workerID, queues, events, params, subworkers )
782 self.log.info(
"Subworker-%i Created OK"%(self.
nodeID))
def IdentifyWriters(self)
def __init__(self, workerID, queues, events, params, subworkers)
| def GaudiMP.GMPBase.Subworker.__init__ |
( |
|
self, |
|
|
|
workerID, |
|
|
|
queues, |
|
|
|
events, |
|
|
|
params, |
|
|
|
subworkers |
|
) |
| |
Definition at line 776 of file GMPBase.py.
776 def __init__( self, workerID, queues, events, params, subworkers ) :
777 GMPComponent.__init__(self,
'Worker', workerID, queues, events, params, subworkers )
782 self.log.info(
"Subworker-%i Created OK"%(self.
nodeID))
def IdentifyWriters(self)
def __init__(self, workerID, queues, events, params, subworkers)
| def GaudiMP.GMPBase.Subworker.checkExecutedPassed |
( |
|
self, |
|
|
|
algName |
|
) |
| |
Definition at line 896 of file GMPBase.py.
897 if self.a.algorithm( algName )._ialg.isExecuted()\
898 and self.a.algorithm( algName )._ialg.filterPassed() :
def checkExecutedPassed(self, algName)
| def GaudiMP.GMPBase.Subworker.checkExecutedPassed |
( |
|
self, |
|
|
|
algName |
|
) |
| |
Definition at line 896 of file GMPBase.py.
897 if self.a.algorithm( algName )._ialg.isExecuted()\
898 and self.a.algorithm( algName )._ialg.filterPassed() :
def checkExecutedPassed(self, algName)
| def GaudiMP.GMPBase.Subworker.Engine |
( |
|
self | ) |
|
Definition at line 785 of file GMPBase.py.
789 libc = ctypes.CDLL(
'libc.so.6')
791 libc.prctl(15,name,0,0,0)
794 startEngine = time.time()
795 msg = self.a.service(
'MessageSvc')
796 msg.Format =
'[' + self.log.name +
'] % F%18W%S%7W%R%T %0W%M'
798 self.log.name =
"Worker-%i"%(self.
nodeID)
799 self.log.info(
"Subworker %i starting Engine"%(self.
nodeID))
803 self.log.info(
'EVT WRITERS ON WORKER : %i'\
806 nEventWriters = len( self.
writerDict[
"events" ] )
812 packet = self.evcom.receive( )
815 if packet ==
'FINISHED' :
break
816 evtNumber, tbin = packet
817 if self.
cntr !=
None:
819 self.cntr.setEventCounter( evtNumber )
825 sc = self.a.executeEvent()
829 self.
rTime += (time.time()-t)
833 self.log.name =
"Worker-%i"%(self.
nodeID)
834 self.log.warning(
'Did not Execute Event')
835 self.evt.clearStore()
840 self.log.name =
"Worker-%i"%(self.
nodeID)
841 self.log.warning(
'Event did not pass : %i'%(evtNumber) )
842 self.evt.clearStore()
851 self.inc.fireIncident(gbl.Incident(
'Subworker',
'EndEvent'))
852 self.eventLoopSyncer.set()
853 self.evt.clearStore( )
854 self.log.name =
"Worker-%i"%(self.
nodeID)
855 self.log.info(
'Setting <Last> Event %s' %(self.
nodeID))
858 self.evcom.finalize()
860 self.filerecordsAgent.SendFileRecords()
861 self.
tTime = time.time()-startEngine
| def GaudiMP.GMPBase.Subworker.Engine |
( |
|
self | ) |
|
Definition at line 785 of file GMPBase.py.
789 libc = ctypes.CDLL(
'libc.so.6')
791 libc.prctl(15,name,0,0,0)
794 startEngine = time.time()
795 msg = self.a.service(
'MessageSvc')
796 msg.Format =
'[' + self.log.name +
'] % F%18W%S%7W%R%T %0W%M'
798 self.log.name =
"Worker-%i"%(self.
nodeID)
799 self.log.info(
"Subworker %i starting Engine"%(self.
nodeID))
803 self.log.info(
'EVT WRITERS ON WORKER : %i'\
806 nEventWriters = len( self.
writerDict[
"events" ] )
812 packet = self.evcom.receive( )
815 if packet ==
'FINISHED' :
break
816 evtNumber, tbin = packet
817 if self.
cntr !=
None:
819 self.cntr.setEventCounter( evtNumber )
825 sc = self.a.executeEvent()
829 self.
rTime += (time.time()-t)
833 self.log.name =
"Worker-%i"%(self.
nodeID)
834 self.log.warning(
'Did not Execute Event')
835 self.evt.clearStore()
840 self.log.name =
"Worker-%i"%(self.
nodeID)
841 self.log.warning(
'Event did not pass : %i'%(evtNumber) )
842 self.evt.clearStore()
851 self.inc.fireIncident(gbl.Incident(
'Subworker',
'EndEvent'))
852 self.eventLoopSyncer.set()
853 self.evt.clearStore( )
854 self.log.name =
"Worker-%i"%(self.
nodeID)
855 self.log.info(
'Setting <Last> Event %s' %(self.
nodeID))
858 self.evcom.finalize()
860 self.filerecordsAgent.SendFileRecords()
861 self.
tTime = time.time()-startEngine
| def GaudiMP.GMPBase.Subworker.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 880 of file GMPBase.py.
882 For some output writers, a check is performed to see if the event has
883 executed certain algorithms.
884 These reside in the AcceptAlgs property for those writers
890 if hasattr(m.w,
'AcceptAlgs') : acc += m.w.AcceptAlgs
891 if hasattr(m.w,
'RequireAlgs') : req += m.w.RequireAlgs
892 if hasattr(m.w,
'VetoAlgs') : vet += m.w.VetoAlgs
893 return (acc, req, vet)
| def GaudiMP.GMPBase.Subworker.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 880 of file GMPBase.py.
882 For some output writers, a check is performed to see if the event has
883 executed certain algorithms.
884 These reside in the AcceptAlgs property for those writers
890 if hasattr(m.w,
'AcceptAlgs') : acc += m.w.AcceptAlgs
891 if hasattr(m.w,
'RequireAlgs') : req += m.w.RequireAlgs
892 if hasattr(m.w,
'VetoAlgs') : vet += m.w.VetoAlgs
893 return (acc, req, vet)
| def GaudiMP.GMPBase.Subworker.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 903 of file GMPBase.py.
905 Check the algorithm status for an event.
906 Depending on output writer settings, the event
907 may be declined based on various criteria.
908 This is a transcript of the check that occurs in GaudiSvc::OutputStream
912 self.log.debug(
'self.acceptAlgs is %s'%(str(self.acceptAlgs)))
914 for name
in self.acceptAlgs :
921 self.log.debug(
'self.requireAlgs is %s'%(str(self.requireAlgs)))
922 for name
in self.requireAlgs :
926 self.log.info(
'Evt declined (requireAlgs) : %s'%(name) )
929 self.log.debug(
'self.vetoAlgs is %s'%(str(self.
vetoAlgs)))
934 self.log.info(
'Evt declined : (vetoAlgs) : %s'%(name) )
def checkExecutedPassed(self, algName)
| def GaudiMP.GMPBase.Subworker.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 903 of file GMPBase.py.
905 Check the algorithm status for an event.
906 Depending on output writer settings, the event
907 may be declined based on various criteria.
908 This is a transcript of the check that occurs in GaudiSvc::OutputStream
912 self.log.debug(
'self.acceptAlgs is %s'%(str(self.acceptAlgs)))
914 for name
in self.acceptAlgs :
921 self.log.debug(
'self.requireAlgs is %s'%(str(self.requireAlgs)))
922 for name
in self.requireAlgs :
926 self.log.info(
'Evt declined (requireAlgs) : %s'%(name) )
929 self.log.debug(
'self.vetoAlgs is %s'%(str(self.
vetoAlgs)))
934 self.log.info(
'Evt declined : (vetoAlgs) : %s'%(name) )
def checkExecutedPassed(self, algName)
| def GaudiMP.GMPBase.Subworker.SetServices |
( |
|
self, |
|
|
|
a, |
|
|
|
evt, |
|
|
|
hvt, |
|
|
|
fsr, |
|
|
|
inc, |
|
|
|
pers, |
|
|
|
ts, |
|
|
|
cntr |
|
) |
| |
Definition at line 866 of file GMPBase.py.
872 self.
inc = self.a.service(
'IncidentSvc',
'IIncidentSvc')
def SetServices(self, a, evt, hvt, fsr, inc, pers, ts, cntr)
| def GaudiMP.GMPBase.Subworker.SetServices |
( |
|
self, |
|
|
|
a, |
|
|
|
evt, |
|
|
|
hvt, |
|
|
|
fsr, |
|
|
|
inc, |
|
|
|
pers, |
|
|
|
ts, |
|
|
|
cntr |
|
) |
| |
Definition at line 866 of file GMPBase.py.
872 self.
inc = self.a.service(
'IncidentSvc',
'IIncidentSvc')
def SetServices(self, a, evt, hvt, fsr, inc, pers, ts, cntr)
| GaudiMP.GMPBase.Subworker.a |
| GaudiMP.GMPBase.Subworker.cntr |
| GaudiMP.GMPBase.Subworker.currentEvent |
| GaudiMP.GMPBase.Subworker.eventOutput |
| GaudiMP.GMPBase.Subworker.evt |
| GaudiMP.GMPBase.Subworker.filerecordsAgent |
| GaudiMP.GMPBase.Subworker.firstEvTime |
| GaudiMP.GMPBase.Subworker.fsr |
| GaudiMP.GMPBase.Subworker.hvt |
| GaudiMP.GMPBase.Subworker.inc |
| GaudiMP.GMPBase.Subworker.nIn |
| GaudiMP.GMPBase.Subworker.pers |
| GaudiMP.GMPBase.Subworker.ts |
| GaudiMP.GMPBase.Subworker.TS |
| GaudiMP.GMPBase.Subworker.tTime |
| GaudiMP.GMPBase.Subworker.vetoAlgs |
| GaudiMP.GMPBase.Subworker.writerDict |
The documentation for this class was generated from the following file:
- InstallArea/x86_64-slc6-gcc48-opt/python/GaudiMP/GMPBase.py