ATLAS Offline Software
Loading...
Searching...
No Matches
python.BeamSpotPostProcessing.CheckT0Status Class Reference
Inheritance diagram for python.BeamSpotPostProcessing.CheckT0Status:
Collaboration diagram for python.BeamSpotPostProcessing.CheckT0Status:

Public Member Functions

 run (self)

Public Attributes

 executedSteps

Detailed Description

Check in T0 task DB if T0 processing is done, if not raise PostponeProcessing exception.

Definition at line 303 of file BeamSpotPostProcessing.py.

Member Function Documentation

◆ run()

python.BeamSpotPostProcessing.CheckT0Status.run ( self)

Definition at line 305 of file BeamSpotPostProcessing.py.

305 def run(self):
306 filter = 'AOD' # T0 uses AODs by default (at least for pp running)
307 try:
308 f = self.getJobConfig(self.jobName)['inputfiles'][0]
309 if 'ESD' in f:
310 filter = 'ESD'
311 except Exception:
312 self.log('WARNING: Unable to determine input file type - will assume default (%s)\n' % filter, doPrint=True)
313 cmd = 'beamspotman.py -n -f %s queryT0 %s %s' % (filter,self.dsName,self.taskName)
314 status = self.logExec(cmd,doPrint=True,abortOnError=False)
315 if status:
316 # The task is either not finished or there was a problem
317 if status==2:
318 # Task still running
319 raise PostponeProcessing('Tier-0 processing still in progress - restart postprocessing later',self.executedSteps)
320 else:
321 # Unable to determine status
322 raise PostProcessingError('ERROR: Unable to determine Tier-0 task status',self.executedSteps)
323
324
Definition run.py:1

Member Data Documentation

◆ executedSteps

python.BeamSpotPostProcessing.CheckT0Status.executedSteps

Definition at line 319 of file BeamSpotPostProcessing.py.


The documentation for this class was generated from the following file: