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