test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
trackerDrivenFinder_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #===================================================== removing events with trackerDrivenOnly electrons
4 # if you want to filter events with trackerDrivenOnly electrons
5 # you should produce a collection containing the Ref to the
6 # trackerDrivenOnly electrons and then you should filter these events
7 # the lines to produce the Ref collection are the following
8 # you should not need to uncomment those, because I've already
9 # produced them in the ALCARECO step
10 trackerDrivenOnlyElectrons = cms.EDFilter("GsfElectronRefSelector",
11  src = cms.InputTag( 'gedGsfElectrons' ),
12  cut = cms.string( "(ecalDrivenSeed==0)" )
13  )
14 
15 # these lines active a filter that counts if there are more than 0
16 # trackerDrivenOnly electrons
17 trackerDrivenRemover = cms.EDFilter("PATCandViewCountFilter",
18  minNumber = cms.uint32(0),
19  maxNumber = cms.uint32(0),
20  src = cms.InputTag("trackerDrivenOnlyElectrons")
21  )
22 #trackerDrivenRemoverSeq = cms.Sequence( trackerDrivenOnlyElectrons * trackerDrivenRemover )
23 #trackerDrivenRemoverSeq = cms.Sequence( trackerDrivenOnlyElectrons)
24