756 if time.gmtime(self.sor/1.E9).tm_year >= 2010:
757 s +=
' <a href="http://atlas.web.cern.ch/Atlas/GROUPS/DATAPREPARATION/DataSummary/%i/run.py?run=%i" target="_blank" title="Data summary information for run %i"><font size="-3">DS</font></a>, \n' % (time.gmtime(self.sor/1.E9).tm_year, self.runNr, self.runNr)
759 s +=
' <a href="http://atlas-service-db-runlist.web.cern.ch/atlas-service-db-runlist/php/runDetails.php?run=%i" target="_blank" title="Run summary information for run %i"><font size="-3">RS</font></a>, \n' % (self.runNr, self.runNr)
761 s +=
' <a href="https://atlas-beamspot.cern.ch/webapp/jobs/?r=%i" target="_blank" title="Beam spot fit information for run %i"><font size="-3">BS</font></a>, \n' % (self.runNr, self.runNr)
763 s +=
' <a href="https://ami.in2p3.fr/AMI/servlet/net.hep.atlas.Database.Bookkeeping.AMI.Servlet.Command?Converter=/AMIXmlToAMIProdHtml.xsl&Command=FormBrowseDatasetPerRun+-runNumber=%i" target="_blank" title="AMI reference for run %i"><font size="-3">AMI</font></a>, \n' % (self.runNr, self.runNr)
765 s +=
' <a href="https://atlasdqm.web.cern.ch/atlasdqm/DQBrowser/makeMatrix.php?selection=All&run=%i&runup=&dbinstance=COMP200_SHIFTOFL&tag=HEAD" target="_blank" title="Browse detailed data quality entries for run %i (uses SHIFTOFL folder in COMP200 conditions database)"><font size="-3">DQ</font></a>,<br>\n' % (self.runNr, self.runNr)
767 s +=
' <a href="https://atlasop.cern.ch/elog/ATLAS/ATLAS/?mode=full&reverse=0&reverse=1&npp=20&ma=1&ya=2008&last=3064&subtext=%i&sall=0" target="_blank" title="Search for ELOG entries on run %i"><font size="-3">ELOG</font></a>, \n' % (self.runNr, self.runNr)
769 tbeg = time.strftime(
"%Y-%m-%d-%H-%M-%S", time.gmtime(self.sor/1.E9))
770 t = time.gmtime(self.eor/1.E9)
771 tend =
"%4i-%02i-%02i-%02i-%02i" % (t[0], t[1], t[2], t[3], t[4])
772 s +=
' <a href="http://atlas-dcs.cern.ch/navigation.php?date2=%s" target="_blank" title="DCS status at begin of run %i"><font size="-3">DCS:SoR</font></a>/' % (tbeg, self.runNr)
773 s +=
'<a href="http://atlas-dcs.cern.ch/navigation.php?date2=%s" target="_blank" title="DCS status at end of run %i"><font size="-3">EoR</font></a>, \n ' % (tend, self.runNr)
780 s +=
' <a href="http://cern.ch/atlas-project-tdaq-cc/cgi/getdata.sh?tdaq-05-05-00&oracle://atlas_oks/r&atlas_oks_archive&%i&%i&ATLAS" target="_blank" title="Download online configuration for run %i"><font size="-3">OKS</font></a>\n' % ( self.data[
'oks'][0].value + (self.runNr,) )
782 (hash, release) = self.data[
"oks"][0].value
783 s+= f
' <a href="https://gitlab.cern.ch/atlas-tdaq-oks/p1/{release}/-/tree/{hash[5:]}" target="_blank" title="Browse online configuration for run {self.runNr}"><font size="-3">OKS</font></a>\n'
787 fname =
'http://atlas.web.cern.ch/Atlas/GROUPS/DATAPREPARATION/DataSummary/runsum.py?run=%i\n' % (self.runNr)
788 fwget = urllib.request.urlopen(fname)
792 if '</head>' in str(line)
and '<base href' not in wincontent:
793 wincontent +=
'<base href="http://atlas.web.cern.ch/Atlas/GROUPS/DATAPREPARATION/DataSummary/2010/"></base>'
794 wincontent +=
str(line)
795 wincontent = wincontent.replace(
'href="css/atlas-datasummary.css"',
'href="http://atlas.web.cern.ch/Atlas/GROUPS/DATAPREPARATION/DataSummary/css/atlas-datasummary.css"')
798 wincontent = wincontent.replace(
'<td>\n<a href="rundata/run%i/run%i_ilumr.png"><img src="rundata/run%i/run%i_ilumr.png" alt="InstLumi" style="width: 200px; "></a></td>' % (self.runNr,self.runNr,self.runNr,self.runNr),
'')
799 wincontent = wincontent.replace(
'"',
'"')
800 wincontent = wincontent.replace(
'./RunSummary/figs',
'https://atlas.web.cern.ch/Atlas/GROUPS/DATAPREPARATION/RunSummary/figs')
801 wincontent = wincontent.replace(
'<a href',
'<a target="_blank" href')
802 wincontent = wincontent.replace(
'width: 200px',
'width: 350px')
803 wincontent = wincontent.replace(
'width: 250px',
'width: 350px')
806 openwincmd =
'javascript:openLumiWindow('
807 openwincmd +=
"'Print','<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html xmlns:"my"><head><title>Luminosity information for run %i</title></head><body style="background-color:#ffffff">" % self.runNr
808 openwincmd += wincontent
809 openwincmd +=
'</body></html>'