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