ATLAS Offline Software
Public Member Functions | List of all members
python.BeamSpotPostProcessing.CheckT0Status Class Reference
Inheritance diagram for python.BeamSpotPostProcessing.CheckT0Status:
Collaboration diagram for python.BeamSpotPostProcessing.CheckT0Status:

Public Member Functions

def run (self)
 

Detailed Description

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

Definition at line 305 of file BeamSpotPostProcessing.py.

Member Function Documentation

◆ run()

def python.BeamSpotPostProcessing.CheckT0Status.run (   self)

Definition at line 307 of file BeamSpotPostProcessing.py.

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

The documentation for this class was generated from the following file:
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28