Definition at line 117 of file BeamSpotPostProcessing.py.
◆ run()
def python.BeamSpotPostProcessing.PlotBeamSpotMon.run |
( |
|
self | ) |
|
Definition at line 118 of file BeamSpotPostProcessing.py.
119 outFileNameGIF = self.getFileName(
'.gif')
120 outFileNamePDF = self.getFileName(
'.pdf')
121 histFileName = self.getFileName(
'-beamspotmonitoring.root')
122 if os.path.exists(
'/'.
join([self.taskDir,histFileName])):
123 self.logExec(
'cd %s; rm -f %s %s %s' % (self.taskDir,histFileName,outFileNameGIF,outFileNamePDF))
124 postProcFiles = self.taskFileList(
'*-beamspotmonitoring.root',
'POSTPROCESSING',self.jobName)
125 self.log(text=
'Found %i monitoring files from POSTPROCESSING jobs ...' % len(postProcFiles))
126 completedFiles = self.taskFileList(
'*-beamspotmonitoring.root',
'COMPLETED',self.jobName)
127 self.log(text=
'Found %i monitoring files from COMPLETED jobs ...' % len(completedFiles))
128 histFiles =
sorted(postProcFiles+completedFiles)
131 self.hadd(self.taskDir,histFileName,histFiles)
132 self.logExec(
'cd %s; plotBeamSpotMon.py -b -o %s,%s %s' % (self.taskDir,outFileNameGIF,outFileNamePDF,histFileName))
133 self.addResult(outFileNameGIF)
134 self.addResult(outFileNamePDF)
136 self.log(text=
'No monitoring files yet ...')
The documentation for this class was generated from the following file: