Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:12

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