Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-28 23:48:29

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 allTrackProducer   = {}
0004 mainfolderName   = {}
0005 vertexfolderName = {}
0006 sequenceName = {}
0007 trackPtN   = {}
0008 trackPtMin = {}
0009 trackPtMax = {}
0010 doPlotsPCA = {}
0011 numCutString = {}
0012 denCutString = {}
0013 doGoodTracksPlots                   = {}
0014 doTrackerSpecific                   = {}
0015 doHitPropertiesPlots                = {}
0016 doGeneralPropertiesPlots            = {}
0017 doBeamSpotPlots                     = {}
0018 doSeedParameterHistos               = {}
0019 doRecHitVsPhiVsEtaPerTrack          = {}
0020 doRecHitVsPtVsEtaPerTrack           = {}
0021 doGoodTrackRecHitVsPhiVsEtaPerTrack = {}
0022 doLayersVsPhiVsEtaPerTrack          = {}
0023 doGoodTrackLayersVsPhiVsEtaPerTrack = {}
0024 doPUmonitoring                      = {}
0025 doPlotsVsBXlumi                     = {}
0026 doPlotsVsGoodPVtx                   = {}
0027 doEffFromHitPatternVsPU             = {}
0028 doEffFromHitPatternVsBX             = {}
0029 doEffFromHitPatternVsLumi           = {}
0030 doStopSource                        = {}
0031 
0032 selectedTracks = []
0033 
0034 allTrackProducer['generalTracks'] = 'generalTracks'
0035 mainfolderName  ['generalTracks'] = 'Tracking/TrackParameters/generalTracks'
0036 vertexfolderName['generalTracks'] = 'Tracking/PrimaryVertices/generalTracks'
0037 trackPtN        ['generalTracks'] = cms.int32(100)
0038 trackPtMin      ['generalTracks'] = cms.double(0.)
0039 trackPtMax      ['generalTracks'] = cms.double(100.)
0040 doPlotsPCA      ['generalTracks'] = cms.bool(False)
0041 numCutString    ['generalTracks'] = cms.string("quality('highPurity')") # num := den + quality('highPurity')
0042 denCutString    ['generalTracks'] = cms.string("") # den := kinematics cuts
0043 doGoodTracksPlots                   ['generalTracks'] = cms.bool(True)
0044 doTrackerSpecific                   ['generalTracks'] = cms.bool(True)
0045 doHitPropertiesPlots                ['generalTracks'] = cms.bool(True)
0046 doGeneralPropertiesPlots            ['generalTracks'] = cms.bool(True)
0047 doBeamSpotPlots                     ['generalTracks'] = cms.bool(True)
0048 doSeedParameterHistos               ['generalTracks'] = cms.bool(False)
0049 doRecHitVsPhiVsEtaPerTrack          ['generalTracks'] = cms.bool(True)
0050 doRecHitVsPtVsEtaPerTrack           ['generalTracks'] = cms.bool(True)
0051 doGoodTrackRecHitVsPhiVsEtaPerTrack ['generalTracks'] = cms.bool(True)
0052 doLayersVsPhiVsEtaPerTrack          ['generalTracks'] = cms.bool(True)
0053 doGoodTrackLayersVsPhiVsEtaPerTrack ['generalTracks'] = cms.bool(True)
0054 doPUmonitoring                      ['generalTracks'] = cms.bool(False)
0055 doPlotsVsBXlumi                     ['generalTracks'] = cms.bool(False)
0056 doPlotsVsGoodPVtx                   ['generalTracks'] = cms.bool(True)
0057 doEffFromHitPatternVsPU             ['generalTracks'] = cms.bool(True)
0058 doEffFromHitPatternVsBX             ['generalTracks'] = cms.bool(False)
0059 doEffFromHitPatternVsLumi           ['generalTracks'] = cms.bool(False)
0060 doStopSource                        ['generalTracks'] = cms.bool(True)
0061 
0062 trackSelector = cms.EDFilter('TrackSelector',
0063     src = cms.InputTag('generalTracks'),
0064     cut = cms.string("")
0065 )
0066 
0067 ### highpurity definition: https://cmssdt.cern.ch/SDT/lxr/source/RecoTracker/FinalTrackSelectors/python/selectHighPurity_cfi.py
0068 highPurityPtRange0to1 = trackSelector.clone(
0069     cut = "quality('highPurity') & pt >= 0 & pt < 1 "
0070 )
0071 
0072 sequenceName    ['highPurityPtRange0to1'] = highPurityPtRange0to1
0073 allTrackProducer['highPurityPtRange0to1'] = 'generalTracks'
0074 mainfolderName  ['highPurityPtRange0to1'] = 'Tracking/TrackParameters/highPurityTracks/pt_0to1'
0075 vertexfolderName['highPurityPtRange0to1'] = 'Tracking/PrimaryVertices/highPurityTracks/pt_0to1'
0076 trackPtN        ['highPurityPtRange0to1'] = cms.int32(10)
0077 trackPtMin      ['highPurityPtRange0to1'] = cms.double(0.)
0078 trackPtMax      ['highPurityPtRange0to1'] = cms.double(1.)
0079 numCutString    ['highPurityPtRange0to1'] = cms.string(" pt >= 0 & pt < 1 & quality('highPurity')") # num := den + quality('highPurity') [it is the same as the main selection, but just to be sure ...]
0080 denCutString    ['highPurityPtRange0to1'] = cms.string(" pt >= 0 & pt < 1 ") # den := kinematics cut
0081 doPlotsPCA      ['highPurityPtRange0to1'] = cms.bool(False)
0082 doGoodTracksPlots                   ['highPurityPtRange0to1'] = cms.bool(False)
0083 doTrackerSpecific                   ['highPurityPtRange0to1'] = cms.bool(False)
0084 doHitPropertiesPlots                ['highPurityPtRange0to1'] = cms.bool(True)
0085 doGeneralPropertiesPlots            ['highPurityPtRange0to1'] = cms.bool(True)
0086 doBeamSpotPlots                     ['highPurityPtRange0to1'] = cms.bool(True)
0087 doSeedParameterHistos               ['highPurityPtRange0to1'] = cms.bool(False)
0088 doRecHitVsPhiVsEtaPerTrack          ['highPurityPtRange0to1'] = cms.bool(True)
0089 doRecHitVsPtVsEtaPerTrack           ['highPurityPtRange0to1'] = cms.bool(True)
0090 doGoodTrackRecHitVsPhiVsEtaPerTrack ['highPurityPtRange0to1'] = cms.bool(False)
0091 doLayersVsPhiVsEtaPerTrack          ['highPurityPtRange0to1'] = cms.bool(True)
0092 doGoodTrackLayersVsPhiVsEtaPerTrack ['highPurityPtRange0to1'] = cms.bool(False)
0093 doPUmonitoring                      ['highPurityPtRange0to1'] = cms.bool(True)
0094 doPlotsVsBXlumi                     ['highPurityPtRange0to1'] = cms.bool(False)
0095 doPlotsVsGoodPVtx                   ['highPurityPtRange0to1'] = cms.bool(True)
0096 doEffFromHitPatternVsPU             ['highPurityPtRange0to1'] = cms.bool(False)
0097 doEffFromHitPatternVsBX             ['highPurityPtRange0to1'] = cms.bool(False)
0098 doEffFromHitPatternVsLumi           ['highPurityPtRange0to1'] = cms.bool(False)
0099 doStopSource                        ['highPurityPtRange0to1'] = cms.bool(True)
0100 
0101 highPurityPtRange1to10 = trackSelector.clone(
0102     cut = "quality('highPurity') & pt >= 1 & pt < 10 "
0103 )
0104 
0105 sequenceName    ['highPurityPtRange1to10'] = highPurityPtRange1to10 
0106 allTrackProducer['highPurityPtRange1to10'] = 'generalTracks'
0107 mainfolderName  ['highPurityPtRange1to10'] = 'Tracking/TrackParameters/highPurityTracks/pt_1to10'
0108 vertexfolderName['highPurityPtRange1to10'] = 'Tracking/PrimaryVertices/highPurityTracks/pt_1to10'
0109 trackPtN        ['highPurityPtRange1to10'] = cms.int32(10)
0110 trackPtMin      ['highPurityPtRange1to10'] = cms.double(1.)
0111 trackPtMax      ['highPurityPtRange1to10'] = cms.double(10.)
0112 numCutString    ['highPurityPtRange1to10'] = cms.string(" pt >= 1 & pt < 10 & quality('highPurity')") # num := den + quality('highPurity') [it is the same as the main selection, but just to be sure ...]
0113 denCutString    ['highPurityPtRange1to10'] = cms.string(" pt >= 1 & pt < 10 ") # den := kinematics cuts
0114 doGoodTracksPlots                   ['highPurityPtRange1to10'] = cms.bool(True)
0115 doTrackerSpecific                   ['highPurityPtRange1to10'] = cms.bool(True)
0116 doHitPropertiesPlots                ['highPurityPtRange1to10'] = cms.bool(True)
0117 doGeneralPropertiesPlots            ['highPurityPtRange1to10'] = cms.bool(True)
0118 doBeamSpotPlots                     ['highPurityPtRange1to10'] = cms.bool(True)
0119 doSeedParameterHistos               ['highPurityPtRange1to10'] = cms.bool(False)
0120 doRecHitVsPhiVsEtaPerTrack          ['highPurityPtRange1to10'] = cms.bool(True)
0121 doRecHitVsPtVsEtaPerTrack           ['highPurityPtRange1to10'] = cms.bool(True)
0122 doGoodTrackRecHitVsPhiVsEtaPerTrack ['highPurityPtRange1to10'] = cms.bool(True)
0123 doLayersVsPhiVsEtaPerTrack          ['highPurityPtRange1to10'] = cms.bool(True)
0124 doGoodTrackLayersVsPhiVsEtaPerTrack ['highPurityPtRange1to10'] = cms.bool(True)
0125 doPUmonitoring                      ['highPurityPtRange1to10'] = cms.bool(False)
0126 doPlotsVsBXlumi                     ['highPurityPtRange1to10'] = cms.bool(False)
0127 doPlotsVsGoodPVtx                   ['highPurityPtRange1to10'] = cms.bool(True)
0128 doEffFromHitPatternVsPU             ['highPurityPtRange1to10'] = cms.bool(False)
0129 doEffFromHitPatternVsBX             ['highPurityPtRange1to10'] = cms.bool(False)
0130 doEffFromHitPatternVsLumi           ['highPurityPtRange1to10'] = cms.bool(False)
0131 doStopSource                        ['highPurityPtRange1to10'] = cms.bool(True)
0132 
0133 highPurityPt10 = trackSelector.clone(
0134     cut = "quality('highPurity') & pt >= 10"
0135 )
0136 
0137 sequenceName    ['highPurityPt10'] = highPurityPt10 
0138 allTrackProducer['highPurityPt10'] = 'generalTracks'
0139 mainfolderName  ['highPurityPt10'] = 'Tracking/TrackParameters/highPurityTracks/pt_10'
0140 vertexfolderName['highPurityPt10'] = 'Tracking/PrimaryVertices/highPurityTracks/pt_10'
0141 trackPtN        ['highPurityPt10'] = cms.int32(100)
0142 trackPtMin      ['highPurityPt10'] = cms.double(10.)
0143 trackPtMax      ['highPurityPt10'] = cms.double(110.)
0144 numCutString    ['highPurityPt10'] = cms.string(" pt >= 10 & quality('highPurity')") # num := den + quality('highPurity') [it is the same as the main selection, but just to be sure ...]
0145 denCutString    ['highPurityPt10'] = cms.string(" pt >= 10 ") # den := kinematics cuts
0146 doGoodTracksPlots                   ['highPurityPt10'] = cms.bool(True)
0147 doTrackerSpecific                   ['highPurityPt10'] = cms.bool(True)
0148 doHitPropertiesPlots                ['highPurityPt10'] = cms.bool(True)
0149 doGeneralPropertiesPlots            ['highPurityPt10'] = cms.bool(True)
0150 doBeamSpotPlots                     ['highPurityPt10'] = cms.bool(True)
0151 doSeedParameterHistos               ['highPurityPt10'] = cms.bool(False)
0152 doRecHitVsPhiVsEtaPerTrack          ['highPurityPt10'] = cms.bool(True)
0153 doRecHitVsPtVsEtaPerTrack           ['highPurityPt10'] = cms.bool(True)
0154 doGoodTrackRecHitVsPhiVsEtaPerTrack ['highPurityPt10'] = cms.bool(True)
0155 doLayersVsPhiVsEtaPerTrack          ['highPurityPt10'] = cms.bool(True)
0156 doGoodTrackLayersVsPhiVsEtaPerTrack ['highPurityPt10'] = cms.bool(True)
0157 doPUmonitoring                      ['highPurityPt10'] = cms.bool(False)
0158 doPlotsVsBXlumi                     ['highPurityPt10'] = cms.bool(False)
0159 doPlotsVsGoodPVtx                   ['highPurityPt10'] = cms.bool(True)
0160 doEffFromHitPatternVsPU             ['highPurityPt10'] = cms.bool(False)
0161 doEffFromHitPatternVsBX             ['highPurityPt10'] = cms.bool(False)
0162 doEffFromHitPatternVsLumi           ['highPurityPt10'] = cms.bool(False)
0163 doStopSource                        ['highPurityPt10'] = cms.bool(True)
0164 
0165 ###### old monitored track collections
0166 highPurityPt1 = trackSelector.clone(
0167     cut = "quality('highPurity') & pt >= 1"
0168 )
0169 
0170 sequenceName    ['highPurityPt1'] = highPurityPt1
0171 allTrackProducer['highPurityPt1'] = 'generalTracks'
0172 mainfolderName  ['highPurityPt1'] = 'Tracking/TrackParameters/highPurityTracks/pt_1'
0173 vertexfolderName['highPurityPt1'] = 'Tracking/PrimaryVertices/highPurityTracks/pt_1'
0174 trackPtN        ['highPurityPt1'] = cms.int32(100)
0175 trackPtMin      ['highPurityPt1'] = cms.double(0.)
0176 trackPtMax      ['highPurityPt1'] = cms.double(100.)
0177 doPlotsPCA      ['highPurityPt1'] = cms.bool(True)
0178 numCutString    ['highPurityPt1'] = cms.string(" pt >= 1 & quality('highPurity')") # num := den + quality('highPurity') [it is the same as the main selection, but just to be sure ...]
0179 denCutString    ['highPurityPt1'] = cms.string(" pt >= 1 ") # den := kinematics cut
0180 doGoodTracksPlots                   ['highPurityPt1'] = cms.bool(True)
0181 doTrackerSpecific                   ['highPurityPt1'] = cms.bool(True)
0182 doHitPropertiesPlots                ['highPurityPt1'] = cms.bool(True)
0183 doGeneralPropertiesPlots            ['highPurityPt1'] = cms.bool(True)
0184 doBeamSpotPlots                     ['highPurityPt1'] = cms.bool(True)
0185 doSeedParameterHistos               ['highPurityPt1'] = cms.bool(False)
0186 doRecHitVsPhiVsEtaPerTrack          ['highPurityPt1'] = cms.bool(True)
0187 doRecHitVsPtVsEtaPerTrack           ['highPurityPt1'] = cms.bool(True)
0188 doGoodTrackRecHitVsPhiVsEtaPerTrack ['highPurityPt1'] = cms.bool(True)
0189 doLayersVsPhiVsEtaPerTrack          ['highPurityPt1'] = cms.bool(True)
0190 doGoodTrackLayersVsPhiVsEtaPerTrack ['highPurityPt1'] = cms.bool(True)
0191 doPUmonitoring                      ['highPurityPt1'] = cms.bool(False)
0192 doPlotsVsBXlumi                     ['highPurityPt1'] = cms.bool(False)
0193 doPlotsVsGoodPVtx                   ['highPurityPt1'] = cms.bool(True)
0194 doEffFromHitPatternVsPU             ['highPurityPt1'] = cms.bool(True)
0195 doEffFromHitPatternVsBX             ['highPurityPt1'] = cms.bool(True)
0196 doEffFromHitPatternVsLumi           ['highPurityPt1'] = cms.bool(True)
0197 doStopSource                        ['highPurityPt1'] = cms.bool(True)
0198 
0199 ###### forward-only monitored track collections
0200 highPurityPt1Eta2p5to3p0 = trackSelector.clone(
0201     cut = "quality('highPurity') & pt >= 1 & abs(eta) > 2.5"
0202 )
0203 
0204 sequenceName    ['highPurityPt1Eta2p5to3p0'] = highPurityPt1Eta2p5to3p0
0205 allTrackProducer['highPurityPt1Eta2p5to3p0'] = 'generalTracks'
0206 mainfolderName  ['highPurityPt1Eta2p5to3p0'] = 'Tracking/TrackParameters/highPurityTracks/pt_1_Eta_2p5'
0207 vertexfolderName['highPurityPt1Eta2p5to3p0'] = 'Tracking/PrimaryVertices/highPurityTracks/pt_1_Eta_2p5'
0208 trackPtN        ['highPurityPt1Eta2p5to3p0'] = cms.int32(100)
0209 trackPtMin  ['highPurityPt1Eta2p5to3p0'] = cms.double(0.)
0210 trackPtMax  ['highPurityPt1Eta2p5to3p0'] = cms.double(100.)
0211 doPlotsPCA  ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0212 numCutString    ['highPurityPt1Eta2p5to3p0'] = cms.string(" pt >= 1 & abs(eta) > 2.5 & quality('highPurity')") # num := den + quality('highPurity') [it is the same as the main selection, but just to be sure ...]
0213 denCutString    ['highPurityPt1Eta2p5to3p0'] = cms.string(" pt >= 1 & abs(eta) > 2.5") # den := kinematics cut
0214 doGoodTracksPlots                   ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0215 doTrackerSpecific                   ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0216 doHitPropertiesPlots                ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0217 doGeneralPropertiesPlots            ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0218 doBeamSpotPlots                     ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0219 doSeedParameterHistos               ['highPurityPt1Eta2p5to3p0'] = cms.bool(False)
0220 doRecHitVsPhiVsEtaPerTrack          ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0221 doRecHitVsPtVsEtaPerTrack           ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0222 doGoodTrackRecHitVsPhiVsEtaPerTrack ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0223 doLayersVsPhiVsEtaPerTrack          ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0224 doGoodTrackLayersVsPhiVsEtaPerTrack ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0225 doPUmonitoring                      ['highPurityPt1Eta2p5to3p0'] = cms.bool(False)
0226 doPlotsVsBXlumi                     ['highPurityPt1Eta2p5to3p0'] = cms.bool(False)
0227 doPlotsVsGoodPVtx                   ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0228 doEffFromHitPatternVsPU             ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0229 doEffFromHitPatternVsBX             ['highPurityPt1Eta2p5to3p0'] = cms.bool(False)
0230 doEffFromHitPatternVsLumi           ['highPurityPt1Eta2p5to3p0'] = cms.bool(False)
0231 doStopSource                        ['highPurityPt1Eta2p5to3p0'] = cms.bool(True)
0232 
0233 
0234 
0235 
0236 ###### all tracks (no pt cut) associated to the PV
0237 ###### association is dz<1mm 
0238 from CommonTools.RecoAlgos.TrackWithVertexSelector_cfi import *
0239 
0240 trackAssociated2pvSelector = trackWithVertexSelector.clone(
0241     # the track collection
0242     src = 'generalTracks',
0243     # kinematic cuts  (pT in GeV)
0244     etaMin = 0.0,
0245     etaMax = 5.0,
0246     ptMin = 0.0,
0247     ptMax = 100000.0,
0248     # impact parameter cut (in cm)
0249     d0Max = 999.,
0250     dzMax = 999.,
0251     # quality cuts (valid hits, normalized chi2)
0252     normalizedChi2 = 999999.,
0253     numberOfValidHits = 0,
0254     numberOfLostHits = 999, ## at most 999 lost hits
0255     numberOfValidPixelHits = 0, ## at least <n> hits in the pixels
0256     ptErrorCut = 9999999., ## [pTError/pT]*max(1,normChi2) <= ptErrorCut
0257     quality = "highPurity", # quality cut as defined in reco::TrackBase
0258     # compatibility with a vertex ?
0259     useVtx = True,
0260     vertexTag = 'trackingDQMgoodOfflinePrimaryVertices',
0261     timesTag = '',
0262     timeResosTag = '',
0263     nVertices = 1, ## how many vertices to look at before dropping the track
0264     vtxFallback = True, ## falback to beam spot if there are no vertices
0265     # uses vtx=(0,0,0) with deltaZeta=15.9, deltaRho = 0.2
0266     zetaVtx = 999.,
0267     #rhoVtx = 0.2, ## tags used by b-tagging folks
0268     rhoVtx = 999., ## tags used by b-tagging folks
0269     nSigmaDtVertex = 0.,
0270     # should _not_ be used for the TrackWithVertexRefSelector
0271     copyExtras = False, ## copies also extras and rechits on RECO
0272     copyTrajectories = False # don't set this to true on AOD!
0273 )
0274 
0275 highPurityPV0p1 = trackAssociated2pvSelector.clone(
0276     zetaVtx = 0.1, # wrt PV
0277     #dzMax = 0.1 # wrt BS
0278 )
0279 
0280 PV0p1 = highPurityPV0p1.clone(
0281     quality = "" # quality cut as defined in reco::TrackBase
0282 )
0283 
0284 #sequenceName    ['highPurityPV0p1'] = highPurityPV0p1
0285 sequenceName    ['highPurityPV0p1'] = highPurityPV0p1+PV0p1
0286 allTrackProducer['highPurityPV0p1'] = 'PV0p1'
0287 mainfolderName  ['highPurityPV0p1'] = 'Tracking/TrackParameters/highPurityTracks/dzPV0p1'
0288 vertexfolderName['highPurityPV0p1'] = 'Tracking/PrimaryVertices/highPurityTracks/dzPV0p1'
0289 trackPtN        ['highPurityPV0p1'] = cms.int32(100)
0290 trackPtMin      ['highPurityPV0p1'] = cms.double(0.)
0291 trackPtMax      ['highPurityPV0p1'] = cms.double(100.)
0292 doPlotsPCA      ['highPurityPV0p1'] = cms.bool(True)
0293 numCutString    ['highPurityPV0p1'] = cms.string("quality('highPurity')") # num := den + quality('highPurity')
0294 denCutString    ['highPurityPV0p1'] = cms.string("") # den := kinematic cuts
0295 doGoodTracksPlots                   ['highPurityPV0p1'] = cms.bool(True)
0296 doTrackerSpecific                   ['highPurityPV0p1'] = cms.bool(True)
0297 doHitPropertiesPlots                ['highPurityPV0p1'] = cms.bool(True)
0298 doGeneralPropertiesPlots            ['highPurityPV0p1'] = cms.bool(True)
0299 doBeamSpotPlots                     ['highPurityPV0p1'] = cms.bool(True)
0300 doSeedParameterHistos               ['highPurityPV0p1'] = cms.bool(False)
0301 doRecHitVsPhiVsEtaPerTrack          ['highPurityPV0p1'] = cms.bool(True)
0302 doRecHitVsPtVsEtaPerTrack           ['highPurityPV0p1'] = cms.bool(True)
0303 doGoodTrackRecHitVsPhiVsEtaPerTrack ['highPurityPV0p1'] = cms.bool(True)
0304 doLayersVsPhiVsEtaPerTrack          ['highPurityPV0p1'] = cms.bool(True)
0305 doGoodTrackLayersVsPhiVsEtaPerTrack ['highPurityPV0p1'] = cms.bool(True)
0306 doPUmonitoring                      ['highPurityPV0p1'] = cms.bool(False)
0307 doPlotsVsBXlumi                     ['highPurityPV0p1'] = cms.bool(False)
0308 doPlotsVsGoodPVtx                   ['highPurityPV0p1'] = cms.bool(True)
0309 doEffFromHitPatternVsPU             ['highPurityPV0p1'] = cms.bool(True)
0310 doEffFromHitPatternVsBX             ['highPurityPV0p1'] = cms.bool(False)
0311 doEffFromHitPatternVsLumi           ['highPurityPV0p1'] = cms.bool(True)
0312 doStopSource                        ['highPurityPV0p1'] = cms.bool(True)
0313 
0314 #pixel tracks
0315 hiConformalPixelTracksQA = trackSelector.clone(
0316     src = 'hiConformalPixelTracks',
0317     cut = "chi2/ndof/hitPattern.trackerLayersWithMeasurement < 200"
0318 )
0319 
0320 sequenceName    ['hiConformalPixelTracksQA'] = hiConformalPixelTracksQA
0321 allTrackProducer['hiConformalPixelTracksQA'] = 'generalTracks'
0322 mainfolderName  ['hiConformalPixelTracksQA'] = 'Tracking/TrackParameters/hiConformalPixelTracks'
0323 vertexfolderName['hiConformalPixelTracksQA'] = 'Tracking/PrimaryVertices/hiConformalPixelTracks'
0324 trackPtN        ['hiConformalPixelTracksQA'] = cms.int32(100)
0325 trackPtMin      ['hiConformalPixelTracksQA'] = cms.double(0.)
0326 trackPtMax      ['hiConformalPixelTracksQA'] = cms.double(10.)
0327 numCutString    ['hiConformalPixelTracksQA'] = cms.string(" pt >= 0 ") 
0328 denCutString    ['hiConformalPixelTracksQA'] = cms.string(" pt >= 0 ") 
0329 doPlotsPCA      ['hiConformalPixelTracksQA'] = cms.bool(False)
0330 doGoodTracksPlots                   ['hiConformalPixelTracksQA'] = cms.bool(False)
0331 doTrackerSpecific                   ['hiConformalPixelTracksQA'] = cms.bool(False)
0332 doHitPropertiesPlots                ['hiConformalPixelTracksQA'] = cms.bool(True)
0333 doGeneralPropertiesPlots            ['hiConformalPixelTracksQA'] = cms.bool(True)
0334 doBeamSpotPlots                     ['hiConformalPixelTracksQA'] = cms.bool(True)
0335 doSeedParameterHistos               ['hiConformalPixelTracksQA'] = cms.bool(False)
0336 doRecHitVsPhiVsEtaPerTrack          ['hiConformalPixelTracksQA'] = cms.bool(True)
0337 doRecHitVsPtVsEtaPerTrack           ['hiConformalPixelTracksQA'] = cms.bool(True)
0338 doGoodTrackRecHitVsPhiVsEtaPerTrack ['hiConformalPixelTracksQA'] = cms.bool(False)
0339 doLayersVsPhiVsEtaPerTrack          ['hiConformalPixelTracksQA'] = cms.bool(True)
0340 doGoodTrackLayersVsPhiVsEtaPerTrack ['hiConformalPixelTracksQA'] = cms.bool(False)
0341 doPUmonitoring                      ['hiConformalPixelTracksQA'] = cms.bool(True)
0342 doPlotsVsBXlumi                     ['hiConformalPixelTracksQA'] = cms.bool(False)
0343 doPlotsVsGoodPVtx                   ['hiConformalPixelTracksQA'] = cms.bool(True)
0344 doEffFromHitPatternVsPU             ['hiConformalPixelTracksQA'] = cms.bool(False)
0345 doEffFromHitPatternVsBX             ['hiConformalPixelTracksQA'] = cms.bool(False)
0346 doEffFromHitPatternVsLumi           ['hiConformalPixelTracksQA'] = cms.bool(False)
0347 doStopSource                        ['hiConformalPixelTracksQA'] = cms.bool(True)
0348 
0349 selectedTracks.extend( ['generalTracks'] )
0350 #selectedTracks.extend( ['highPurityPtRange0to1']  )
0351 #selectedTracks.extend( ['highPurityPtRange1to10'] )
0352 #selectedTracks.extend( ['highPurityPt10']         )
0353 
0354 selectedTracks.extend( ['highPurityPt1'] )
0355 selectedTracks.extend( ['highPurityPtRange0to1'] )
0356 selectedTracks.extend( ['highPurityPV0p1'] )
0357 
0358 # not by default
0359 #selectedTracks.extend( ['highPurityPt1Eta2p5to3p0'] )
0360 
0361 
0362 #selectedTracks2runSequence=cms.Sequence()
0363 #for tracks in selectedTracks :
0364 #    if tracks != 'generalTracks':
0365 #        selectedTracks2runSequence+=sequenceName[tracks]
0366 
0367 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0368 pp_on_AA.toModify(selectedTracks, func=lambda selectedTracks: selectedTracks.extend( ['hiConformalPixelTracksQA'] ))