CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackCollections2monitor_cff.py
Go to the documentation of this file.
2 
3 mainfolderName = {}
4 vertexfolderName = {}
5 sequenceName = {}
6 trackPtMin = {}
7 trackPtMax = {}
8 doPlotsPCA = {}
9 
10 selectedTracks = []
11 
12 mainfolderName ['generalTracks'] = 'Tracking/TrackParameters/generalTracks'
13 vertexfolderName['generalTracks'] = 'Tracking/PrimaryVertices/generalTracks'
14 trackPtMin ['generalTracks'] = cms.double(0.)
15 trackPtMax ['generalTracks'] = cms.double(100.)
16 doPlotsPCA ['generalTracks'] = cms.bool(False)
17 
18 trackSelector = cms.EDFilter('TrackSelector',
19  src = cms.InputTag('generalTracks'),
20  cut = cms.string("")
21 )
22 
23 ### highpurity definition: https://cmssdt.cern.ch/SDT/lxr/source/RecoTracker/FinalTrackSelectors/python/selectHighPurity_cfi.py
24 highPurityPtRange0to1 = trackSelector.clone()
25 highPurityPtRange0to1.cut = cms.string("quality('highPurity') & pt >= 0 & pt < 1 ")
26 
27 sequenceName ['highPurityPtRange0to1'] = cms.Sequence(highPurityPtRange0to1)
28 mainfolderName ['highPurityPtRange0to1'] = 'Tracking/TrackParameters/highPurityTracks/pt_0to1'
29 vertexfolderName['highPurityPtRange0to1'] = 'Tracking/PrimaryVertices/highPurityTracks/pt_0to1'
30 trackPtMin ['highPurityPtRange0to1'] = cms.double(0.)
31 trackPtMax ['highPurityPtRange0to1'] = cms.double(1.)
32 
33 highPurityPtRange1to10 = trackSelector.clone()
34 highPurityPtRange1to10.cut = cms.string("quality('highPurity') & pt >= 1 & pt < 10 ")
35 
36 sequenceName ['highPurityPtRange1to10'] = cms.Sequence( highPurityPtRange1to10 )
37 mainfolderName ['highPurityPtRange1to10'] = 'Tracking/TrackParameters/highPurityTracks/pt_1to10'
38 vertexfolderName['highPurityPtRange1to10'] = 'Tracking/PrimaryVertices/highPurityTracks/pt_1to10'
39 trackPtMin ['highPurityPtRange1to10'] = cms.double(1.)
40 trackPtMax ['highPurityPtRange1to10'] = cms.double(10.)
41 
42 
43 highPurityPt10 = trackSelector.clone()
44 highPurityPt10.cut = cms.string("quality('highPurity') & pt >= 10")
45 
46 sequenceName ['highPurityPt10'] = cms.Sequence( highPurityPt10 )
47 mainfolderName ['highPurityPt10'] = 'Tracking/TrackParameters/highPurityTracks/pt_10'
48 vertexfolderName['highPurityPt10'] = 'Tracking/PrimaryVertices/highPurityTracks/pt_10'
49 trackPtMin ['highPurityPt10'] = cms.double(10.)
50 trackPtMax ['highPurityPt10'] = cms.double(110.)
51 
52 
53 ###### old monitored track collections
54 highPurityPt1 = trackSelector.clone()
55 highPurityPt1.cut = cms.string("quality('highPurity') & pt >= 1")
56 
57 sequenceName ['highPurityPt1'] = cms.Sequence(highPurityPt1)
58 mainfolderName ['highPurityPt1'] = 'Tracking/TrackParameters/highPurityTracks/pt_1'
59 vertexfolderName['highPurityPt1'] = 'Tracking/PrimaryVertices/highPurityTracks/pt_1'
60 trackPtMin ['highPurityPt1'] = cms.double(0.)
61 trackPtMax ['highPurityPt1'] = cms.double(100.)
62 doPlotsPCA ['highPurityPt1'] = cms.bool(True)
63 
64 selectedTracks.extend( ['generalTracks'] )
65 #selectedTracks.extend( ['highPurityPtRange0to1'] )
66 #selectedTracks.extend( ['highPurityPtRange1to10'] )
67 #selectedTracks.extend( ['highPurityPt10'] )
68 
69 selectedTracks.extend( ['highPurityPt1'] )
70 
71 #selectedTracks2runSequence=cms.Sequence()
72 #for tracks in selectedTracks :
73 # if tracks != 'generalTracks':
74 # selectedTracks2runSequence+=sequenceName[tracks]
75