Definition at line 5 of file heppy_report.py.
References bitset_utilities.append(), and list().
8 tfile = ROOT.TFile.Open(
"%s/%s/%s.root"%(dir,ana,treename))
10 print "Error: dir %s does not contain %s/%s.root" % (dir,ana,treename)
12 tree = tfile.Get(treename)
14 print "Error: rootfile %s/%s/%s.root does not contain a TTree %s" % (dir,ana,treename,treename)
17 for e
in xrange(tree.GetEntries()):
19 run,lumi = tree.run, tree.lumi
20 if run
not in jsonind:
26 jsonind[run] =
list(set(jsonind[run]))
29 nlumis = sum(len(v)
for v
in jsonind.itervalues())
31 for r,lumis
in jsonind.iteritems():
32 if len(lumis) == 0:
continue
34 ranges = [ [ lumis[0], lumis[0] ] ]
35 for lumi
in lumis[1:]:
36 if lumi == ranges[-1][1] + 1:
39 ranges.append([lumi,lumi])
41 return (jsonmap, nruns, nlumis)
boost::dynamic_bitset append(const boost::dynamic_bitset<> &bs1, const boost::dynamic_bitset<> &bs2)
this method takes two bitsets bs1 and bs2 and returns result of bs2 appended to the end of bs1 ...
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