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

Public Member Functions

def run (self)
 

Detailed Description

Definition at line 139 of file BeamSpotPostProcessing.py.

Member Function Documentation

◆ run()

def python.BeamSpotPostProcessing.PlotBeamSpotCompareReproc.run (   self)

Definition at line 140 of file BeamSpotPostProcessing.py.

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

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