3 |
|
import sys |
4 |
|
import os |
5 |
|
import getopt |
6 |
+ |
import copy |
7 |
|
|
8 |
|
from DatabaseParser import ConnectDB |
9 |
|
|
114 |
|
L1Prescales = GetL1AlgoPrescales(curs,GTRS_Key) |
115 |
|
|
116 |
|
FullPrescales = {} |
117 |
< |
formatString = "%55s%30s%45s%45s%45s" |
117 |
> |
formatString = "hlt path: %s\nl1t seed: %s\ntotal p.: %s\nhlt pre.: %s\nl1t pre.: %s\n" |
118 |
|
if doPrint: |
119 |
|
print "List of triggers with non-sequential prescales:" |
120 |
< |
print formatString % ("HLT Name","L1 Name","Total","HLT","L1",) |
120 |
> |
#print formatString % ("HLT Name","L1 Name","Total","HLT","L1",) |
121 |
|
for HLTName,L1Seeds in HLTSeed.iteritems(): |
122 |
|
if HLTName.startswith('AlCa'): ## the results don't make sense for AlCa paths |
123 |
|
continue |
132 |
|
print "WARNING: %s uses non-existant L1 seed: %s" % (HLTName,seed,) |
133 |
|
tmp = L1Prescales[L1Names[seed]] |
134 |
|
if len(thisL1PS)==0: |
135 |
< |
thisL1PS = tmp ## just set it for the first one |
135 |
> |
thisL1PS = copy.copy(tmp) ## just set it for the first one |
136 |
|
else: |
137 |
|
for i,a,b in zip(range(len(tmp)),thisL1PS,tmp): |
138 |
|
if b<a: |