CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UEAnalysisParticles_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 # select charged GenParticles with pt > 0.29
6 #
7 # (threshold used to be 0.89, but tracking in 2_0_0
8 # saves tracks with pT > 0.29)
9 goodParticles = cms.EDFilter("GenParticleSelector",
10  filter = cms.bool(False),
11  src = cms.InputTag("genParticles"),
12  cut = cms.string('pt > 0.0'),
13  stableOnly = cms.bool(True)
14 )
15 
16 chargeParticles = cms.EDFilter("GenParticleSelector",
17  filter = cms.bool(False),
18  src = cms.InputTag("genParticles"),
19  cut = cms.string('charge != 0 & pt > 0.29'),
20  stableOnly = cms.bool(True)
21 )
22 
23 UEAnalysisParticles = cms.Sequence(genJetParticles*goodParticles*chargeParticles)
24