CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customise_stdgeom.py
Go to the documentation of this file.
2 
3 #common stuff here
4 def customise(process):
5  process.load("SLHCUpgradeSimulations.Geometry.recoFromSimDigis_cff")
6  #this line is different
7  process.load("SLHCUpgradeSimulations.Geometry.upgradeTracking_stdgeom_cff")
8 
9  process.ctfWithMaterialTracks.TTRHBuilder = 'WithTrackAngle'
10  #this line is different
11  process.PixelCPEGenericESProducer.UseErrorsFromTemplates = cms.bool(True)
12  process.PixelCPEGenericESProducer.TruncatePixelCharge = cms.bool(False)
13  #this line is different
14  process.PixelCPEGenericESProducer.LoadTemplatesFromDB = cms.bool(True)
15  #two lines removed here
16  process.PixelCPEGenericESProducer.IrradiationBiasCorrection = False
17  process.PixelCPEGenericESProducer.DoCosmics = False
18 
19  ## CPE for other steps
20  process.siPixelRecHits.CPE = cms.string('PixelCPEGeneric')
21  process.initialStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
22  process.lowPtTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
23  process.pixelPairStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
24  process.detachedTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
25  process.mixedTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
26  process.pixelLessStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
27  process.tobTecStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
28 
29  # Need these lines to stop some errors about missing siStripDigis collections.
30  # should add them to fakeConditions_Phase1_cff
31  process.MeasurementTracker.inactiveStripDetectorLabels = cms.VInputTag()
32  process.MeasurementTracker.UseStripModuleQualityDB = cms.bool(False)
33  process.MeasurementTracker.UseStripAPVFiberQualityDB = cms.bool(False)
34  process.MeasurementTracker.UseStripStripQualityDB = cms.bool(False)
35  process.MeasurementTracker.UsePixelModuleQualityDB = cms.bool(False)
36  process.MeasurementTracker.UsePixelROCQualityDB = cms.bool(False)
37 
38  ### back to standard job commands ##################################################
39  process.DigiToRaw.remove(process.castorRawData)
40 
41  ### remove a slow module for cosmics
42  #process.reconstruction_step.remove(process.regionalCosmicCkfTrackCandidates)
43 
44  if hasattr(process,'dqmoffline_step'):
45  process.dqmoffline_step.remove(process.SiPixelTrackResidualSource)
46  process.dqmoffline_step.remove(process.jetMETAnalyzer)
47  process.dqmoffline_step.remove(process.hltMonMuBits)
48  process.dqmoffline_step.remove(process.vbtfAnalyzer)
49  process.dqmoffline_step.remove(process.hltResults)
50  process.dqmoffline_step.remove(process.egHLTOffDQMSource)
51  process.dqmoffline_step.remove(process.globalAnalyzer)
52  process.dqmoffline_step.remove(process.jetMETHLTOfflineSource)
53  ##
54  process.dqmoffline_step.remove(process.TrackerCollisionTrackMon)
55  if hasattr(process,'validation_step'):
56  process.validation_step.remove(process.hltHITval)
57  process.validation_step.remove(process.HLTSusyExoVal)
58  process.validation_step.remove(process.relvalMuonBits)
59  process.validation_step.remove(process.hltMuonValidator)
60  else:
61  ## removing large memory usage module if we don't need it
62  process.pdigi.remove(process.mergedtruth)
63 
64  return(process)
65 
66 
67 #pileup specific stuff here
68 def customise_pu15_25ns(process):
69 
70  process=customise(process)
71 
72  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_stdgeom_cff")
73 
74 ### set the number of pileup
75  process.mix.input.nbPileupEvents = cms.PSet(
76  averageNumber = cms.double(15.0)
77  )
78  return (process)
79 
80 
81 def customise_pu50_25ns(process):
82 
83  process=customise(process)
84 
85  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_stdgeom_cff")
86 
87 ### set the number of pileup
88  process.mix.input.nbPileupEvents = cms.PSet(
89  averageNumber = cms.double(50.0)
90  )
91 
92 
93 ### if doing inefficiency at <PU>=50
94  process.simSiPixelDigis.AddPixelInefficiency = 20
95  ## also for strips TIB inefficiency if we want
96  ## TIB1,2 inefficiency at 20%
97  #process.simSiStripDigis.Inefficiency = 20
98  ## TIB1,2 inefficiency at 50%
99  #process.simSiStripDigis.Inefficiency = 30
100  ## TIB1,2 inefficiency at 99% (i.e. dead)
101  #process.simSiStripDigis.Inefficiency = 40
102 
103  return (process)
return((rh^lh)&mask)