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