test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UEAnalysisTracks_cfi.py
Go to the documentation of this file.
2 
3 # old ( < CMSSW_2_x) cuts:
4 #
5 # select tracks with
6 # pt > 0.89
7 # at least 8 valid hits
8 # distance of closest approach to the primary vertex <= 3.5
9 # z-difference to primary vertex <= 30
10 # new ( >= CMSSW_2_x) cuts (under investigation):
11 #
12 # select tracks with
13 # pt > 0.29
14 # at least 4 valid hits -> moved back to 8
15 # distance of closest approach to the primary vertex <= 3.5
16 # z-difference to primary vertex <= 30
17 selectTracks = cms.EDFilter("TrackSelector",
18  src = cms.InputTag("generalTracks"),
19  cut = cms.string('pt > 0.29 & numberOfValidHits > 7 & d0 <= 3.5 & dz <= 30')
20 )
21 
22 allTracks = cms.EDProducer("ChargedCandidateProducer",
23  src = cms.InputTag("selectTracks"),
24  particleType = cms.string('pi+')
25 )
26 
27 goodTracks = cms.EDFilter("CandSelector",
28  filter = cms.bool(False),
29  src = cms.InputTag("allTracks"),
30  cut = cms.string('pt > 0.29')
31 )
32 
33 UEAnalysisTracks = cms.Sequence(selectTracks*allTracks*goodTracks)
34