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

Public Member Functions

 run (self)

Public Attributes

 executedSteps
 taskDir

Detailed Description

Definition at line 446 of file BeamSpotPostProcessing.py.

Member Function Documentation

◆ run()

python.BeamSpotPostProcessing.BeamSpotGlobalNt.run ( self)

Definition at line 447 of file BeamSpotPostProcessing.py.

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

Member Data Documentation

◆ executedSteps

python.BeamSpotPostProcessing.BeamSpotGlobalNt.executedSteps

Definition at line 463 of file BeamSpotPostProcessing.py.

◆ taskDir

python.BeamSpotPostProcessing.BeamSpotGlobalNt.taskDir

Definition at line 464 of file BeamSpotPostProcessing.py.


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