1 import FWCore.ParameterSet.Config
as cms
5 from SLHCUpgradeSimulations.Configuration.customise_mixing
import customise_pixelMixing_PU
8 if hasattr(process,
'DigiToRaw'):
10 if hasattr(process,
'RawToDigi'):
13 if hasattr(process,
'reconstruction')
or hasattr(process,
'dqmoffline_step'):
14 if hasattr(process,
'mix'):
15 if hasattr(process.mix,
'input'):
16 n=process.mix.input.nbPileupEvents.averageNumber.value()
18 print 'phase1TkCustoms requires a --pileup option to cmsDriver to run the reconstruction/dqm'
19 print 'Please provide one!'
21 if hasattr(process,
'reconstruction'):
24 if hasattr(process,
'digitisation_step'):
26 if hasattr(process,
'dqmoffline_step'):
28 if hasattr(process,
'dqmHarvesting'):
30 if hasattr(process,
'validation_step'):
37 process.digi2raw_step.remove(process.siPixelRawData)
38 process.digi2raw_step.remove(process.castorRawData)
42 process.raw2digi_step.remove(process.siPixelDigis)
43 process.raw2digi_step.remove(process.castorDigis)
47 process.mix.digitizers.pixel.MissCalibrate =
False
48 process.mix.digitizers.pixel.LorentzAngle_DB =
False
49 process.mix.digitizers.pixel.killModules =
False
50 process.mix.digitizers.pixel.useDB =
False
51 process.mix.digitizers.pixel.DeadModules_DB =
False
52 process.mix.digitizers.pixel.NumPixelBarrel = cms.int32(4)
53 process.mix.digitizers.pixel.NumPixelEndcap = cms.int32(3)
54 process.mix.digitizers.pixel.ThresholdInElectrons_FPix = cms.double(2000.0)
55 process.mix.digitizers.pixel.ThresholdInElectrons_BPix = cms.double(2000.0)
56 process.mix.digitizers.pixel.ThresholdInElectrons_BPix_L1 = cms.double(2000.0)
57 process.mix.digitizers.pixel.thePixelColEfficiency_BPix1 = cms.double(0.999)
58 process.mix.digitizers.pixel.thePixelColEfficiency_BPix2 = cms.double(0.999)
59 process.mix.digitizers.pixel.thePixelColEfficiency_BPix3 = cms.double(0.999)
60 process.mix.digitizers.pixel.thePixelColEfficiency_BPix4 = cms.double(0.999)
61 process.mix.digitizers.pixel.thePixelEfficiency_BPix1 = cms.double(0.999)
62 process.mix.digitizers.pixel.thePixelEfficiency_BPix2 = cms.double(0.999)
63 process.mix.digitizers.pixel.thePixelEfficiency_BPix3 = cms.double(0.999)
64 process.mix.digitizers.pixel.thePixelEfficiency_BPix4 = cms.double(0.999)
65 process.mix.digitizers.pixel.thePixelChipEfficiency_BPix1 = cms.double(0.999)
66 process.mix.digitizers.pixel.thePixelChipEfficiency_BPix2 = cms.double(0.999)
67 process.mix.digitizers.pixel.thePixelChipEfficiency_BPix3 = cms.double(0.999)
68 process.mix.digitizers.pixel.thePixelChipEfficiency_BPix4 = cms.double(0.999)
69 process.mix.digitizers.pixel.thePixelColEfficiency_FPix1 = cms.double(0.999)
70 process.mix.digitizers.pixel.thePixelColEfficiency_FPix2 = cms.double(0.999)
71 process.mix.digitizers.pixel.thePixelColEfficiency_FPix3 = cms.double(0.999)
72 process.mix.digitizers.pixel.thePixelEfficiency_FPix1 = cms.double(0.999)
73 process.mix.digitizers.pixel.thePixelEfficiency_FPix2 = cms.double(0.999)
74 process.mix.digitizers.pixel.thePixelEfficiency_FPix3 = cms.double(0.999)
75 process.mix.digitizers.pixel.thePixelChipEfficiency_FPix1 = cms.double(0.999)
76 process.mix.digitizers.pixel.thePixelChipEfficiency_FPix2 = cms.double(0.999)
77 process.mix.digitizers.pixel.thePixelChipEfficiency_FPix3 = cms.double(0.999)
79 process.mix.digitizers.pixel.AddPixelInefficiency = cms.bool(
False)
88 process.dqmoffline_step.remove(process.muonAnalyzer)
92 process.SiPixelRawDataErrorSource.isUpgrade = cms.untracked.bool(
True)
93 process.SiPixelDigiSource.isUpgrade = cms.untracked.bool(
True)
94 process.SiPixelClusterSource.isUpgrade = cms.untracked.bool(
True)
95 process.SiPixelRecHitSource.isUpgrade = cms.untracked.bool(
True)
96 process.SiPixelTrackResidualSource.isUpgrade = cms.untracked.bool(
True)
97 process.SiPixelHitEfficiencySource.isUpgrade = cms.untracked.bool(
True)
99 from DQM.TrackingMonitor.customizeTrackingMonitorSeedNumber
import customise_trackMon_IterativeTracking_PHASE1PU140
100 from DQM.TrackingMonitor.customizeTrackingMonitorSeedNumber
import customise_trackMon_IterativeTracking_PHASE1PU70
109 process.validation_step.remove(process.PixelTrackingRecHitsValid)
111 process.validation_step.remove(process.HLTSusyExoVal)
112 process.validation_step.remove(process.hltHiggsValidator)
113 process.validation_step.remove(process.relvalMuonBits)
119 process.trackValidator.label=cms.VInputTag(cms.InputTag(
"cutsRecoTracksHp"))
120 process.tracksValidationSelectors = cms.Sequence(process.cutsRecoTracksHp)
121 process.globalValidation.remove(process.recoMuonValidation)
122 process.validation.remove(process.recoMuonValidation)
123 process.validation_preprod.remove(process.recoMuonValidation)
124 process.validation_step.remove(process.recoMuonValidation)
125 process.validation.remove(process.globalrechitsanalyze)
126 process.validation_prod.remove(process.globalrechitsanalyze)
127 process.validation_step.remove(process.globalrechitsanalyze)
128 process.validation.remove(process.stripRecHitsValid)
129 process.validation_step.remove(process.stripRecHitsValid)
130 process.validation_step.remove(process.StripTrackingRecHitsValid)
131 process.globalValidation.remove(process.vertexValidation)
132 process.validation.remove(process.vertexValidation)
133 process.validation_step.remove(process.vertexValidation)
134 process.mix.input.nbPileupEvents.averageNumber = cms.double(0.0)
135 process.mix.minBunch = cms.int32(0)
136 process.mix.maxBunch = cms.int32(0)
140 process.dqmHarvesting.remove(process.dataCertificationJetMET)
142 process.sipixelEDAClient.isUpgrade = cms.untracked.bool(
True)
143 process.dqmHarvesting.remove(process.sipixelCertification)
157 process.load(
'SLHCUpgradeSimulations.Geometry.fakeConditions_Phase1_cff')
162 process.SiPixelRawDataErrorSource.modOn = cms.untracked.bool(
True)
163 process.SiPixelDigiSource.modOn = cms.untracked.bool(
True)
164 process.SiPixelClusterSource.modOn = cms.untracked.bool(
True)
165 process.SiPixelRecHitSource.modOn = cms.untracked.bool(
True)
166 process.SiPixelTrackResidualSource.modOn = cms.untracked.bool(
True)
167 process.SiPixelHitEfficiencySource.modOn = cms.untracked.bool(
True)
173 if hasattr(process,
'mix'):
174 process.mix.digitizers.pixel.AddPixelInefficiency = cms.bool(
False)
183 if pileup>100: nPU=140
186 process.ClusterShapeHitFilterESProducer.PixelShapeFile = cms.string(
'RecoPixelVertexing/PixelLowPtUtilities/data/pixelShape_Phase1Tk.par')
188 process.MeasurementTrackerEvent.inactivePixelDetectorLabels = cms.VInputTag()
191 process.PixelLayerTriplets.layerList = cms.vstring(
'BPix1+BPix2+BPix3',
195 'BPix2+BPix3+FPix1_pos',
196 'BPix2+BPix3+FPix1_neg',
197 'BPix1+BPix2+FPix1_pos',
198 'BPix1+BPix2+FPix1_neg',
199 'BPix2+FPix1_pos+FPix2_pos',
200 'BPix2+FPix1_neg+FPix2_neg',
201 'BPix1+FPix1_pos+FPix2_pos',
202 'BPix1+FPix1_neg+FPix2_neg',
203 'FPix1_pos+FPix2_pos+FPix3_pos',
204 'FPix1_neg+FPix2_neg+FPix3_neg' )
211 itIndex=process.globalreco.index(process.trackingGlobalReco)
212 grIndex=process.reconstruction.index(process.globalreco)
214 process.reconstruction.remove(process.globalreco)
215 process.globalreco.remove(process.iterTracking)
216 process.globalreco.remove(process.electronSeedsSeq)
217 process.reconstruction_fromRECO.remove(process.trackingGlobalReco)
218 process.reconstruction_fromRECO.remove(process.electronSeedsSeq)
219 process.reconstruction_fromRECO.remove(process.initialStepSeedLayers)
220 process.reconstruction_fromRECO.remove(process.initialStepSeeds)
221 process.reconstruction_fromRECO.remove(process.initialStepClassifier1)
222 process.reconstruction_fromRECO.remove(process.initialStepClassifier2)
223 process.reconstruction_fromRECO.remove(process.initialStepClassifier3)
224 process.reconstruction_fromRECO.remove(initialStepTrackCandidates)
225 process.reconstruction_fromRECO.remove(initialStepTracks)
226 process.reconstruction_fromRECO.remove(lowPtTripletStepClusters)
227 process.reconstruction_fromRECO.remove(lowPtTripletStepSeedLayers)
228 process.reconstruction_fromRECO.remove(lowPtTripletStepSeeds)
229 process.reconstruction_fromRECO.remove(lowPtTripletStep)
230 process.reconstruction_fromRECO.remove(lowPtTripletStepTrackCandidates)
231 process.reconstruction_fromRECO.remove(lowPtTripletStepTracks)
233 process.reconstruction_fromRECO.remove(mixedTripletStep)
234 process.reconstruction_fromRECO.remove(mixedTripletStepClusters)
235 process.reconstruction_fromRECO.remove(mixedTripletStepSeedLayersA)
236 process.reconstruction_fromRECO.remove(mixedTripletStepSeedLayersB)
237 process.reconstruction_fromRECO.remove(mixedTripletStepSeeds)
238 process.reconstruction_fromRECO.remove(mixedTripletStepSeedsA)
239 process.reconstruction_fromRECO.remove(mixedTripletStepSeedsB)
240 process.reconstruction_fromRECO.remove(mixedTripletStepClassifier1)
241 process.reconstruction_fromRECO.remove(mixedTripletStepClassifier2)
242 process.reconstruction_fromRECO.remove(mixedTripletStepTrackCandidates)
243 process.reconstruction_fromRECO.remove(mixedTripletStepTracks)
245 process.reconstruction_fromRECO.remove(pixelPairStepClusters)
246 process.reconstruction_fromRECO.remove(pixelPairStepSeeds)
247 process.reconstruction_fromRECO.remove(pixelPairStepSeedLayers)
248 process.reconstruction_fromRECO.remove(pixelPairStep)
249 process.reconstruction_fromRECO.remove(pixelPairStepTrackCandidates)
250 process.reconstruction_fromRECO.remove(pixelPairStepTracks)
252 process.reconstruction_fromRECO.remove(tobTecStepClusters)
253 process.reconstruction_fromRECO.remove(tobTecStepSeeds)
255 process.reconstruction_fromRECO.remove(tobTecStepClassifier1)
256 process.reconstruction_fromRECO.remove(tobTecStepClassifier2)
257 process.reconstruction_fromRECO.remove(tobTecStep)
258 process.reconstruction_fromRECO.remove(tobTecStepTrackCandidates)
259 process.reconstruction_fromRECO.remove(tobTecStepTracks)
262 process.reconstruction_fromRECO.remove(process.muonSeededSeedsInOut)
263 process.reconstruction_fromRECO.remove(process.muonSeededSeedsInOut)
264 process.reconstruction_fromRECO.remove(process.muonSeededTrackCandidatesInOut)
265 process.reconstruction_fromRECO.remove(process.muonSeededTrackCandidatesInOut)
266 process.reconstruction_fromRECO.remove(process.muonSeededTracksInOut)
267 process.reconstruction_fromRECO.remove(process.muonSeededTracksInOut)
268 process.reconstruction_fromRECO.remove(process.muonSeededSeedsOutIn)
269 process.reconstruction_fromRECO.remove(process.muonSeededTrackCandidatesOutIn)
270 process.reconstruction_fromRECO.remove(process.muonSeededTracksOutIn)
272 process.muonSeededStepCoreDisplaced.remove(process.muonSeededSeedsInOut)
273 process.muonSeededStepCoreDisplaced.remove(process.muonSeededTrackCandidatesInOut)
274 process.muonSeededStepCoreDisplaced.remove(process.muonSeededTracksInOut)
275 process.muonSeededStepCoreDisplaced.remove(process.muonSeededSeedsOutIn)
276 process.muonSeededStepExtraDisplaced.remove(process.muonSeededTracksInOutClassifier)
278 process.reconstruction_fromRECO.remove(process.convClusters)
279 process.reconstruction_fromRECO.remove(process.convLayerPairs)
280 process.reconstruction_fromRECO.remove(process.convStepSelector)
281 process.reconstruction_fromRECO.remove(process.convTrackCandidates)
282 process.reconstruction_fromRECO.remove(process.convStepTracks)
283 process.reconstruction_fromRECO.remove(process.photonConvTrajSeedFromSingleLeg)
285 process.reconstruction_fromRECO.remove(process.preDuplicateMergingGeneralTracks)
288 process.InitialStepPreSplitting.remove(siPixelClusters)
290 del process.iterTracking
291 del process.ckftracks
292 del process.ckftracks_woBH
293 del process.ckftracks_wodEdX
294 del process.ckftracks_plus_pixelless
295 del process.trackingGlobalReco
296 del process.electronSeedsSeq
297 del process.InitialStep
298 del process.LowPtTripletStep
299 del process.PixelPairStep
300 del process.DetachedTripletStep
301 del process.MixedTripletStep
302 del process.PixelLessStep
303 del process.TobTecStep
304 del process.earlyGeneralTracks
305 del process.muonSeededStep
306 del process.muonSeededStepCore
307 del process.muonSeededStepDebug
308 del process.muonSeededStepDebugDisplaced
311 process.load(
"RecoTracker.Configuration.RecoTrackerPhase1PU"+str(nPU)+
"_cff")
313 process.globalreco.insert(itIndex,process.trackingGlobalReco)
314 process.reconstruction.insert(grIndex,process.globalreco)
320 process.reconstruction.remove(process.castorreco)
321 process.reconstruction.remove(process.CastorTowerReco)
322 process.reconstruction.remove(process.ak5CastorJets)
323 process.reconstruction.remove(process.ak5CastorJetID)
324 process.reconstruction.remove(process.ak7CastorJets)
326 process.reconstruction.remove(process.ak7CastorJetID)
329 process.load(
"RecoPixelVertexing.PixelTriplets.quadrupletseedmerging_cff")
330 process.PixelSeedMergerQuadruplets.BPix.TTRHBuilder = cms.string(
"PixelTTRHBuilderWithoutAngle" )
331 process.PixelSeedMergerQuadruplets.BPix.HitProducer = cms.string(
"siPixelRecHits" )
332 process.PixelSeedMergerQuadruplets.FPix.TTRHBuilder = cms.string(
"PixelTTRHBuilderWithoutAngle" )
333 process.PixelSeedMergerQuadruplets.FPix.HitProducer = cms.string(
"siPixelRecHits" )
336 process.load(
"SLHCUpgradeSimulations.Geometry.recoFromSimDigis_cff")
338 process.PixelCPEGenericESProducer.Upgrade = cms.bool(
True)
339 process.PixelCPEGenericESProducer.UseErrorsFromTemplates = cms.bool(
False)
340 process.PixelCPEGenericESProducer.LoadTemplatesFromDB = cms.bool(
False)
341 process.PixelCPEGenericESProducer.TruncatePixelCharge = cms.bool(
False)
342 process.PixelCPEGenericESProducer.IrradiationBiasCorrection =
False
343 process.PixelCPEGenericESProducer.DoCosmics =
False
345 process.siPixelRecHits.CPE = cms.string(
'PixelCPEGeneric')
347 process.mergedDuplicateTracks.TTRHBuilder =
'WithTrackAngle'
348 process.ctfWithMaterialTracks.TTRHBuilder =
'WithTrackAngle'
349 process.muonSeededSeedsInOut.TrackerRecHitBuilder=cms.string(
'WithTrackAngle')
350 process.muonSeededTracksInOut.TTRHBuilder=cms.string(
'WithTrackAngle')
351 process.muonSeededTracksOutIn.TTRHBuilder=cms.string(
'WithTrackAngle')
352 process.muons1stStep.TrackerKinkFinderParameters.TrackerRecHitBuilder=cms.string(
'WithTrackAngle')
353 process.regionalCosmicTracks.TTRHBuilder=cms.string(
'WithTrackAngle')
354 process.cosmicsVetoTracksRaw.TTRHBuilder=cms.string(
'WithTrackAngle')
360 process.pixeltrackerlocalreco = cms.Sequence(
361 process.siPixelClusters +
362 process.siPixelRecHits
364 process.clusterSummaryProducer.pixelClusters =
"siPixelClusters"
365 process.reconstruction.replace(process.MeasurementTrackerEventPreSplitting, process.MeasurementTrackerEvent)
366 process.reconstruction.replace(process.siPixelClusterShapeCachePreSplitting, process.siPixelClusterShapeCache)
370 process.reconstruction.replace(process.standalonemuontracking,
371 process.standalonemuontracking+process.recopixelvertexing)
372 process.initialStepSelector.vertices =
"pixelVertices"
373 process.highPtTripletStepSelector.vertices =
"pixelVertices"
374 process.lowPtQuadStepSelector.vertices =
"pixelVertices"
375 process.lowPtTripletStepSelector.vertices =
"pixelVertices"
376 process.detachedQuadStepSelector.vertices =
"pixelVertices"
377 process.mixedTripletStepSelector.vertices =
"pixelVertices"
378 process.pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.VertexCollection =
"pixelVertices"
379 process.pixelPairStepSelector.vertices =
"pixelVertices"
380 process.tobTecStepSelector.vertices =
"pixelVertices"
381 process.muonSeededTracksInOutSelector.vertices =
"pixelVertices"
382 process.muonSeededTracksOutInSelector.vertices =
"pixelVertices"
383 process.duplicateTrackClassifier.vertices =
"pixelVertices"
384 process.convStepSelector.vertices =
"pixelVertices"
385 process.ak4CaloJetsForTrk.srcPVs =
"pixelVertices"
386 process.muonSeededTracksOutInDisplacedClassifier.vertices =
"pixelVertices"
387 process.duplicateDisplacedTrackClassifier.vertices =
"pixelVertices"
390 process.pixelTracks.SeedMergerPSet = cms.PSet(
391 layerList = cms.PSet(refToPSet_ = cms.string(
'PixelSeedMergerQuadruplets')),
392 addRemainingTriplets = cms.bool(
False),
393 mergeTriplets = cms.bool(
True),
394 ttrhBuilderLabel = cms.string(
'PixelTTRHBuilderWithoutAngle')
396 process.pixelTracks.FilterPSet.chi2 = cms.double(50.0)
397 process.pixelTracks.FilterPSet.tipMax = cms.double(0.05)
398 process.pixelTracks.RegionFactoryPSet.RegionPSet.originRadius = cms.double(0.02)
399 process.templates.DoLorentz=
False
400 process.templates.LoadTemplatesFromDB = cms.bool(
False)
401 process.PixelCPEGenericESProducer.useLAWidthFromDB = cms.bool(
False)
406 process.preDuplicateMergingDisplacedTracks.inputClassifiers.remove(
"muonSeededTracksInOutClassifier")
407 process.preDuplicateMergingDisplacedTracks.trackProducers.remove(
"muonSeededTracksInOut")
def customise_pixelMixing_PU
def customise_condOverRides
def customise_Validation_Trackingonly
def customise_trackMon_IterativeTracking_PHASE1PU70
Phase1 PU70.
def add_detailed_pixel_dqm
def customise_trackMon_IterativeTracking_PHASE1PU140
Phase1 PU140.