CMS 3D CMS Logo

classifierTest_cff.py
Go to the documentation of this file.
4 
5 
6 
7 testTrackClassifier1 = TrackMVAClassifierPrompt.clone()
8 testTrackClassifier1.src = 'initialStepTracks'
9 testTrackClassifier1.mva.GBRForestLabel = 'MVASelectorIter0_13TeV'
10 testTrackClassifier1.qualityCuts = [-0.9,-0.8,-0.7]
11 
12 
13 testTrackClassifier2 = TrackCutClassifier.clone()
14 testTrackClassifier2.src = 'initialStepTracks'
15 testTrackClassifier2.mva.minPixelHits = [0,1,1]
16 
17 
19 testMergedClassifier = ClassifierMerger.clone()
20 testMergedClassifier.inputClassifiers=['testTrackClassifier1','testTrackClassifier2']
21 
23 testTrackMerger = TrackCollectionMerger.clone()
24 testTrackMerger.trackProducers = ['initialStepTracks']
25 testTrackMerger.inputClassifiers =['testMergedClassifier']
26 testTrackMerger.minQuality = 'tight'
27 
28 testTrackClassifier3 = TrackMVAClassifierDetached.clone()
29 testTrackClassifier3.src = 'detachedTripletStepTracks'
30 testTrackClassifier3.mva.GBRForestLabel = 'MVASelectorIter3_13TeV'
31 testTrackClassifier3.qualityCuts = [-0.5,0.0,0.5]
32 
33 
34 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi import trackAlgoPriorityOrder
36 testTrackMerger2 = TrackCollectionMerger.clone()
37 testTrackMerger2.trackProducers = ['initialStepTracks','detachedTripletStepTracks']
38 testTrackMerger2.inputClassifiers =['testMergedClassifier','testTrackClassifier3']
39 testTrackMerger2.minQuality = 'tight'
40 
41 
42 
43 
44 
45 testTrackCloning = cms.Sequence(testTrackClassifier1*testTrackClassifier2*testTrackClassifier3*
46  testMergedClassifier*testTrackMerger*testTrackMerger2)