ATLAS Offline Software
BeamSpotWebPage.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
2 
3 """
4 ATLAS beam spot web page template, based on generic WebPage template.
5 """
6 
7 __author__ = 'Juerg Beringer'
8 __version__ = 'BeamSpotWebPage.py atlas/athena'
9 
10 
11 import os
12 from WebPage import WebPage
13 
14 
15 header = """\
16 <img id="logo" src="../images/logo.png">
17 <h1>%(pageTitle)s</h1>
18 <ul>
19 <li><a %(href_t0Summary)s>T0 Summary</a></li>
20 <li><a %(href_bcidSummary)s>PerBCID</a></li>
21 <li><a %(href_reprocSummary)s>Reprocessing</a></li>
22 <li><a %(href_jobs)s>Jobs</a></li>
23 <li><a %(href_files)s>Job files</a></li>
24 <li><a %(href_webplots)s>Overview</a></li>
25 <li><a %(href_myplots)s>Plots</a></li>
26 <li><a href="http://atlasdqm.cern.ch/webdisplay/tier0/">DQMF</a></li>
27 <li><a href="https://twiki.cern.ch/twiki/bin/view/Atlas/BeamSpot">TWiki</a></li>
28 </ul>
29 <br class="clearfloat" />
30 """
31 
32 footer = """\
33 <div class="floatleft">
34 Contact:
35 <script type="text/javascript">
36 var a = 'juerg'
37 var b = '.beringer'
38 var c = '@cern.ch'
39 document.write('<a href="mailto:'+a+b+c+'">Juerg Beringer</a>')
40 </script>
41 </div>
42 <div class="floatright">%(timeStamp)s</div>
43 <div style="clear: both;"></div>
44 """
45 
46 
48 
49  def configure(self):
50  self.pageConfig['cssName'] = self.globalConfig.baseUrl+'/css/beamspot.css'
51  if not self.pageConfig.get('pageTitle',''):
52  self.pageConfig['pageTitle'] = 'ATLAS Beam Spot Web Page'
53  self.pageConfig['header'] = header
54  self.pageConfig['footer'] = footer
55  WebPage.configure(self)
56 
57 
59  def __init__(self):
60  BeamSpotWebPage.__init__(self,content="<h3>We're sorry, this feature is not yet available.</h3>")
WebPage.WebPage.globalConfig
globalConfig
Definition: WebPage.py:290
WebPage.WebPage
Definition: WebPage.py:267
BeamSpotWebPage.DummyPage.__init__
def __init__(self)
Definition: BeamSpotWebPage.py:59
BeamSpotWebPage.DummyPage
Definition: BeamSpotWebPage.py:58
BeamSpotWebPage.BeamSpotWebPage.configure
def configure(self)
Definition: BeamSpotWebPage.py:49
get
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition: hcg.cxx:127
WebPage.WebPage.pageConfig
pageConfig
Definition: WebPage.py:273
BeamSpotWebPage.BeamSpotWebPage
Definition: BeamSpotWebPage.py:47