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

Public Member Functions

 run (self)

Public Attributes

 executedSteps
 taskDir

Detailed Description

Definition at line 137 of file BeamSpotPostProcessing.py.

Member Function Documentation

◆ run()

python.BeamSpotPostProcessing.PlotBeamSpotCompareReproc.run ( self)

Definition at line 138 of file BeamSpotPostProcessing.py.

138 def run(self):
139 outFileNameGIF = self.getFileName('.gif')
140 outFileNamePDF = self.getFileName('.pdf')
141 ntFileName = self.getFileName('-nt.root','BeamSpotNt')
142
143 # Resolve beamspot tag. Since reprocessing results will be uploaded to the "next" tag, the "current"
144 # tag will be the one containing the best results to date and hence we compare to that
145 try:
146 beamspottag = COOLUtils.resolveCurrentBeamSpotFolder()
147 except Exception:
148 raise PostProcessingError('ERROR: Unable to resolve beamspot folder tag',self.executedSteps,TaskManager.StatusCodes['POSTPROCFAILED'])
149
150 if os.path.exists('/'.join([self.taskDir,ntFileName])):
151 self.logExec('cd %s; plotBeamSpotCompare.py -b -o %s,%s --config="Reproc" %s %s' % (self.taskDir, outFileNameGIF,outFileNamePDF,beamspottag,ntFileName))
152 self.addResult(outFileNameGIF)
153 self.addResult(outFileNamePDF)
154 self.logExec('cd %s; mkdir -p %s' % (self.taskDir, self.getFileName('-compplots')))
155 self.logExec('cd %s; plotBeamSpotCompare.py -b --outtag="%s/repro_" --output=".pdf,.png" --config="Reproc" --multicanv --html %s %s' % (self.taskDir, self.getFileName('-compplots'), beamspottag,ntFileName))
156 self.addResult(self.getFileName('.html'))
157
Definition run.py:1

Member Data Documentation

◆ executedSteps

python.BeamSpotPostProcessing.PlotBeamSpotCompareReproc.executedSteps

Definition at line 148 of file BeamSpotPostProcessing.py.

◆ taskDir

python.BeamSpotPostProcessing.PlotBeamSpotCompareReproc.taskDir

Definition at line 150 of file BeamSpotPostProcessing.py.


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