|
| def | __init__ (self, queues, events, params, subworkers) |
| |
| def | processConfiguration (self) |
| |
| def | Engine (self) |
| |
| def | __init__ (self, queues, events, params, subworkers) |
| |
| def | processConfiguration (self) |
| |
| def | Engine (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 1167 of file GMPBase.py.
| def GaudiMP.GMPBase.Writer.__init__ |
( |
|
self, |
|
|
|
queues, |
|
|
|
events, |
|
|
|
params, |
|
|
|
subworkers |
|
) |
| |
Definition at line 1168 of file GMPBase.py.
1168 def __init__( self, queues, events, params, subworkers ) :
1169 GMPComponent.__init__(self,
'Writer', -2, queues, events, params, subworkers )
1174 self.log.name =
"Writer--2"
def IdentifyWriters(self)
def __init__(self, queues, events, params, subworkers)
| def GaudiMP.GMPBase.Writer.__init__ |
( |
|
self, |
|
|
|
queues, |
|
|
|
events, |
|
|
|
params, |
|
|
|
subworkers |
|
) |
| |
Definition at line 1168 of file GMPBase.py.
1168 def __init__( self, queues, events, params, subworkers ) :
1169 GMPComponent.__init__(self,
'Writer', -2, queues, events, params, subworkers )
1174 self.log.name =
"Writer--2"
def IdentifyWriters(self)
def __init__(self, queues, events, params, subworkers)
| def GaudiMP.GMPBase.Writer.Engine |
( |
|
self | ) |
|
Definition at line 1221 of file GMPBase.py.
1225 libc = ctypes.CDLL(
'libc.so.6')
1227 libc.prctl(15,name,0,0,0)
1229 startEngine = time.time()
1237 stopCriteria = self.nWorkers
1239 current = (current+1)%self.nWorkers
1240 packet = self.
evcoms[current].receive( timeout=0.01 )
1243 if packet ==
'FINISHED' :
1244 self.log.info(
'Writer got FINISHED flag : Worker %i'%(current))
1246 self.
status[current] =
True
1248 self.log.info(
'FINISHED recd from all workers, break loop')
1253 evtNumber, tbin = packet
1254 self.TS.Load( tbin )
1256 self.a.executeEvent()
1257 self.
rTime += ( time.time()-t )
1259 self.evt.clearStore( )
1260 self.eventLoopSyncer.set()
1261 self.log.name =
"Writer--2"
1262 self.log.info(
'Setting <Last> Event')
1263 self.lastEvent.set()
1266 [ e.finalize()
for e
in self.
evcoms ]
1268 sc = self.histoAgent.Receive()
1269 sc = self.histoAgent.RebuildHistoStore()
1270 if sc.isSuccess() : self.log.info(
'Histo Store rebuilt ok' )
1271 else : self.log.warning(
'Histo Store Error in Rebuild' )
1274 sc = self.filerecordsAgent.Receive()
1275 self.filerecordsAgent.Rebuild()
| def GaudiMP.GMPBase.Writer.Engine |
( |
|
self | ) |
|
Definition at line 1221 of file GMPBase.py.
1225 libc = ctypes.CDLL(
'libc.so.6')
1227 libc.prctl(15,name,0,0,0)
1229 startEngine = time.time()
1237 stopCriteria = self.nWorkers
1239 current = (current+1)%self.nWorkers
1240 packet = self.
evcoms[current].receive( timeout=0.01 )
1243 if packet ==
'FINISHED' :
1244 self.log.info(
'Writer got FINISHED flag : Worker %i'%(current))
1246 self.
status[current] =
True
1248 self.log.info(
'FINISHED recd from all workers, break loop')
1253 evtNumber, tbin = packet
1254 self.TS.Load( tbin )
1256 self.a.executeEvent()
1257 self.
rTime += ( time.time()-t )
1259 self.evt.clearStore( )
1260 self.eventLoopSyncer.set()
1261 self.log.name =
"Writer--2"
1262 self.log.info(
'Setting <Last> Event')
1263 self.lastEvent.set()
1266 [ e.finalize()
for e
in self.
evcoms ]
1268 sc = self.histoAgent.Receive()
1269 sc = self.histoAgent.RebuildHistoStore()
1270 if sc.isSuccess() : self.log.info(
'Histo Store rebuilt ok' )
1271 else : self.log.warning(
'Histo Store Error in Rebuild' )
1274 sc = self.filerecordsAgent.Receive()
1275 self.filerecordsAgent.Rebuild()
| def GaudiMP.GMPBase.Writer.processConfiguration |
( |
|
self | ) |
|
Definition at line 1176 of file GMPBase.py.
1180 self.config[
'ApplicationMgr' ].TopAlg = []
1181 self.config[
'EventSelector' ].Input = []
1183 self.config[
'MessageSvc'].Format =
'[Writer] % F%18W%S%7W%R%T %0W%M'
1186 for key, lst
in self.writerDict.iteritems() :
1187 self.log.info(
'Writer Type : %s\t : %i'%(key, len(lst)) )
1194 self.log.debug(
'Processing Event Writer : %s'%(m) )
1195 newName = m.getNewName(
'.',
'.p%i.'%self.nWorkers )
1196 self.config[ m.key ].Output = newName
1206 self.log.debug(
'Processing FileRecords Writer: %s'%(m) )
1207 newName = m.getNewName(
'.',
'.p%i.'%self.nWorkers,
1208 extra=
" OPT='RECREATE'" )
1209 self.config[ m.key ].Output = newName
1212 hs =
"HistogramPersistencySvc"
1214 if hs
in self.config.keys() :
1215 n = self.config[ hs ].OutputFile
1217 newName=self.config[hs].OutputFile.replace(
'.',\
1218 '.p%i.'%(self.nWorkers))
1219 self.config[ hs ].OutputFile = newName
def processConfiguration(self)
| def GaudiMP.GMPBase.Writer.processConfiguration |
( |
|
self | ) |
|
Definition at line 1176 of file GMPBase.py.
1180 self.config[
'ApplicationMgr' ].TopAlg = []
1181 self.config[
'EventSelector' ].Input = []
1183 self.config[
'MessageSvc'].Format =
'[Writer] % F%18W%S%7W%R%T %0W%M'
1186 for key, lst
in self.writerDict.iteritems() :
1187 self.log.info(
'Writer Type : %s\t : %i'%(key, len(lst)) )
1194 self.log.debug(
'Processing Event Writer : %s'%(m) )
1195 newName = m.getNewName(
'.',
'.p%i.'%self.nWorkers )
1196 self.config[ m.key ].Output = newName
1206 self.log.debug(
'Processing FileRecords Writer: %s'%(m) )
1207 newName = m.getNewName(
'.',
'.p%i.'%self.nWorkers,
1208 extra=
" OPT='RECREATE'" )
1209 self.config[ m.key ].Output = newName
1212 hs =
"HistogramPersistencySvc"
1214 if hs
in self.config.keys() :
1215 n = self.config[ hs ].OutputFile
1217 newName=self.config[hs].OutputFile.replace(
'.',\
1218 '.p%i.'%(self.nWorkers))
1219 self.config[ hs ].OutputFile = newName
def processConfiguration(self)
| GaudiMP.GMPBase.Writer.currentEvent |
| GaudiMP.GMPBase.Writer.filerecordsAgent |
| GaudiMP.GMPBase.Writer.histoAgent |
| GaudiMP.GMPBase.Writer.status |
| GaudiMP.GMPBase.Writer.writerDict |
The documentation for this class was generated from the following file:
- InstallArea/x86_64-slc6-gcc48-opt/python/GaudiMP/GMPBase.py