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 numCutString = {}
10 denCutString = {}
11 
12 selectedTracks = []
13 
14 mainfolderName ['generalTracks'] = 'Tracking/TrackParameters/generalTracks'
15 vertexfolderName['generalTracks'] = 'Tracking/PrimaryVertices/generalTracks'
16 trackPtMin ['generalTracks'] = cms.double(0.)
17 trackPtMax ['generalTracks'] = cms.double(100.)
18 doPlotsPCA ['generalTracks'] = cms.bool(False)
19 numCutString ['generalTracks'] = cms.string("")
20 denCutString ['generalTracks'] = cms.string("")
21 
22 trackSelector = cms.EDFilter('TrackSelector',
23  src = cms.InputTag('generalTracks'),
24  cut = cms.string("")
25 )
26 
27 ### highpurity definition: https://cmssdt.cern.ch/SDT/lxr/source/RecoTracker/FinalTrackSelectors/python/selectHighPurity_cfi.py
28 highPurityPtRange0to1 = trackSelector.clone()
29 highPurityPtRange0to1.cut = cms.string("quality('highPurity') & pt >= 0 & pt < 1 ")
30 
31 sequenceName ['highPurityPtRange0to1'] = cms.Sequence(highPurityPtRange0to1)
32 mainfolderName ['highPurityPtRange0to1'] = 'Tracking/TrackParameters/highPurityTracks/pt_0to1'
33 vertexfolderName['highPurityPtRange0to1'] = 'Tracking/PrimaryVertices/highPurityTracks/pt_0to1'
34 trackPtMin ['highPurityPtRange0to1'] = cms.double(0.)
35 trackPtMax ['highPurityPtRange0to1'] = cms.double(1.)
36 numCutString ['highPurityPtRange0to1'] = cms.string("") # default: " pt >= 1 & quality('highPurity') "
37 denCutString ['highPurityPtRange0to1'] = cms.string(" pt >= 0 & pt < 1 ") # it is as in the default config (just be sure)
38 
39 highPurityPtRange1to10 = trackSelector.clone()
40 highPurityPtRange1to10.cut = cms.string("quality('highPurity') & pt >= 1 & pt < 10 ")
41 
42 sequenceName ['highPurityPtRange1to10'] = cms.Sequence( highPurityPtRange1to10 )
43 mainfolderName ['highPurityPtRange1to10'] = 'Tracking/TrackParameters/highPurityTracks/pt_1to10'
44 vertexfolderName['highPurityPtRange1to10'] = 'Tracking/PrimaryVertices/highPurityTracks/pt_1to10'
45 trackPtMin ['highPurityPtRange1to10'] = cms.double(1.)
46 trackPtMax ['highPurityPtRange1to10'] = cms.double(10.)
47 numCutString ['highPurityPtRange1to10'] = cms.string("") # default: " pt >= 1 & quality('highPurity') "
48 denCutString ['highPurityPtRange1to10'] = cms.string(" pt >= 1 & pt < 10 ") # it is as in the default config (just be sure)
49 
50 
51 highPurityPt10 = trackSelector.clone()
52 highPurityPt10.cut = cms.string("quality('highPurity') & pt >= 10")
53 
54 sequenceName ['highPurityPt10'] = cms.Sequence( highPurityPt10 )
55 mainfolderName ['highPurityPt10'] = 'Tracking/TrackParameters/highPurityTracks/pt_10'
56 vertexfolderName['highPurityPt10'] = 'Tracking/PrimaryVertices/highPurityTracks/pt_10'
57 trackPtMin ['highPurityPt10'] = cms.double(10.)
58 trackPtMax ['highPurityPt10'] = cms.double(110.)
59 numCutString ['highPurityPt10'] = cms.string("") # default: " pt >= 1 & quality('highPurity') "
60 denCutString ['highPurityPt10'] = cms.string(" pt >= 10 ") # it is as in the default config (just be sure)
61 
62 
63 ###### old monitored track collections
64 highPurityPt1 = trackSelector.clone()
65 highPurityPt1.cut = cms.string("quality('highPurity') & pt >= 1")
66 
67 sequenceName ['highPurityPt1'] = cms.Sequence(highPurityPt1)
68 mainfolderName ['highPurityPt1'] = 'Tracking/TrackParameters/highPurityTracks/pt_1'
69 vertexfolderName['highPurityPt1'] = 'Tracking/PrimaryVertices/highPurityTracks/pt_1'
70 trackPtMin ['highPurityPt1'] = cms.double(0.)
71 trackPtMax ['highPurityPt1'] = cms.double(100.)
72 doPlotsPCA ['highPurityPt1'] = cms.bool(True)
73 numCutString ['highPurityPt1'] = cms.string("") # default: " pt >= 1 & quality('highPurity') "
74 denCutString ['highPurityPt1'] = cms.string(" pt >= 1 ") # it is as in the default config (just be sure)
75 
76 selectedTracks.extend( ['generalTracks'] )
77 #selectedTracks.extend( ['highPurityPtRange0to1'] )
78 #selectedTracks.extend( ['highPurityPtRange1to10'] )
79 #selectedTracks.extend( ['highPurityPt10'] )
80 
81 selectedTracks.extend( ['highPurityPt1'] )
82 
83 #selectedTracks2runSequence=cms.Sequence()
84 #for tracks in selectedTracks :
85 # if tracks != 'generalTracks':
86 # selectedTracks2runSequence+=sequenceName[tracks]
87