Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:33:06

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # track associator settings
0004 import SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi
0005 # to do the track<->TP association with TrackerHitAssociator
0006 trackAssociatorByHitsRecoDenom = SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi.quickTrackAssociatorByHitsTrackerHitAssociator.clone()
0007 from SimGeneral.TrackingAnalysis.trackingParticleNumberOfLayersProducer_cff import *
0008 
0009 # reco track quality cuts
0010 from Validation.RecoTrack.cuts_cff import *
0011 cutsRecoTracks.src = "hiGeneralTracks"
0012 cutsRecoTracks.ptMin = 2.0
0013 cutsRecoTracks.quality = []
0014 
0015 # high purity selection
0016 cutsRecoTracksHP = cutsRecoTracks.clone( quality = cms.vstring("highPurity") )
0017 
0018 # sim track quality cuts
0019 from Validation.RecoHI.selectSimTracks_cff import *
0020 findableSimTracks.ptMin = 2.0
0021 
0022 # setup multi-track validator
0023 from Validation.RecoTrack.MultiTrackValidator_cff import *
0024 hiTrackValidator = multiTrackValidator.clone(
0025     associators = ["trackAssociatorByHitsRecoDenom"],
0026     UseAssociators = True,
0027     label_tp_effic = "primaryChgSimTracks",
0028     label_tp_fake  = "cutsTPFake",
0029     label_tp_effic_refvector = True,
0030     label_tp_fake_refvector = True,
0031     signalOnlyTP = False,
0032     trackCollectionForDrCalculation = "cutsRecoTracks",
0033     minpT = cms.double(1.0),
0034     maxpT = cms.double(100.0),
0035     nintpT = cms.int32(40),
0036     useLogPt = cms.untracked.bool(True),
0037     cores = ""
0038     )
0039 
0040 hiTrackValidator.label = cms.VInputTag(cms.InputTag('cutsRecoTracks'),
0041                                        cms.InputTag('cutsRecoTracksHP')
0042                                        )
0043 
0044 # track prevalidation
0045 hiTrackPrevalidation = cms.Sequence(
0046     primaryChgSimTracks
0047     * cutsTPFake
0048     * cutsRecoTracks
0049     * cutsRecoTracksHP
0050     * trackingParticleNumberOfLayersProducer
0051     )
0052 
0053 # track validation sequence
0054 hiTrackValidation = cms.Sequence( trackAssociatorByHitsRecoDenom * hiTrackValidator )