Definition at line 160 of file BeamSpotPostProcessing.py.
◆ run()
def python.BeamSpotPostProcessing.PlotOnlineOfflineCompare.run |
( |
|
self | ) |
|
Definition at line 161 of file BeamSpotPostProcessing.py.
162 outFileNameGIF = self.getFileName(
'.gif')
163 outFileNamePDF = self.getFileName(
'.pdf')
164 ntFileName = self.getFileName(
'-nt.root',
'BeamSpotNt')
165 if os.path.exists(
'/'.
join([self.taskDir,ntFileName])):
166 cmd =
'cd %s; plotBeamSpotCompare.py -b -o %s,%s --online2 --config="OnlineOffline" %s %s' % (self.taskDir, outFileNameGIF, outFileNamePDF, ntFileName, beamspottagonline)
167 status=self.logExec(cmd,doPrint=
True,abortOnError=
False)
168 resultLinks = self.taskDict[
'RESULTLINKS']
170 self.addResult(outFileNameGIF)
171 self.addResult(outFileNamePDF)
172 link =
'<a class="ok" href="../files/?u=%s/%s/%s.gif">vsOnline</a>' % (self.dsName,self.taskName,self.baseNameStep)
173 if resultLinks.find(link)==-1:
174 resultLinks =
' '.
join([resultLinks,link])
175 link =
'(<a class="ok" href="/jobfiles/%s/%s/%s.pdf">pdf</a>)' % (self.dsName,self.taskName,self.baseNameStep)
176 if resultLinks.find(link)==-1:
177 resultLinks =
' '.
join([resultLinks,link])
179 link =
'<a class="warn" href="../files/?u=%s/%s/%s.log">No vsOnline</a>' % (self.dsName,self.taskName,self.baseNameStep)
180 if resultLinks.find(link)==-1:
181 resultLinks =
' '.
join([resultLinks,link])
182 self.taskman.setValue(self.dsName,self.taskName,
'RESULTLINKS',resultLinks)
The documentation for this class was generated from the following file: