1 from PhysicsTools.HeppyCore.framework.analyzer
import Analyzer
5 """Skips events that are not in the toSelect list.
9 eventSelector = cfg.Analyzer(
18 The process function of this analyzer returns False if the event number
19 is not in the toSelect list.
20 In this list, put actual CMS event numbers obtained by doing:
21 event.input.eventAuxiliary().id().event()
23 not event processing number
24 in this python framework.
26 This analyzer is typically inserted at the beginning of the analyzer
27 sequence to skip events you don't want.
28 We use it in conjonction with an
29 import pdb; pdb.set_trace()
30 statement in a subsequent analyzer, to debug a given event in the
33 This kind of procedure if you want to synchronize your selection
34 with an other person at the event level.
38 run = event.input.eventAuxiliary().id().
run()
39 lumi = event.input.eventAuxiliary().id().luminosityBlock()
40 eId = event.input.eventAuxiliary().id().
event()
41 if eId
in self.cfg_ana.toSelect:
43 print 'Selecting', run, lumi, eId