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.22 by grchrist, Thu Apr 5 06:13:40 2012 UTC vs.
Revision 1.23 by grchrist, Thu Apr 5 11:01:37 2012 UTC

# Line 9 | Line 9 | NHighStreamA=0
9  
10   def MoreTableInfo(parser,LumiRange,config,isCol=True):
11      print "Monitoring Run %d" % (parser.RunNumber,)
12 <    [AvInstLumi, AvLiveLumi, AvDeliveredLumi, AvDeadTime,PSCols] = parser.GetAvLumiInfo(LumiRange)
13 <    deadtimebeamactive=parser.GetDeadTimeBeamActive(LumiRange)
12 >    if len(LumiRange)>0:
13 >        [AvInstLumi, AvLiveLumi, AvDeliveredLumi, AvDeadTime,PSCols] = parser.GetAvLumiInfo(LumiRange)
14 >        deadtimebeamactive=parser.GetDeadTimeBeamActive(LumiRange)
15 >    else:
16 >        print "no lumisections to monitor"
17 >        return
18      try:
19          LastPSCol = PSCols[-1]
20      except:
# Line 156 | Line 160 | def MoreTableInfo(parser,LumiRange,confi
160          write(str(LumiRange)+"   Lumisections are not sequential (bad LS skipped)\n")
161      else:
162          write("%d - %d\n" % (min(LumiRange),max(LumiRange),))
163 <    print "\nLast Lumisection of the run is:        "+str(parser.GetLastLS())
164 <    write(  "Last Lumisection good where DAQ is active is:  "+str(parser.GetLastLS(isCol)) )
163 >    ##print "\nLast Lumisection of the run is:        "+str(parser.GetLastLS())
164 >    write(  "\nLast Lumisection good where DAQ is active is:  "+str(parser.GetLastLS(isCol)) )
165      ##write(  "Last Lumisection where DAQ is active is:  "+str(parser.GetLastLS(True)) )
166      write("\n\n\n")
167  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines