CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/QCDAnalysis/UEAnalysis/python/UEAnalysisTracks_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # old ( < CMSSW_2_x) cuts:
00004 #
00005 # select tracks with
00006 # pt > 0.89
00007 # at least 8 valid hits
00008 # distance of closest approach to the primary vertex <= 3.5
00009 # z-difference to primary vertex <= 30
00010 # new ( >= CMSSW_2_x) cuts (under investigation):
00011 #
00012 # select tracks with
00013 # pt > 0.29
00014 # at least 4 valid hits -> moved back to 8
00015 # distance of closest approach to the primary vertex <= 3.5
00016 # z-difference to primary vertex <= 30
00017 selectTracks = cms.EDFilter("TrackSelector",
00018     src = cms.InputTag("generalTracks"),
00019     cut = cms.string('pt > 0.29 & numberOfValidHits > 7 & d0 <= 3.5 & dz <= 30')
00020 )
00021 
00022 allTracks = cms.EDProducer("ChargedCandidateProducer",
00023     src = cms.InputTag("selectTracks"),
00024     particleType = cms.string('pi+')
00025 )
00026 
00027 goodTracks = cms.EDFilter("CandSelector",
00028     filter = cms.bool(False),
00029     src = cms.InputTag("allTracks"),
00030     cut = cms.string('pt > 0.29')
00031 )
00032 
00033 UEAnalysisTracks = cms.Sequence(selectTracks*allTracks*goodTracks)
00034