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

Public Member Functions

def run (self)
 

Detailed Description

Definition at line 160 of file BeamSpotPostProcessing.py.

Member Function Documentation

◆ run()

def python.BeamSpotPostProcessing.PlotOnlineOfflineCompare.run (   self)

Definition at line 161 of file BeamSpotPostProcessing.py.

161  def run(self):
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']
169  if status==0:
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])
178  else:
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)
183 
184 # Still to be tested

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