CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
phase1TkCustoms Namespace Reference

Functions

def add_detailed_pixel_dqm
 
def customise
 
def customise_condOverRides
 
def customise_Digi
 
def customise_DigiToRaw
 
def customise_DQM
 
def customise_harvesting
 
def customise_RawToDigi
 
def customise_Reco
 
def customise_Validation
 
def customise_Validation_Trackingonly
 
def remove_pixel_ineff
 

Function Documentation

def phase1TkCustoms.add_detailed_pixel_dqm (   process)

Definition at line 297 of file phase1TkCustoms.py.

298 def add_detailed_pixel_dqm(process):
299  #enable modOn
300  process.SiPixelRawDataErrorSource.modOn = cms.untracked.bool(True)
301  process.SiPixelDigiSource.modOn = cms.untracked.bool(True)
302  process.SiPixelClusterSource.modOn = cms.untracked.bool(True)
303  process.SiPixelRecHitSource.modOn = cms.untracked.bool(True)
304  process.SiPixelTrackResidualSource.modOn = cms.untracked.bool(True)
305  process.SiPixelHitEfficiencySource.modOn = cms.untracked.bool(True)
306 
307  return process
308 
def phase1TkCustoms.customise (   process)

Definition at line 9 of file phase1TkCustoms.py.

References customise_condOverRides(), customise_Digi(), customise_DigiToRaw(), customise_DQM(), customise_harvesting(), customise_RawToDigi(), customise_Reco(), and customise_Validation().

9 
10 def customise(process):
11  if hasattr(process,'DigiToRaw'):
12  process=customise_DigiToRaw(process)
13  if hasattr(process,'RawToDigi'):
14  process=customise_RawToDigi(process)
15  n=0
16  if hasattr(process,'reconstruction') or hasattr(process,'dqmoffline_step'):
17  if hasattr(process,'mix'):
18  if hasattr(process.mix,'input'):
19  n=process.mix.input.nbPileupEvents.averageNumber.value()
20  else:
21  print 'phase1TkCustoms requires a --pileup option to cmsDriver to run the reconstruction/dqm'
22  print 'Please provide one!'
23  sys.exit(1)
24  if hasattr(process,'reconstruction'):
25  process=customise_Reco(process,float(n))
26 
27  if hasattr(process,'digitisation_step'):
28  process=customise_Digi(process)
29  if hasattr(process,'dqmoffline_step'):
30  process=customise_DQM(process,n)
31  if hasattr(process,'dqmHarvesting'):
32  process=customise_harvesting(process)
33  if hasattr(process,'validation_step'):
34  process=customise_Validation(process)
35  process=customise_condOverRides(process)
36 
37  return process
def phase1TkCustoms.customise_condOverRides (   process)

Definition at line 283 of file phase1TkCustoms.py.

Referenced by customise().

284 def customise_condOverRides(process):
285 # process.trackerTopologyConstants.pxb_layerStartBit = cms.uint32(20)
286 # process.trackerTopologyConstants.pxb_ladderStartBit = cms.uint32(12)
287 # process.trackerTopologyConstants.pxb_moduleStartBit = cms.uint32(2)
288 # process.trackerTopologyConstants.pxb_layerMask = cms.uint32(15)
289 # process.trackerTopologyConstants.pxb_ladderMask = cms.uint32(255)
290 # process.trackerTopologyConstants.pxb_moduleMask = cms.uint32(1023)
291 # process.trackerTopologyConstants.pxf_diskStartBit = cms.uint32(18)
292 # process.trackerTopologyConstants.pxf_bladeStartBit = cms.uint32(12)
293 # process.trackerTopologyConstants.pxf_panelStartBit = cms.uint32(10)
294 # process.trackerTopologyConstants.pxf_moduleMask = cms.uint32(255)
295  process.load('SLHCUpgradeSimulations.Geometry.fakeConditions_Phase1_cff')
296  return process
def phase1TkCustoms.customise_Digi (   process)

Definition at line 56 of file phase1TkCustoms.py.

References customise_mixing.customise_pixelMixing_PU().

Referenced by customise().

56 
57 def customise_Digi(process):
58  # these were migrated in #12275
59  if eras.phase1Pixel.isChosen():
60  return process
61 
62  process.mix.digitizers.pixel.MissCalibrate = False
63  process.mix.digitizers.pixel.LorentzAngle_DB = False
64  process.mix.digitizers.pixel.killModules = False
65  process.mix.digitizers.pixel.useDB = False
66  process.mix.digitizers.pixel.DeadModules_DB = False
67  process.mix.digitizers.pixel.NumPixelBarrel = cms.int32(4)
68  process.mix.digitizers.pixel.NumPixelEndcap = cms.int32(3)
69  process.mix.digitizers.pixel.ThresholdInElectrons_FPix = cms.double(2000.0)
70  process.mix.digitizers.pixel.ThresholdInElectrons_BPix = cms.double(2000.0)
71  process.mix.digitizers.pixel.ThresholdInElectrons_BPix_L1 = cms.double(2000.0)
72  process.mix.digitizers.pixel.thePixelColEfficiency_BPix1 = cms.double(0.999)
73  process.mix.digitizers.pixel.thePixelColEfficiency_BPix2 = cms.double(0.999)
74  process.mix.digitizers.pixel.thePixelColEfficiency_BPix3 = cms.double(0.999)
75  process.mix.digitizers.pixel.thePixelColEfficiency_BPix4 = cms.double(0.999)
76  process.mix.digitizers.pixel.thePixelEfficiency_BPix1 = cms.double(0.999)
77  process.mix.digitizers.pixel.thePixelEfficiency_BPix2 = cms.double(0.999)
78  process.mix.digitizers.pixel.thePixelEfficiency_BPix3 = cms.double(0.999)
79  process.mix.digitizers.pixel.thePixelEfficiency_BPix4 = cms.double(0.999)
80  process.mix.digitizers.pixel.thePixelChipEfficiency_BPix1 = cms.double(0.999)
81  process.mix.digitizers.pixel.thePixelChipEfficiency_BPix2 = cms.double(0.999)
82  process.mix.digitizers.pixel.thePixelChipEfficiency_BPix3 = cms.double(0.999)
83  process.mix.digitizers.pixel.thePixelChipEfficiency_BPix4 = cms.double(0.999)
84  process.mix.digitizers.pixel.thePixelColEfficiency_FPix1 = cms.double(0.999)
85  process.mix.digitizers.pixel.thePixelColEfficiency_FPix2 = cms.double(0.999)
86  process.mix.digitizers.pixel.thePixelColEfficiency_FPix3 = cms.double(0.999)
87  process.mix.digitizers.pixel.thePixelEfficiency_FPix1 = cms.double(0.999)
88  process.mix.digitizers.pixel.thePixelEfficiency_FPix2 = cms.double(0.999)
89  process.mix.digitizers.pixel.thePixelEfficiency_FPix3 = cms.double(0.999)
90  process.mix.digitizers.pixel.thePixelChipEfficiency_FPix1 = cms.double(0.999)
91  process.mix.digitizers.pixel.thePixelChipEfficiency_FPix2 = cms.double(0.999)
92  process.mix.digitizers.pixel.thePixelChipEfficiency_FPix3 = cms.double(0.999)
93 # something broken in the configs above - turn off for now
94  process.mix.digitizers.pixel.AddPixelInefficiency = cms.bool(False)
95 
96  process=customise_pixelMixing_PU(process)
97  return process
98 
99 
# DQM steps change
def phase1TkCustoms.customise_DigiToRaw (   process)

Definition at line 38 of file phase1TkCustoms.py.

Referenced by customise().

38 
39 def customise_DigiToRaw(process):
40  # These were migrated in #12361
41  if eras.phase1Pixel.isChosen():
42  return process
43 
44  process.digi2raw_step.remove(process.siPixelRawData)
45  process.digi2raw_step.remove(process.castorRawData)
46  return process
def phase1TkCustoms.customise_DQM (   process,
  pileup 
)

Definition at line 100 of file phase1TkCustoms.py.

References customizeTrackingMonitorSeedNumber.customise_trackMon_IterativeTracking_PHASE1PU140(), and customizeTrackingMonitorSeedNumber.customise_trackMon_IterativeTracking_PHASE1PU70().

Referenced by customise().

101 def customise_DQM(process,pileup):
102  # FIXME
103  #
104  # These should be added back once somebody checks that they work,
105  # and those that do not, get fixed
106  #
107  # The customizations are done here instead of in the central files
108  # with era because they are temporary
109  process.DQMOfflinePrePOG.remove(process.TrackingDQMSourceTier0)
110  process.DQMOfflinePrePOG.remove(process.muonMonitors)
111  process.DQMOfflinePrePOG.remove(process.jetMETDQMOfflineSource)
112  process.DQMOfflinePrePOG.remove(process.egammaDQMOffline)
113  process.DQMOfflinePrePOG.remove(process.triggerOfflineDQMSource)
114  process.DQMOfflinePrePOG.remove(process.bTagPlotsDATA)
115  process.DQMOfflinePrePOG.remove(process.alcaBeamMonitor)
116  process.DQMOfflinePrePOG.remove(process.dqmPhysics)
117  process.DQMOfflinePrePOG.remove(process.produceDenoms)
118  process.DQMOfflinePrePOG.remove(process.pfTauRunDQMValidation)
119 
120  process.DQMOffline.remove(process.DQMOfflinePreDPG)
121  process.DQMOffline.remove(process.HLTMonitoring)
122 
123  process.DQMOfflineTracking.remove(process.TrackingDQMSourceTier0Common)
124 
125  # Ok, this customization does not work currently at all
126  # Need to be fixed before the tracking DQM can be enabled
127  return process
128 
129  # We cut down the number of iterative tracking steps
130  if not eras.phase1Pixel.isChosen(): # these were migrated in #12459
131  process.dqmoffline_step.remove(process.muonAnalyzer)
132  #process.dqmoffline_step.remove(process.jetMETAnalyzer)
133 
134  #put isUpgrade flag==true
135  if not eras.phase1Pixel.isChosen(): # these were migrated in #12459
136  process.SiPixelRawDataErrorSource.isUpgrade = cms.untracked.bool(True)
137  process.SiPixelDigiSource.isUpgrade = cms.untracked.bool(True)
138  process.SiPixelClusterSource.isUpgrade = cms.untracked.bool(True)
139  process.SiPixelRecHitSource.isUpgrade = cms.untracked.bool(True)
140  process.SiPixelTrackResidualSource.isUpgrade = cms.untracked.bool(True)
141  process.SiPixelHitEfficiencySource.isUpgrade = cms.untracked.bool(True)
142 
143  from DQM.TrackingMonitor.customizeTrackingMonitorSeedNumber import customise_trackMon_IterativeTracking_PHASE1PU140
144  from DQM.TrackingMonitor.customizeTrackingMonitorSeedNumber import customise_trackMon_IterativeTracking_PHASE1PU70
145 
146  if pileup>100:
148  else:
150  return process
def phase1TkCustoms.customise_harvesting (   process)

Definition at line 237 of file phase1TkCustoms.py.

Referenced by customise().

238 def customise_harvesting(process):
239  # FIXME
240  #
241  # These should be added back once somebody checks that they work,
242  # and those that do not, get fixed
243  #
244  # The customizations are done here instead of in the central files
245  # with era because they are temporary
246  process.DQMOffline_SecondStep.remove(process.DQMOffline_SecondStep_PreDPG)
247  process.DQMOffline_SecondStep.remove(process.DQMOffline_SecondStep_PrePOG)
248  process.DQMOffline_SecondStep.remove(process.HLTMonitoringClient)
249 
250  process.DQMHarvestTracking.remove(process.TrackingOfflineDQMClient)
251 
252  process.postValidation.remove(process.recoMuonPostProcessors)
253  process.postValidation.remove(process.MuIsoValPostProcessor)
254  process.postValidation.remove(process.calotowersPostProcessor)
255  process.postValidation.remove(process.hcalSimHitsPostProcessor)
256  process.postValidation.remove(process.hcaldigisPostProcessor)
257  process.postValidation.remove(process.hcalrechitsPostProcessor)
258  process.postValidation.remove(process.electronPostValidationSequence)
259  process.postValidation.remove(process.photonPostProcessor)
260  process.postValidation.remove(process.pfJetClient)
261  process.postValidation.remove(process.pfMETClient)
262  process.postValidation.remove(process.pfJetResClient)
263  process.postValidation.remove(process.pfElectronClient)
264  process.postValidation.remove(process.rpcRecHitPostValidation_step)
265  process.postValidation.remove(process.runTauEff)
266  process.postValidation.remove(process.makeBetterPlots)
267  process.postValidation.remove(process.bTagCollectorSequenceMCbcl)
268  process.postValidation.remove(process.METPostProcessor)
269  process.postValidation_preprod.remove(process.recoMuonPostProcessors)
270  process.postValidation_preprod.remove(process.MuIsoValPostProcessor)
271 
272  process.hltpostvalidation = cms.Sequence()
273 
274  # these were migrated in #12440
275  if eras.phase1Pixel.isChosen():
276  return process
277 
278  process.dqmHarvesting.remove(process.dataCertificationJetMET)
279  #######process.dqmHarvesting.remove(process.sipixelEDAClient)
280  process.sipixelEDAClient.isUpgrade = cms.untracked.bool(True)
281  process.dqmHarvesting.remove(process.sipixelCertification)
282  return (process)
def phase1TkCustoms.customise_RawToDigi (   process)

Definition at line 47 of file phase1TkCustoms.py.

Referenced by customise().

