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 
9 import PhysicsTools.RecoAlgos.recoTrackSelector_cfi
10 
12 
13 trackAssociatorByHitsRecoDenom= SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi.quickTrackAssociatorByHits.clone(
14  )
15 
16 # Validation iterative steps
17 cutsRecoTracksZero = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
18 cutsRecoTracksZero.algorithm=cms.vstring("initialStep")
19 
20 cutsRecoTracksFirst = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
21 cutsRecoTracksFirst.algorithm=cms.vstring("lowPtTripletStep")
22 
23 cutsRecoTracksSecond = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
24 cutsRecoTracksSecond.algorithm=cms.vstring("pixelPairStep")
25 
26 cutsRecoTracksThird = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
27 cutsRecoTracksThird.algorithm=cms.vstring("detachedTripletStep")
28 
29 cutsRecoTracksFourth = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
30 cutsRecoTracksFourth.algorithm=cms.vstring("mixedTripletStep")
31 
32 cutsRecoTracksFifth = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
33 cutsRecoTracksFifth.algorithm=cms.vstring("pixelLessStep")
34 
35 cutsRecoTracksSixth = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
36 cutsRecoTracksSixth.algorithm=cms.vstring("tobTecStep")
37 
38 cutsRecoTracksSeventh = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
39 cutsRecoTracksSeventh.algorithm=cms.vstring("jetCoreRegionalStep")
40 
41 cutsRecoTracksNinth = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
42 cutsRecoTracksNinth.algorithm=cms.vstring("muonSeededStepInOut")
43 
44 cutsRecoTracksTenth = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
45 cutsRecoTracksTenth.algorithm=cms.vstring("muonSeededStepOutIn")
46 
47 # high purity
48 cutsRecoTracksHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
49 cutsRecoTracksHp.quality=cms.vstring("highPurity")
50 
51 cutsRecoTracksZeroHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
52 cutsRecoTracksZeroHp.algorithm=cms.vstring("initialStep")
53 cutsRecoTracksZeroHp.quality=cms.vstring("highPurity")
54 
55 cutsRecoTracksFirstHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
56 cutsRecoTracksFirstHp.algorithm=cms.vstring("lowPtTripletStep")
57 cutsRecoTracksFirstHp.quality=cms.vstring("highPurity")
58 
59 cutsRecoTracksSecondHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
60 cutsRecoTracksSecondHp.algorithm=cms.vstring("pixelPairStep")
61 cutsRecoTracksSecondHp.quality=cms.vstring("highPurity")
62 
63 cutsRecoTracksThirdHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
64 cutsRecoTracksThirdHp.algorithm=cms.vstring("detachedTripletStep")
65 cutsRecoTracksThirdHp.quality=cms.vstring("highPurity")
66 
67 cutsRecoTracksFourthHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
68 cutsRecoTracksFourthHp.algorithm=cms.vstring("mixedTripletStep")
69 cutsRecoTracksFourthHp.quality=cms.vstring("highPurity")
70 
71 cutsRecoTracksFifthHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
72 cutsRecoTracksFifthHp.algorithm=cms.vstring("pixelLessStep")
73 cutsRecoTracksFifthHp.quality=cms.vstring("highPurity")
74 
75 cutsRecoTracksSixthHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
76 cutsRecoTracksSixthHp.algorithm=cms.vstring("tobTecStep")
77 cutsRecoTracksSixthHp.quality=cms.vstring("highPurity")
78 
79 cutsRecoTracksSeventhHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
80 cutsRecoTracksSeventhHp.algorithm=cms.vstring("jetCoreRegionalStep")
81 cutsRecoTracksSeventhHp.quality=cms.vstring("highPurity")
82 
83 cutsRecoTracksNinthHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
84 cutsRecoTracksNinthHp.algorithm=cms.vstring("muonSeededStepInOut")
85 cutsRecoTracksNinthHp.quality=cms.vstring("highPurity")
86 
87 cutsRecoTracksTenthHp = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
88 cutsRecoTracksTenthHp.algorithm=cms.vstring("muonSeededStepOutIn")
89 cutsRecoTracksTenthHp.quality=cms.vstring("highPurity")
90 
91 trackValidator= Validation.RecoTrack.MultiTrackValidator_cfi.multiTrackValidator.clone()
92 
93 trackValidator.label=cms.VInputTag(cms.InputTag("generalTracks"),
94  cms.InputTag("cutsRecoTracksHp"),
95  cms.InputTag("cutsRecoTracksZero"),
96  cms.InputTag("cutsRecoTracksZeroHp"),
97  cms.InputTag("cutsRecoTracksFirst"),
98  cms.InputTag("cutsRecoTracksFirstHp"),
99  cms.InputTag("cutsRecoTracksSecond"),
100  cms.InputTag("cutsRecoTracksSecondHp"),
101  cms.InputTag("cutsRecoTracksThird"),
102  cms.InputTag("cutsRecoTracksThirdHp"),
103  cms.InputTag("cutsRecoTracksFourth"),
104  cms.InputTag("cutsRecoTracksFourthHp"),
105  cms.InputTag("cutsRecoTracksFifth"),
106  cms.InputTag("cutsRecoTracksFifthHp"),
107  cms.InputTag("cutsRecoTracksSixth"),
108  cms.InputTag("cutsRecoTracksSixthHp"),
109  cms.InputTag("cutsRecoTracksSeventh"),
110  cms.InputTag("cutsRecoTracksSeventhHp"),
111  cms.InputTag("cutsRecoTracksNinth"),
112  cms.InputTag("cutsRecoTracksNinthHp"),
113  cms.InputTag("cutsRecoTracksTenth"),
114  cms.InputTag("cutsRecoTracksTenthHp"),
115  )
116 trackValidator.skipHistoFit=cms.untracked.bool(True)
117 trackValidator.useLogPt=cms.untracked.bool(True)
118 #trackValidator.minpT = cms.double(-1)
119 #trackValidator.maxpT = cms.double(3)
120 #trackValidator.nintpT = cms.int32(40)
121 
122 # the track selectors
123 tracksValidationSelectors = cms.Sequence( cutsRecoTracksHp*
124  cutsRecoTracksZero*
125  cutsRecoTracksZeroHp*
126  cutsRecoTracksFirst*
127  cutsRecoTracksFirstHp*
128  cutsRecoTracksSecond*
129  cutsRecoTracksSecondHp*
130  cutsRecoTracksThird*
131  cutsRecoTracksThirdHp*
132  cutsRecoTracksFourth*
133  cutsRecoTracksFourthHp*
134  cutsRecoTracksFifth*
135  cutsRecoTracksFifthHp*
136  cutsRecoTracksSixth*
137  cutsRecoTracksSixthHp*
138  cutsRecoTracksSeventh*
139  cutsRecoTracksSeventhHp*
140  cutsRecoTracksNinth*
141  cutsRecoTracksNinthHp*
142  cutsRecoTracksTenth*
143  cutsRecoTracksTenthHp )
144 
145 # selectors go into separate "prevalidation" sequence
146 tracksValidation = cms.Sequence( tpClusterProducer * trackAssociatorByHitsRecoDenom * trackValidator)
147 tracksValidationFS = cms.Sequence( trackAssociatorByHitsRecoDenom * trackValidator )
148