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

Member Function Documentation

◆ run()

def 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 

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