47 
48 def customise_RawToDigi(process):
49  # These were migrated in #12361
50  if eras.phase1Pixel.isChosen():
51  return process
52 
53  process.raw2digi_step.remove(process.siPixelDigis)
54  process.raw2digi_step.remove(process.castorDigis)
55  return process
def phase1TkCustoms.customise_Reco (   process,
  pileup 
)

Definition at line 316 of file phase1TkCustoms.py.

Referenced by customise().

317 def customise_Reco(process,pileup):
318 
319  #this code supports either 70 or 140 pileup configurations - should fix as to support 0
320  nPU=70
321  if pileup>100: nPU=140
322 
323  #use with latest pixel geometry
324  process.ClusterShapeHitFilterESProducer.PixelShapeFile = cms.string('RecoPixelVertexing/PixelLowPtUtilities/data/pixelShape_Phase1Tk.par')
325  # Need this line to stop error about missing siPixelDigis.
326  process.MeasurementTrackerEvent.inactivePixelDetectorLabels = cms.VInputTag()
327 
328  # new layer list (3/4 pixel seeding) in InitialStep and pixelTracks
329  process.PixelLayerTriplets.layerList = cms.vstring( 'BPix1+BPix2+BPix3',
330  'BPix2+BPix3+BPix4',
331  'BPix1+BPix3+BPix4',
332  'BPix1+BPix2+BPix4',
333  'BPix2+BPix3+FPix1_pos',
334  'BPix2+BPix3+FPix1_neg',
335  'BPix1+BPix2+FPix1_pos',
336  'BPix1+BPix2+FPix1_neg',
337  'BPix2+FPix1_pos+FPix2_pos',
338  'BPix2+FPix1_neg+FPix2_neg',
339  'BPix1+FPix1_pos+FPix2_pos',
340  'BPix1+FPix1_neg+FPix2_neg',
341  'FPix1_pos+FPix2_pos+FPix3_pos',
342  'FPix1_neg+FPix2_neg+FPix3_neg' )
343 
344  # New tracking. This is really ugly because it redefines globalreco and reconstruction.
345  # It can be removed if change one line in Configuration/StandardSequences/python/Reconstruction_cff.py
346  # from RecoTracker_cff.py to RecoTrackerPhase1PU140_cff.py
347 
348  # remove all the tracking first
349  itIndex=process.globalreco_tracking.index(process.trackingGlobalReco)
350  grIndex=process.globalreco.index(process.globalreco_tracking)
351 
352  process.globalreco.remove(process.globalreco_tracking)
353  process.globalreco_tracking.remove(process.iterTracking)
354  process.globalreco_tracking.remove(process.electronSeedsSeq)
355  process.reconstruction_fromRECO.remove(process.trackingGlobalReco)
356  process.reconstruction_fromRECO.remove(process.electronSeedsSeq)
357  process.reconstruction_fromRECO.remove(process.initialStepSeedLayers)
358  process.reconstruction_fromRECO.remove(process.initialStepSeeds)
359  process.reconstruction_fromRECO.remove(process.initialStepClassifier1)
360  process.reconstruction_fromRECO.remove(process.initialStepClassifier2)
361  process.reconstruction_fromRECO.remove(process.initialStepClassifier3)
362  process.reconstruction_fromRECO.remove(initialStepTrackCandidates)
363  process.reconstruction_fromRECO.remove(initialStepTracks)
364  process.reconstruction_fromRECO.remove(lowPtTripletStepClusters)
365  process.reconstruction_fromRECO.remove(lowPtTripletStepSeedLayers)
366  process.reconstruction_fromRECO.remove(lowPtTripletStepSeeds)
367  process.reconstruction_fromRECO.remove(lowPtTripletStep)
368  process.reconstruction_fromRECO.remove(lowPtTripletStepTrackCandidates)
369  process.reconstruction_fromRECO.remove(lowPtTripletStepTracks)
370 
371  process.reconstruction_fromRECO.remove(mixedTripletStep)
372  process.reconstruction_fromRECO.remove(mixedTripletStepClusters)
373  process.reconstruction_fromRECO.remove(mixedTripletStepSeedLayersA)
374  process.reconstruction_fromRECO.remove(mixedTripletStepSeedLayersB)
375  process.reconstruction_fromRECO.remove(mixedTripletStepSeeds)
376  process.reconstruction_fromRECO.remove(mixedTripletStepSeedsA)
377  process.reconstruction_fromRECO.remove(mixedTripletStepSeedsB)
378  process.reconstruction_fromRECO.remove(mixedTripletStepClassifier1)
379  process.reconstruction_fromRECO.remove(mixedTripletStepClassifier2)
380  process.reconstruction_fromRECO.remove(mixedTripletStepTrackCandidates)
381  process.reconstruction_fromRECO.remove(mixedTripletStepTracks)
382 
383  process.reconstruction_fromRECO.remove(pixelPairStepClusters)
384  process.reconstruction_fromRECO.remove(pixelPairStepSeeds)
385  process.reconstruction_fromRECO.remove(pixelPairStepSeedLayers)
386  process.reconstruction_fromRECO.remove(pixelPairStep)
387  process.reconstruction_fromRECO.remove(pixelPairStepTrackCandidates)
388  process.reconstruction_fromRECO.remove(pixelPairStepTracks)
389 
390  process.reconstruction_fromRECO.remove(tobTecStepClusters)
391  process.reconstruction_fromRECO.remove(tobTecStepSeeds)
392  #process.reconstruction_fromRECO.remove(tobTecStepSeedLayers)
393  process.reconstruction_fromRECO.remove(tobTecStepClassifier1)
394  process.reconstruction_fromRECO.remove(tobTecStepClassifier2)
395  process.reconstruction_fromRECO.remove(tobTecStep)
396  process.reconstruction_fromRECO.remove(tobTecStepTrackCandidates)
397  process.reconstruction_fromRECO.remove(tobTecStepTracks)
398 
399  # Yes, needs to be done twice for InOut...
400  process.reconstruction_fromRECO.remove(process.muonSeededSeedsInOut)
401  process.reconstruction_fromRECO.remove(process.muonSeededSeedsInOut)
402  process.reconstruction_fromRECO.remove(process.muonSeededTrackCandidatesInOut)
403  process.reconstruction_fromRECO.remove(process.muonSeededTrackCandidatesInOut)
404  process.reconstruction_fromRECO.remove(process.muonSeededTracksInOut)
405  process.reconstruction_fromRECO.remove(process.muonSeededTracksInOut)
406  process.reconstruction_fromRECO.remove(process.muonSeededSeedsOutIn)
407  process.reconstruction_fromRECO.remove(process.muonSeededTrackCandidatesOutIn)
408  process.reconstruction_fromRECO.remove(process.muonSeededTracksOutIn)
409  # Why are these modules in this sequence (isn't iterTracking enough)?
410  process.muonSeededStepCoreDisplaced.remove(process.muonSeededSeedsInOut)
411  process.muonSeededStepCoreDisplaced.remove(process.muonSeededTrackCandidatesInOut)
412  process.muonSeededStepCoreDisplaced.remove(process.muonSeededTracksInOut)
413  process.muonSeededStepCoreDisplaced.remove(process.muonSeededSeedsOutIn)
414  process.muonSeededStepExtraDisplaced.remove(process.muonSeededTracksInOutClassifier)
415 
416  process.reconstruction_fromRECO.remove(process.convClusters)
417  process.reconstruction_fromRECO.remove(process.convLayerPairs)
418  process.reconstruction_fromRECO.remove(process.convStepSelector)
419  process.reconstruction_fromRECO.remove(process.convTrackCandidates)
420  process.reconstruction_fromRECO.remove(process.convStepTracks)
421  process.reconstruction_fromRECO.remove(process.photonConvTrajSeedFromSingleLeg)
422 
423  process.reconstruction_fromRECO.remove(process.preDuplicateMergingGeneralTracks)
424 
425  # Needed to make the loading of recoFromSimDigis_cff below to work
426  process.InitialStepPreSplitting.remove(siPixelClusters)
427 
428  del process.iterTracking
429  del process.ckftracks
430  del process.ckftracks_woBH
431  del process.ckftracks_wodEdX
432  del process.ckftracks_plus_pixelless
433  del process.trackingGlobalReco
434  del process.electronSeedsSeq
435  del process.InitialStep
436  del process.LowPtTripletStep
437  del process.PixelPairStep
438  del process.DetachedTripletStep
439  del process.MixedTripletStep
440  del process.PixelLessStep
441  del process.TobTecStep
442  del process.earlyGeneralTracks
443  del process.muonSeededStep
444  del process.muonSeededStepCore
445  del process.muonSeededStepDebug
446  del process.muonSeededStepDebugDisplaced
447  del process.ConvStep
448  # add the correct tracking back in
449  process.load("RecoTracker.Configuration.RecoTrackerPhase1PU"+str(nPU)+"_cff")
450 
451  process.globalreco_tracking.insert(itIndex,process.trackingGlobalReco)
452  process.globalreco.insert(grIndex,process.globalreco_tracking)
453  #Note process.reconstruction_fromRECO is broken
454 
455  # End of new tracking configuration which can be removed if new Reconstruction is used.
456 
457 
458  process.reconstruction.remove(process.castorreco)
459  process.reconstruction.remove(process.CastorTowerReco)
460  process.reconstruction.remove(process.ak5CastorJets)
461  process.reconstruction.remove(process.ak5CastorJetID)
462  process.reconstruction.remove(process.ak7CastorJets)
463  #process.reconstruction.remove(process.ak7BasicJets)
464  process.reconstruction.remove(process.ak7CastorJetID)
465 
466  #the quadruplet merger configuration
467  process.load("RecoPixelVertexing.PixelTriplets.quadrupletseedmerging_cff")
468  process.PixelSeedMergerQuadruplets.BPix.TTRHBuilder = cms.string("PixelTTRHBuilderWithoutAngle" )
469  process.PixelSeedMergerQuadruplets.BPix.HitProducer = cms.string("siPixelRecHits" )
470  process.PixelSeedMergerQuadruplets.FPix.TTRHBuilder = cms.string("PixelTTRHBuilderWithoutAngle" )
471  process.PixelSeedMergerQuadruplets.FPix.HitProducer = cms.string("siPixelRecHits" )
472 
473  # Need these until pixel templates are used
474  process.load("SLHCUpgradeSimulations.Geometry.recoFromSimDigis_cff")
475  # PixelCPEGeneric #
476  process.PixelCPEGenericESProducer.Upgrade = cms.bool(True)
477  process.PixelCPEGenericESProducer.UseErrorsFromTemplates = cms.bool(False)
478  process.PixelCPEGenericESProducer.LoadTemplatesFromDB = cms.bool(False)
479  process.PixelCPEGenericESProducer.TruncatePixelCharge = cms.bool(False)
480  process.PixelCPEGenericESProducer.IrradiationBiasCorrection = False
481  process.PixelCPEGenericESProducer.DoCosmics = False
482  # CPE for other steps
483  process.siPixelRecHits.CPE = cms.string('PixelCPEGeneric')
484  # Turn of template use in tracking (iterative steps handled inside their configs)
485  process.duplicateTrackCandidates.ttrhBuilderName = 'WithTrackAngle'
486  process.mergedDuplicateTracks.TTRHBuilder = 'WithTrackAngle'
487  process.ctfWithMaterialTracks.TTRHBuilder = 'WithTrackAngle'
488  process.muonSeededSeedsInOut.TrackerRecHitBuilder=cms.string('WithTrackAngle')
489  process.muonSeededTracksInOut.TTRHBuilder=cms.string('WithTrackAngle')
490  process.muonSeededTracksOutIn.TTRHBuilder=cms.string('WithTrackAngle')
491  process.muons1stStep.TrackerKinkFinderParameters.TrackerRecHitBuilder=cms.string('WithTrackAngle')
492  process.regionalCosmicTracks.TTRHBuilder=cms.string('WithTrackAngle')
493  process.cosmicsVetoTracksRaw.TTRHBuilder=cms.string('WithTrackAngle')
494  process.trackerDrivenElectronSeeds.TTRHBuilder = 'WithTrackAngle'
495  process.globalMuons.GLBTrajBuilderParameters.GlbRefitterParameters.TrackerRecHitBuilder = 'WithTrackAngle'
496  process.globalMuons.GLBTrajBuilderParameters.TrackTransformer.TrackerRecHitBuilder = 'WithTrackAngle'
497  process.globalMuons.GLBTrajBuilderParameters.TrackerRecHitBuilder = 'WithTrackAngle'
498  process.globalMuons.TrackLoaderParameters.TTRHBuilder = 'WithTrackAngle'
499  process.tevMuons.RefitterParameters.TrackerRecHitBuilder = 'WithTrackAngle'
500  process.tevMuons.TrackLoaderParameters.TTRHBuilder = 'WithTrackAngle'
501  process.muonSeededTracksOutInDisplaced.TTRHBuilder = 'WithTrackAngle'
502  process.duplicateDisplacedTrackCandidates.ttrhBuilderName = 'WithTrackAngle'
503  process.mergedDuplicateDisplacedTracks.TTRHBuilder = 'WithTrackAngle'
504  process.displacedGlobalMuons.GLBTrajBuilderParameters.GlbRefitterParameters.TrackerRecHitBuilder = 'WithTrackAngle'
505  process.displacedGlobalMuons.GLBTrajBuilderParameters.TrackTransformer.TrackerRecHitBuilder = 'WithTrackAngle'
506  process.displacedGlobalMuons.GLBTrajBuilderParameters.TrackerRecHitBuilder = 'WithTrackAngle'
507  process.displacedGlobalMuons.TrackLoaderParameters.TTRHBuilder = 'WithTrackAngle'
508  process.glbTrackQual.RefitterParameters.TrackerRecHitBuilder = 'WithTrackAngle'
509  process.globalSETMuons.GLBTrajBuilderParameters.GlbRefitterParameters.TrackerRecHitBuilder = 'WithTrackAngle'
510  process.globalSETMuons.GLBTrajBuilderParameters.TrackTransformer.TrackerRecHitBuilder = 'WithTrackAngle'
511  process.globalSETMuons.GLBTrajBuilderParameters.TrackerRecHitBuilder = 'WithTrackAngle'
512  process.globalSETMuons.TrackLoaderParameters.TTRHBuilder = 'WithTrackAngle'
513  # End of pixel template needed section
514 
515  # Remove, for now, the pre-cluster-splitting clustering step
516  # To be enabled later together with or after the jet core step is enabled
517  # This snippet must be after the loading of recoFromSimDigis_cff
518  process.pixeltrackerlocalreco = cms.Sequence(
519  process.siPixelClusters +
520  process.siPixelRecHits
521  )
522  process.clusterSummaryProducer.pixelClusters = "siPixelClusters"
523  process.globalreco_tracking.replace(process.MeasurementTrackerEventPreSplitting, process.MeasurementTrackerEvent)
524  process.globalreco_tracking.replace(process.siPixelClusterShapeCachePreSplitting, process.siPixelClusterShapeCache)
525 
526  # Enable, for now, pixel tracks and vertices
527  # To be removed later together with the cluster splitting
528  process.globalreco_tracking.replace(process.standalonemuontracking,
529  process.standalonemuontracking+process.recopixelvertexing)
530  process.initialStepSelector.vertices = "pixelVertices"
531  process.highPtTripletStepSelector.vertices = "pixelVertices"
532  process.lowPtQuadStepSelector.vertices = "pixelVertices"
533  process.lowPtTripletStepSelector.vertices = "pixelVertices"
534  process.detachedQuadStepSelector.vertices = "pixelVertices"
535  process.mixedTripletStepSelector.vertices = "pixelVertices"
536  process.pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.VertexCollection = "pixelVertices"
537  process.pixelPairStepSelector.vertices = "pixelVertices"
538  process.tobTecStepSelector.vertices = "pixelVertices"
539  process.muonSeededTracksInOutSelector.vertices = "pixelVertices"
540  process.muonSeededTracksOutInSelector.vertices = "pixelVertices"
541  process.duplicateTrackClassifier.vertices = "pixelVertices"
542  process.convStepSelector.vertices = "pixelVertices"
543  process.ak4CaloJetsForTrk.srcPVs = "pixelVertices"
544  process.muonSeededTracksOutInDisplacedClassifier.vertices = "pixelVertices"
545  process.duplicateDisplacedTrackClassifier.vertices = "pixelVertices"
546 
547  # Make pixelTracks use quadruplets
548  process.pixelTracks.SeedMergerPSet = cms.PSet(
549  layerList = cms.PSet(refToPSet_ = cms.string('PixelSeedMergerQuadruplets')),
550  addRemainingTriplets = cms.bool(False),
551  mergeTriplets = cms.bool(True),
552  ttrhBuilderLabel = cms.string('PixelTTRHBuilderWithoutAngle')
553  )
554  process.pixelTracks.FilterPSet.chi2 = cms.double(50.0)
555  process.pixelTracks.FilterPSet.tipMax = cms.double(0.05)
556  process.pixelTracks.RegionFactoryPSet.RegionPSet.originRadius = cms.double(0.02)
557  process.templates.DoLorentz=False
558  process.templates.LoadTemplatesFromDB = cms.bool(False)
559  process.PixelCPEGenericESProducer.useLAWidthFromDB = cms.bool(False)
560 
561  # This probably breaks badly the "displaced muon" reconstruction,
562  # but let's do it for now, until the upgrade tracking sequences
563  # are modernized
564  process.preDuplicateMergingDisplacedTracks.inputClassifiers.remove("muonSeededTracksInOutClassifier")
565  process.preDuplicateMergingDisplacedTracks.trackProducers.remove("muonSeededTracksInOut")
566 
567  return process
def phase1TkCustoms.customise_Validation (   process)

