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.19 by grchrist, Thu Apr 5 05:03:24 2012 UTC vs.
Revision 1.22 by grchrist, Thu Apr 5 06:13:40 2012 UTC

# Line 76 | Line 76 | def MoreTableInfo(parser,LumiRange,confi
76          
77      write(text)
78      if badExpress:
79 <        if (ExpRate-PeakRate)/(len(LumiRange)-1) <=config.MaxExpressRate: ## one lumisection causes this
80 <            write("  <<  This appears to be due to a 1 lumisection spike, please monitor\n")
81 <        else:
82 <            if NHighExpress > 1:  # big problem, call HLT DOC
83 <                write(colored("  <<  WARNING: Current Express rate is too high!",'red',attrs=['reverse']) )
84 <                Warn = True
79 >        if len(LumiRange)>1:
80 >            if (ExpRate-PeakRate)/(len(LumiRange)-1) <=config.MaxExpressRate: ## one lumisection causes this
81 >                write("  <<  This appears to be due to a 1 lumisection spike, please monitor\n")
82 >            else:
83 >                if NHighExpress > 1:  # big problem, call HLT DOC
84 >                    write(colored("  <<  WARNING: Current Express rate is too high!",'red',attrs=['reverse']) )
85 >                    Warn = True
86  
87                  #    if AvgExpRate > config.MaxExpressRate:
88                  #        write( colored("\n\nWARNING: Average Express Stream Rate is too high (%0.1f Hz)  << CALL HLT DOC" % AvgExpRate,'red',attrs=['reverse']) )
89                  #        Warn = True
90 <    
90 >        
91 >            
92  
93  
94      #########################################
# Line 104 | Line 106 | def MoreTableInfo(parser,LumiRange,confi
106  
107      write(textA)
108      if badStreamA:
109 <        if (ARate-PeakRateA)/(len(LumiRange)-1) <=config.MaxStreamARate: ## one lumisection causes this
110 <            write("  <<  This appears to be due to a 1 lumisection spike, please monitor\n")
111 <        else:
112 <            if NHighStreamA >1: ##Call HLT doc!
113 <                write(colored("  <<  WARNING: Current Stream A rate is too high!",'red',attrs=['reverse']) )
114 <                Warn = True
109 >        if len(LumiRange)>1:
110 >            if (ARate-PeakRateA)/(len(LumiRange)-1) <=config.MaxStreamARate: ## one lumisection causes this
111 >                write("  <<  This appears to be due to a 1 lumisection spike, please monitor\n")
112 >            else:
113 >                if NHighStreamA >1: ##Call HLT doc!
114 >                    write(colored("  <<  WARNING: Current Stream A rate is too high!",'red',attrs=['reverse']) )
115 >                    Warn = True
116      write("\n\n")
117              
118      ######################################
# Line 158 | Line 161 | def MoreTableInfo(parser,LumiRange,confi
161      ##write(  "Last Lumisection where DAQ is active is:  "+str(parser.GetLastLS(True)) )
162      write("\n\n\n")
163  
164 <    if isCol:
165 <        L1RatePredictions = config.GetExpectedL1Rates(AvInstLumi)
166 <        if len(L1RatePredictions):
167 <            print "Expected Level 1 Rates:"
168 <        for key,val in L1RatePredictions.iteritems():
169 <            write("Prescale Column "+str(key)+":  "+str(round(val/1000,1))+" kHz")
170 <            if key == LastPSCol:
171 <                write(' << taking data in this column')
172 <            write('\n')
164 >    ## if isCol:
165 > ##         L1RatePredictions = config.GetExpectedL1Rates(AvInstLumi)
166 > ##         if len(L1RatePredictions):
167 > ##             print "Expected Level 1 Rates:"
168 > ##         for key,val in L1RatePredictions.iteritems():
169 > ##             write("Prescale Column "+str(key)+":  "+str(round(val/1000,1))+" kHz")
170 > ##             if key == LastPSCol:
171 > ##                 write(' << taking data in this column')
172 > ##             write('\n')
173          
174      
175  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines