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: |
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 |
|
|