Definition at line 151 of file phase1TkCustoms.py.

Referenced by customise().

152 def customise_Validation(process):
153  # FIXME
154  #
155  # For starters, include only tracking validation
156  # The rest should be added back once somebody checks that they
157  # work, and those that do not, get fixed
158  #
159  # The customizations are done here instead of in the central files
160  # with era because they are temporary
161  process.globalPrevalidation.remove(process.photonPrevalidationSequence)
162  process.globalPrevalidation.remove(process.produceDenoms)
163  process.globalPrevalidation.remove(process.prebTagSequenceMC)
164  # With era, would modify process.globalValidation
165  process.validation.remove(process.trackerHitsValidation)
166  process.validation.remove(process.trackerDigisValidation)
167  process.validation.remove(process.trackerRecHitsValidation)
168  process.validation.remove(process.trackingTruthValid)
169  process.validation.remove(process.trackingRecHitsValid)
170  process.validation.remove(process.ecalSimHitsValidationSequence)
171  process.validation.remove(process.ecalDigisValidationSequence)
172  process.validation.remove(process.ecalRecHitsValidationSequence)
173  process.validation.remove(process.ecalClustersValidationSequence)
174  process.validation.remove(process.hcalSimHitsValidationSequence)
175  process.validation.remove(process.hcaldigisValidationSequence)
176  process.validation.remove(process.hcalSimHitStudy)
177  process.validation.remove(process.hcalRecHitsValidationSequence)
178  process.validation.remove(process.calotowersValidationSequence)
179  process.validation.remove(process.validSimHit)
180  process.validation.remove(process.muondtdigianalyzer)
181  process.validation.remove(process.cscDigiValidation)
182  process.validation.remove(process.validationMuonRPCDigis)
183  process.validation.remove(process.recoMuonValidation)
184  process.validation.remove(process.muIsoVal_seq)
185  process.validation.remove(process.muonIdValDQMSeq)
186  process.validation.remove(process.mixCollectionValidation)
187  process.validation.remove(process.JetValidation)
188  process.validation.remove(process.METValidation)
189  process.validation.remove(process.egammaValidation)
190  process.validation.remove(process.pfJetValidationSequence)
191  process.validation.remove(process.pfMETValidationSequence)
192  process.validation.remove(process.pfElectronValidationSequence)
193  process.validation.remove(process.pfJetResValidationSequence)
194  process.validation.remove(process.pfMuonValidationSequence)
195  process.validation.remove(process.rpcRecHitValidation_step)
196  process.validation.remove(process.dtLocalRecoValidation_no2D)
197  process.validation.remove(process.pfTauRunDQMValidation)
198  process.validation.remove(process.bTagPlotsMCbcl)
199  process.validation.remove(process.L1Validator)
200 
201  process.hltassociation = cms.Sequence()
202  process.hltvalidation = cms.Sequence()
203 
204  # these were migrated in #12359
205  if eras.phase1Pixel.isChosen():
206  return process
207 
208  process.validation_step.remove(process.PixelTrackingRecHitsValid)
209  # We don't run the HLT
210  process.validation_step.remove(process.HLTSusyExoVal)
211  process.validation_step.remove(process.hltHiggsValidator)
212  process.validation_step.remove(process.relvalMuonBits)
213  return process
def phase1TkCustoms.customise_Validation_Trackingonly (   process)

