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 |
> |
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)*100 |
18 |
> |
##print "dtba=",deadtimebeamactive |
19 |
> |
else: |
20 |
> |
print "no lumisections to monitor" |
21 |
> |
return |
22 |
|
try: |
23 |
|
LastPSCol = PSCols[-1] |
24 |
|
except: |
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: |
167 |
|
write("%d - %d\n" % (min(LumiRange),max(LumiRange),)) |
168 |
< |
print "\nLast Lumisection of the run is: "+str(parser.GetLastLS()) |
169 |
< |
write( "Last Lumisection good where DAQ is active is: "+str(parser.GetLastLS(isCol)) ) |
168 |
> |
##print "\nLast Lumisection of the run is: "+str(parser.GetLastLS()) |
169 |
> |
write( "\nLast Lumisection good where DAQ is active is: "+str(parser.GetLastLS(isCol)) ) |
170 |
|
##write( "Last Lumisection where DAQ is active is: "+str(parser.GetLastLS(True)) ) |
171 |
|
write("\n\n\n") |
172 |
|
|
173 |
< |
if isCol: |
174 |
< |
L1RatePredictions = config.GetExpectedL1Rates(AvInstLumi) |
175 |
< |
if len(L1RatePredictions): |
176 |
< |
print "Expected Level 1 Rates:" |
177 |
< |
for key,val in L1RatePredictions.iteritems(): |
178 |
< |
write("Prescale Column "+str(key)+": "+str(round(val/1000,1))+" kHz") |
179 |
< |
if key == LastPSCol: |
180 |
< |
write(' << taking data in this column') |
181 |
< |
write('\n') |
173 |
> |
## if isCol: |
174 |
> |
## L1RatePredictions = config.GetExpectedL1Rates(AvInstLumi) |
175 |
> |
## if len(L1RatePredictions): |
176 |
> |
## print "Expected Level 1 Rates:" |
177 |
> |
## for key,val in L1RatePredictions.iteritems(): |
178 |
> |
## write("Prescale Column "+str(key)+": "+str(round(val/1000,1))+" kHz") |
179 |
> |
## if key == LastPSCol: |
180 |
> |
## write(' << taking data in this column') |
181 |
> |
## write('\n') |
182 |
|
|
183 |
|
|
184 |
|
|