3 ROOT.gSystem.Load(
'libCondFormatsBTagObjects')
7 def __init__(self, csv_data, measurement_type):
17 if e.params.measurementType == measurement_type:
20 raise RuntimeError(
"Error: can not interpret line: " + l)
31 self.
ops = set(e.params.operatingPoint
for e
in ens)
32 self.
flavs = set(e.params.jetFlavor
for e
in ens)
33 self.
syss = set(e.params.sysType
for e
in ens)
34 self.
etas = set((e.params.etaMin, e.params.etaMax)
for e
in ens)
35 self.
pts = set((e.params.ptMin, e.params.ptMax)
for e
in ens)
36 self.
discrs = set((e.params.discrMin, e.params.discrMax)
for e
in ens)
40 eta_test_points =
list(itertools.ifilter(
43 (a + eps
for a, _
in self.
etas),
44 (a - eps
for a, _
in self.
etas),
45 (b + eps
for _, b
in self.
etas),
46 (b - eps
for _, b
in self.
etas),
50 abseta_test_points =
list(itertools.ifilter(
51 lambda x: 0. < x < self.
ETA_MAX,
53 (a + eps
for a, _
in self.
etas),
54 (a - eps
for a, _
in self.
etas),
55 (b + eps
for _, b
in self.
etas),
56 (b - eps
for _, b
in self.
etas),
60 pt_test_points =
list(itertools.ifilter(
63 (a + eps
for a, _
in self.
pts),
64 (a - eps
for a, _
in self.
pts),
65 (b + eps
for _, b
in self.
pts),
66 (b - eps
for _, b
in self.
pts),
70 discr_test_points =
list(itertools.ifilter(
73 (a + eps
for a, _
in self.
discrs),
74 (a - eps
for a, _
in self.
discrs),
75 (b + eps
for _, b
in self.
discrs),
76 (b - eps
for _, b
in self.
discrs),
87 print "\nFound operating points (need at least 0, 1, 2):"
90 print "\nFound jet flavors (need 0, 1, 2):"
93 print "\nFound sys types (need at least 'central', 'up', 'down'; " \
94 "also 'up_SYS'/'down_SYS' compatibility is checked):"
97 print "\nFound eta ranges: (need everything covered from %g or 0. " \
101 print "\nFound pt ranges: (need everything covered from %g " \
105 print "\nFound discr ranges: (only needed for operatingPoint==3, " \
109 print "\nTest points for eta (bounds +- epsilon):"
112 print "\nTest points for pt (bounds +- epsilon):"
115 print "\nTest points for discr (bounds +- epsilon):"
123 l.split(
',')[1].strip()
125 if len(l.split()) == 11
131 with open(filename)
as f:
132 csv_data = f.readlines()
133 if not (csv_data
and "OperatingPoint" in csv_data[0]):
134 print "Data file does not contain typical header: %s. Exit" % filename
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run