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 303 of file BeamSpotPostProcessing.py.

Member Function Documentation

◆ run()

def 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 

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