|
| 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 776 of file GMPBase.py.
| def GaudiMP.GMPBase.Subworker.__init__ |
( |
|
self, |
|
|
|
workerID, |
|
|
|
queues, |
|
|
|
events, |
|
|
|
params, |
|
|
|
subworkers |
|
) |
| |
Definition at line 777 of file GMPBase.py.
777 def __init__( self, workerID, queues, events, params, subworkers ) :
778 GMPComponent.__init__(self,
'Worker', workerID, queues, events, params, subworkers )
783 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 777 of file GMPBase.py.
777 def __init__( self, workerID, queues, events, params, subworkers ) :
778 GMPComponent.__init__(self,
'Worker', workerID, queues, events, params, subworkers )
783 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 897 of file GMPBase.py.
898 if self.a.algorithm( algName )._ialg.isExecuted()\
899 and self.a.algorithm( algName )._ialg.filterPassed() :
def checkExecutedPassed(self, algName)
| def GaudiMP.GMPBase.Subworker.checkExecutedPassed |
( |
|
self, |
|
|
|
algName |
|
) |
| |
Definition at line 897 of file GMPBase.py.
898 if self.a.algorithm( algName )._ialg.isExecuted()\
899 and self.a.algorithm( algName )._ialg.filterPassed() :
def checkExecutedPassed(self, algName)
| def GaudiMP.GMPBase.Subworker.Engine |
( |
|
self | ) |
|
Definition at line 786 of file GMPBase.py.
790 libc = ctypes.CDLL(
'libc.so.6')
792 libc.prctl(15,name,0,0,0)
795 startEngine = time.time()
796 msg = self.a.service(
'MessageSvc')
797 msg.Format =
'[' + self.log.name +
'] % F%18W%S%7W%R%T %0W%M'
799 self.log.name =
"Worker-%i"%(self.
nodeID)
800 self.log.info(
"Subworker %i starting Engine"%(self.
nodeID))
804 self.log.info(
'EVT WRITERS ON WORKER : %i'\
807 nEventWriters = len( self.
writerDict[
"events" ] )
813 packet = self.evcom.receive( )
816 if packet ==
'FINISHED' :
break
817 evtNumber, tbin = packet
818 if self.
cntr !=
None:
820 self.cntr.setEventCounter( evtNumber )
826 sc = self.a.executeEvent()
830 self.
rTime += (time.time()-t)
834 self.log.name =
"Worker-%i"%(self.
nodeID)
835 self.log.warning(
'Did not Execute Event')
836 self.evt.clearStore()
841 self.log.name =
"Worker-%i"%(self.
nodeID)
842 self.log.warning(
'Event did not pass : %i'%(evtNumber) )
843 self.evt.clearStore()
852 self.inc.fireIncident(gbl.Incident(
'Subworker',
'EndEvent'))
853 self.eventLoopSyncer.set()
854 self.evt.clearStore( )
855 self.log.name =
"Worker-%i"%(self.
nodeID)
856 self.log.info(
'Setting <Last> Event %s' %(self.
nodeID))
859 self.evcom.finalize()
861 self.filerecordsAgent.SendFileRecords()
862 self.
tTime = time.time()-startEngine
| def GaudiMP.GMPBase.Subworker.Engine |
( |
|
self | ) |
|
Definition at line 786 of file GMPBase.py.
790 libc = ctypes.CDLL(
'libc.so.6')
792 libc.prctl(15,name,0,0,0)
795 startEngine = time.time()
796 msg = self.a.service(
'MessageSvc')
797 msg.Format =
'[' + self.log.name +
'] % F%18W%S%7W%R%T %0W%M'
799 self.log.name =
"Worker-%i"%(self.
nodeID)
800 self.log.info(
"Subworker %i starting Engine"%(self.
nodeID))
804 self.log.info(
'EVT WRITERS ON WORKER : %i'\
807 nEventWriters = len( self.
writerDict[
"events" ] )
813 packet = self.evcom.receive( )
816 if packet ==
'FINISHED' :
break
817 evtNumber, tbin = packet
818 if self.
cntr !=
None:
820 self.cntr.setEventCounter( evtNumber )
826 sc = self.a.executeEvent()
830 self.
rTime += (time.time()-t)
834 self.log.name =
"Worker-%i"%(self.
nodeID)
835 self.log.warning(
'Did not Execute Event')
836 self.evt.clearStore()
841 self.log.name =
"Worker-%i"%(self.
nodeID)
842 self.log.warning(
'Event did not pass : %i'%(evtNumber) )
843 self.evt.clearStore()
852 self.inc.fireIncident(gbl.Incident(
'Subworker',
'EndEvent'))
853 self.eventLoopSyncer.set()
854 self.evt.clearStore( )
855 self.log.name =
"Worker-%i"%(self.
nodeID)
856 self.log.info(
'Setting <Last> Event %s' %(self.
nodeID))
859 self.evcom.finalize()
861 self.filerecordsAgent.SendFileRecords()
862 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 881 of file GMPBase.py.
883 For some output writers, a check is performed to see if the event has
884 executed certain algorithms.
885 These reside in the AcceptAlgs property for those writers
891 if hasattr(m.w,
'AcceptAlgs') : acc += m.w.AcceptAlgs
892 if hasattr(m.w,
'RequireAlgs') : req += m.w.RequireAlgs
893 if hasattr(m.w,
'VetoAlgs') : vet += m.w.VetoAlgs
894 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 881 of file GMPBase.py.
883 For some output writers, a check is performed to see if the event has
884 executed certain algorithms.
885 These reside in the AcceptAlgs property for those writers
891 if hasattr(m.w,
'AcceptAlgs') : acc += m.w.AcceptAlgs
892 if hasattr(m.w,
'RequireAlgs') : req += m.w.RequireAlgs
893 if hasattr(m.w,
'VetoAlgs') : vet += m.w.VetoAlgs
894 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 904 of file GMPBase.py.
906 Check the algorithm status for an event.
907 Depending on output writer settings, the event
908 may be declined based on various criteria.
909 This is a transcript of the check that occurs in GaudiSvc::OutputStream
913 self.log.debug(
'self.acceptAlgs is %s'%(str(self.acceptAlgs)))
915 for name
in self.acceptAlgs :
922 self.log.debug(
'self.requireAlgs is %s'%(str(self.requireAlgs)))
923 for name
in self.requireAlgs :
927 self.log.info(
'Evt declined (requireAlgs) : %s'%(name) )
930 self.log.debug(
'self.vetoAlgs is %s'%(str(self.
vetoAlgs)))
935 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 904 of file GMPBase.py.
906 Check the algorithm status for an event.
907 Depending on output writer settings, the event
908 may be declined based on various criteria.
909 This is a transcript of the check that occurs in GaudiSvc::OutputStream
913 self.log.debug(
'self.acceptAlgs is %s'%(str(self.acceptAlgs)))
915 for name
in self.acceptAlgs :
922 self.log.debug(
'self.requireAlgs is %s'%(str(self.requireAlgs)))
923 for name
in self.requireAlgs :
927 self.log.info(
'Evt declined (requireAlgs) : %s'%(name) )
930 self.log.debug(
'self.vetoAlgs is %s'%(str(self.
vetoAlgs)))
935 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 867 of file GMPBase.py.
873 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 867 of file GMPBase.py.
873 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