ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/RateMonShiftTool_dev/AddTableInfo_db.py
(Generate patch)

Comparing UserCode/RateMonShiftTool_dev/AddTableInfo_db.py (file contents):
Revision 1.4 by amott, Wed Feb 15 12:16:37 2012 UTC vs.
Revision 1.5 by amott, Thu Feb 16 16:25:57 2012 UTC

# Line 3 | Line 3 | from colors import *
3   from DatabaseParser import *
4   write = sys.stdout.write
5  
6 < def MoreTableInfo(parser,LumiRange):
6 > def MoreTableInfo(parser,LumiRange,config):
7      [AvInstLumi, AvLiveLumi, AvDeliveredLumi, AvDeadTime,PSCols] = parser.GetAvLumiInfo(LumiRange)
8  
9      if AvDeadTime==0:  ## For some reason the dead time in the DB is occasionally broken
# Line 42 | Line 42 | def MoreTableInfo(parser,LumiRange):
42      if parser.GetLastLS(True)!=max(LumiRange):
43          write(bcolors.WARNING)
44          write("  << This exceeds the last lumisection parsed")
45 <    write(bcolors.ENDC+"\n")
45 >    write(bcolors.ENDC+"\n\n\n")
46 >
47 >    L1RatePredictions = config.GetExpectedL1Rates(AvInstLumi)
48 >    if len(L1RatePredictions):
49 >        print "Expected Level 1 Rates:"
50 >    for key,val in L1RatePredictions.iteritems():
51 >        print "Prescale Column "+str(key)+":  "+str(round(val/1000,1))+" kHz"
52 >    
53  
54   def isSequential(t):
55      try:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines