CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackValidation_cff.py
Go to the documentation of this file.
2 
4 import SimTracker.TrackAssociation.quickTrackAssociatorByHits_cfi
9 import PhysicsTools.RecoAlgos.recoTrackSelector_cfi
10 
11 TrackAssociatorByHitsRecoDenom= SimTracker.TrackAssociation.quickTrackAssociatorByHits_cfi.quickTrackAssociatorByHits.clone(
12  ComponentName = cms.string('TrackAssociatorByHitsRecoDenom'),
13  SimToRecoDenominator = cms.string('reco')
14  )
15 # Validation iterative steps
16 cutsRecoTracksZero = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
17 cutsRecoTracksZero.algorithm=cms.vstring("iter0")
18 
19 cutsRecoTracksFirst = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
20 cutsRecoTracksFirst.algorithm=cms.vstring("iter1")
21 
22 cutsRecoTracksSecond = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
23 cutsRecoTracksSecond.algorithm=cms.vstring("iter2")
24 
25 cutsRecoTracksThird = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
26 cutsRecoTracksThird.algorithm=cms.vstring("iter3")
27 
28 cutsRecoTracksFourth = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
29 cutsRecoTracksFourth.algorithm=cms.vstring("iter4")
30 
31 cutsRecoTracksFifth = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
32 cutsRecoTracksFifth.algorithm=cms.vstring("iter5")
33 
34 cutsRecoTracksSixth = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
35 cutsRecoTracksSixth.algorithm=cms.vstring("iter6")
36 
37 # high purity
38 cutsRecoTracksHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
39 cutsRecoTracksHp.quality=cms.vstring("highPurity")
40 
41 cutsRecoTracksZeroHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
42 cutsRecoTracksZeroHp.algorithm=cms.vstring("iter0")
43 cutsRecoTracksZeroHp.quality=cms.vstring("highPurity")
44 
45 cutsRecoTracksFirstHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
46 cutsRecoTracksFirstHp.algorithm=cms.vstring("iter1")
47 cutsRecoTracksFirstHp.quality=cms.vstring("highPurity")
48 
49 cutsRecoTracksSecondHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
50 cutsRecoTracksSecondHp.algorithm=cms.vstring("iter2")
51 cutsRecoTracksSecondHp.quality=cms.vstring("highPurity")
52 
53 cutsRecoTracksThirdHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
54 cutsRecoTracksThirdHp.algorithm=cms.vstring("iter3")
55 cutsRecoTracksThirdHp.quality=cms.vstring("highPurity")
56 
57 cutsRecoTracksFourthHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
58 cutsRecoTracksFourthHp.algorithm=cms.vstring("iter4")
59 cutsRecoTracksFourthHp.quality=cms.vstring("highPurity")
60 
61 cutsRecoTracksFifthHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
62 cutsRecoTracksFifthHp.algorithm=cms.vstring("iter5")
63 cutsRecoTracksFifthHp.quality=cms.vstring("highPurity")
64 
65 cutsRecoTracksSixthHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
66 cutsRecoTracksSixthHp.algorithm=cms.vstring("iter6")
67 cutsRecoTracksSixthHp.quality=cms.vstring("highPurity")
68 
69 trackValidator= Validation.RecoTrack.MultiTrackValidator_cfi.multiTrackValidator.clone()
70 
71 trackValidator.label=cms.VInputTag(cms.InputTag("generalTracks"),
72  cms.InputTag("cutsRecoTracksHp"),
73  cms.InputTag("cutsRecoTracksZero"),
74  cms.InputTag("cutsRecoTracksZeroHp"),
75  cms.InputTag("cutsRecoTracksFirst"),
76  cms.InputTag("cutsRecoTracksFirstHp"),
77  cms.InputTag("cutsRecoTracksSecond"),
78  cms.InputTag("cutsRecoTracksSecondHp"),
79  cms.InputTag("cutsRecoTracksThird"),
80  cms.InputTag("cutsRecoTracksThirdHp"),
81  cms.InputTag("cutsRecoTracksFourth"),
82  cms.InputTag("cutsRecoTracksFourthHp"),
83  cms.InputTag("cutsRecoTracksFifth"),
84  cms.InputTag("cutsRecoTracksFifthHp"),
85  cms.InputTag("cutsRecoTracksSixth"),
86  cms.InputTag("cutsRecoTracksSixthHp")
87  )
88 trackValidator.skipHistoFit=cms.untracked.bool(True)
89 trackValidator.useLogPt=cms.untracked.bool(True)
90 #trackValidator.minpT = cms.double(-1)
91 #trackValidator.maxpT = cms.double(3)
92 #trackValidator.nintpT = cms.int32(40)
93 
94 # the track selectors
95 tracksValidationSelectors = cms.Sequence( cutsRecoTracksHp*
96  cutsRecoTracksZero*
97  cutsRecoTracksZeroHp*
98  cutsRecoTracksFirst*
99  cutsRecoTracksFirstHp*
100  cutsRecoTracksSecond*
101  cutsRecoTracksSecondHp*
102  cutsRecoTracksThird*
103  cutsRecoTracksThirdHp*
104  cutsRecoTracksFourth*
105  cutsRecoTracksFourthHp*
106  cutsRecoTracksFifth*
107  cutsRecoTracksFifthHp*
108  cutsRecoTracksSixth*
109  cutsRecoTracksSixthHp )
110 
111 # selectors go into separate "prevalidation" sequence
112 tracksValidation = cms.Sequence( trackValidator)
113 tracksValidationFS = cms.Sequence( trackValidator )
114