4 ATLAS beam spot server for pre-made web plots (e.g. weekly beam spot history).
7 __author__ =
'Juerg Beringer'
8 __version__ =
'WebPlots.py atlas/athena'
10 from BeamSpotWebPage
import BeamSpotWebPage
15 <div class="errormsg">
16 We're sorry - this plot (%s) is currently not available.
21 <div class="boldtext">
24 <img id="webplot" src="/webplots/%s">
30 BeamSpotWebPage.__init__(self)
31 self.
pageConfig[
'pageTitle'] =
'ATLAS Beam Spot Overview'
34 plotName = args.get(
'plot',
'summary-weekly.gif')
36 filePath = os.path.join(webPlotDir,plotName)
37 if not os.path.exists(filePath):
38 return errorPage % plotName
39 lastUpdate = time.ctime(os.path.getctime(filePath))
40 return page % (lastUpdate,plotName)