Definition at line 214 of file phase1TkCustoms.py.

216 
217  #To allow Tracking to perform special tracking only validation
218  process.trackValidator.label=cms.VInputTag(cms.InputTag("cutsRecoTracksHp"))
219  process.tracksValidationSelectors = cms.Sequence(process.cutsRecoTracksHp)
220  process.globalValidation.remove(process.recoMuonValidation)
221  process.validation.remove(process.recoMuonValidation)
222  process.validation_preprod.remove(process.recoMuonValidation)
223  process.validation_step.remove(process.recoMuonValidation)
224  process.validation.remove(process.globalrechitsanalyze)
225  process.validation_prod.remove(process.globalrechitsanalyze)
226  process.validation_step.remove(process.globalrechitsanalyze)
227  process.validation.remove(process.stripRecHitsValid)
228  process.validation_step.remove(process.stripRecHitsValid)
229  process.validation_step.remove(process.StripTrackingRecHitsValid)
230  process.globalValidation.remove(process.vertexValidation)
231  process.validation.remove(process.vertexValidation)
232  process.validation_step.remove(process.vertexValidation)
233  process.mix.input.nbPileupEvents.averageNumber = cms.double(0.0)
234  process.mix.minBunch = cms.int32(0)
235  process.mix.maxBunch = cms.int32(0)
236  return process
def customise_Validation_Trackingonly
def phase1TkCustoms.remove_pixel_ineff (   process)

Definition at line 309 of file phase1TkCustoms.py.

310 def remove_pixel_ineff(process):
311  if hasattr(process,'mix'):
312  process.mix.digitizers.pixel.AddPixelInefficiency = cms.bool(False)
313 
314  return process
315