9 |
|
|
10 |
|
def MoreTableInfo(parser,LumiRange,config,isCol=True): |
11 |
|
print "Monitoring Run %d" % (parser.RunNumber,) |
12 |
+ |
print "len=",len(LumiRange) |
13 |
+ |
print "LSRange=", LumiRange |
14 |
|
if len(LumiRange)>0: |
15 |
+ |
|
16 |
|
[AvInstLumi, AvLiveLumi, AvDeliveredLumi, AvDeadTime,PSCols] = parser.GetAvLumiInfo(LumiRange) |
17 |
< |
deadtimebeamactive=parser.GetDeadTimeBeamActive(LumiRange) |
17 |
> |
deadtimebeamactive=parser.GetDeadTimeBeamActive(LumiRange)*100 |
18 |
> |
##print "dtba=",deadtimebeamactive |
19 |
|
else: |
20 |
|
print "no lumisections to monitor" |
21 |
|
return |
157 |
|
write(bcolors.OKBLUE) |
158 |
|
write(str(round(deadtimebeamactive,2))+"%") |
159 |
|
write(bcolors.ENDC+"\n") |
160 |
< |
|
161 |
< |
print "Used prescale column(s): "+str(PrescaleColumnString) |
162 |
< |
write("Lumisections: ") |
160 |
> |
write("Used prescale column(s): %s " % (str(PrescaleColumnString),) ) |
161 |
> |
if LastPSCol in config.ForbiddenCols and isCol: |
162 |
> |
write( colored("<< Using column %d! Please check in the documentation that this is the correct column" % (LastPSCol),'red',attrs=['reverse']) ) |
163 |
> |
write("\nLumisections: ") |
164 |
|
if not isSequential(LumiRange): |
165 |
|
write(str(LumiRange)+" Lumisections are not sequential (bad LS skipped)\n") |
166 |
|
else: |