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