CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
customise_stdgeom.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
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 
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 
39  process.DigiToRaw.remove(process.castorRawData)
40 
41 
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 
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 
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 
88  process.mix.input.nbPileupEvents = cms.PSet(
89  averageNumber = cms.double(50.0)
90  )
91 
92 
93 
94  process.simSiPixelDigis.AddPixelInefficiency = 20
95 
102 
103  return (process)
return((rh ^ lh) &mask)
def customise_pu50_25ns(process)
def customise_pu15_25ns(process)
def customise(process)