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

Public Member Functions

def run (self)
 

Detailed Description

Definition at line 448 of file BeamSpotPostProcessing.py.

Member Function Documentation

◆ run()

def python.BeamSpotPostProcessing.BeamSpotGlobalNt.run (   self)

Definition at line 449 of file BeamSpotPostProcessing.py.

449  def run(self):
450  # Don't merge into global ntuple if no beamspot uploaded to COOL
451  cooltags = self.taskDict['COOLTAGS']
452  if not cooltags: cooltags = ''
453 
454  # Check if the task has uploded to COOL
455  # if not beamspottag in cooltags.split():
456  if not cooltags:
457  self.log(text='WARNING: Beam spot not uploaded - result not merged to global ntuple\n',doPrint=True)
458  return
459 
460  ntFileName = self.getFileName('-nt.root','MergeNt')
461  globalNtDir = '/afs/cern.ch/user/a/atlidbs/nt/t0'
462  beamspottag = cooltags.split()[len(cooltags.split())-1]
463  globalNtFileName = '%s/beamspotnt-%s.root' % (globalNtDir,beamspottag)
464  if not os.path.exists(globalNtDir):
465  raise PostProcessingError('ERROR: Cannot access directory with global beam spot ntuple: %s' % globalNtDir, self.executedSteps)
466  if os.path.exists('/'.join([self.taskDir,ntFileName])):
467  self.logExec("cd %s; beamspotnt.py -f %s --status '' --fillCOOL --useAve merge %s" % (self.taskDir,globalNtFileName,ntFileName))
468  # self.logExec("cd %s; beamspotnt.py -f %s --status '' --fillCOOL --useAve merge %s" % (self.taskDir,globalNtFileName2,ntFileName))
469  else:
470  raise PostProcessingError('ERROR: No merged ntuple file %s - did MergeNt step run?\n' % ntFileName, self.executedSteps)
471 
472 

The documentation for this class was generated from the following file:
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10