1 from __future__
import print_function
2 import FWCore.ParameterSet.Config
as cms
7 from L1Trigger.L1TCommon.customsPostLS1
import customiseSimL1EmulatorForStage1
11 from SLHCUpgradeSimulations.Configuration.muonCustoms
import customise_csc_PostLS1
15 from SLHCUpgradeSimulations.Configuration.fastSimCustoms
import customise_fastSimPostLS1
19 if hasattr(process,
'g4SimHits'):
21 if hasattr(process,
'DigiToRaw'):
23 if hasattr(process,
'RawToDigi'):
25 if hasattr(process,
'reconstruction'):
27 if hasattr(process,
'digitisation_step')
or ( hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')):
29 if hasattr(process,
'HLTSchedule'):
31 if hasattr(process,
'L1simulation_step'):
33 if hasattr(process,
'dqmoffline_step'):
35 if hasattr(process,
'dqmHarvesting'):
37 if hasattr(process,
'validation_step'):
39 if hasattr(process,
'datamixing_step'):
46 if displayDeprecationWarning :
49 # -- Warning! You are using a deprecated customisation function. --
51 # It will probably run fine, but the customisations you are getting may be out of date.
52 # You should update your configuration file by
54 # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1" option
55 # 2) add the option "--era Run2_25ns"
56 # If using a pre-made configuration file:
57 # 1) remove or comment out the "process = customisePostLS1(process)" line.
58 # 2) add "from Configuration.Eras.Era_Run2_25ns_cff import Run2_25ns" to the TOP of the config file (above
59 # the process declaration).
60 # 3) add "Run2_25ns" as a parameter to the process object, e.g. "process = cms.Process('HLT',Run2_25ns)"
62 # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras
69 if hasattr(process,
'digitisation_step'):
71 if hasattr(process,
'dqmoffline_step'):
83 if hasattr(process,
'digitisation_step'):
90 if displayDeprecationWarning :
93 # -- Warning! You are using a deprecated customisation function. --
95 # It will probably run fine, but the customisations you are getting may be out of date.
96 # You should update your configuration file by
98 # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1_50ns" option
99 # 2) add the option "--era Run2_50ns"
100 # If using a pre-made configuration file:
101 # 1) remove or comment out the "process = customisePostLS1_50ns(process)" line.
102 # 2) add "from Configuration.Eras.Era_Run2_50ns_cff import Run2_50ns" to the TOP of the config file (above
103 # the process declaration).
104 # 3) add "Run2_50ns" as a parameter to the process object, e.g. "process = cms.Process('HLT',Run2_50ns)"
106 # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras
114 if hasattr(process,
'digitisation_step'):
121 if displayDeprecationWarning :
124 # -- Warning! You are using a deprecated customisation function. --
126 # It will probably run fine, but the customisations you are getting may be out of date.
127 # You should update your configuration file by
128 # If using cmsDriver:
129 # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1_HI" option
130 # 2) add the option "--era Run2_HI"
131 # If using a pre-made configuration file:
132 # 1) remove or comment out the "process = customisePostLS1_HI(process)" line.
133 # 2) add "from Configuration.Eras.Era_Run2_HI_cff import Run2_HI" to the TOP of the config file (above
134 # the process declaration).
135 # 3) add "Run2_HI" as a parameter to the process object, e.g. "process = cms.Process('HLT',Run2_HI)"
137 # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras
145 from L1Trigger.L1TCommon.customsPostLS1
import customiseSimL1EmulatorForPostLS1_Additional_HI
157 alist=[
'RAWDEBUG',
'FEVTDEBUG',
'FEVTDEBUGHLT',
'GENRAW',
'RAWSIMHLT',
'FEVT']
160 if hasattr(process,b):
161 getattr(process,b).outputCommands.append(
'keep *_simMuonCSCDigis_*_*')
162 getattr(process,b).outputCommands.append(
'keep *_simMuonRPCDigis_*_*')
163 getattr(process,b).outputCommands.append(
'keep *_simHcalUnsuppressedDigis_*_*')
171 process.l1tCsctf.gangedME11a = cms.untracked.bool(
False)
173 if hasattr(process,
'HBHENoiseFilterResultProducer'):
174 process.HBHENoiseFilterResultProducer.IgnoreTS4TS5ifJetInLowBVRegion = cms.bool(
False)
181 process.load(
"L1Trigger.L1TCommon.l1tRawToDigi_cfi")
182 process.load(
"L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")
183 if hasattr(process,
'RawToDigi'):
184 process.L1RawToDigiSeq = cms.Sequence(process.gctDigis+process.caloStage1Digis+process.caloStage1LegacyFormatDigis)
185 process.RawToDigi.replace(process.gctDigis, process.L1RawToDigiSeq)
187 process.load(
'DQMOffline.L1Trigger.L1TriggerDqmOffline_cff')
188 if hasattr(process,
'l1tMonitorStage1Online'):
189 process.l1tRct.rctSource =
'caloStage1Digis'
190 process.l1tRctfromRCT.rctSource =
'rctDigis'
191 process.l1tPUM.regionSource = cms.InputTag(
"rctDigis")
192 process.l1tStage1Layer2.stage1_layer2_ = cms.bool(
True)
193 process.l1tStage1Layer2.gctCentralJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"cenJets")
194 process.l1tStage1Layer2.gctForwardJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"forJets")
195 process.l1tStage1Layer2.gctTauJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"tauJets")
196 process.l1tStage1Layer2.gctIsoTauJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"isoTauJets")
197 process.l1tStage1Layer2.gctEnergySumsSource = cms.InputTag(
"caloStage1LegacyFormatDigis")
198 process.l1tStage1Layer2.gctIsoEmSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"isoEm")
199 process.l1tStage1Layer2.gctNonIsoEmSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"nonIsoEm")
200 process.dqmL1ExtraParticlesStage1.etTotalSource =
'caloStage1LegacyFormatDigis'
201 process.dqmL1ExtraParticlesStage1.nonIsolatedEmSource =
'caloStage1LegacyFormatDigis:nonIsoEm'
202 process.dqmL1ExtraParticlesStage1.etMissSource =
'caloStage1LegacyFormatDigis'
203 process.dqmL1ExtraParticlesStage1.htMissSource =
'caloStage1LegacyFormatDigis'
204 process.dqmL1ExtraParticlesStage1.forwardJetSource =
'caloStage1LegacyFormatDigis:forJets'
205 process.dqmL1ExtraParticlesStage1.centralJetSource =
'caloStage1LegacyFormatDigis:cenJets'
206 process.dqmL1ExtraParticlesStage1.tauJetSource =
'caloStage1LegacyFormatDigis:tauJets'
207 process.dqmL1ExtraParticlesStage1.isolatedEmSource =
'caloStage1LegacyFormatDigis:isoEm'
208 process.dqmL1ExtraParticlesStage1.etHadSource =
'caloStage1LegacyFormatDigis'
209 process.dqmL1ExtraParticlesStage1.hfRingEtSumsSource =
'caloStage1LegacyFormatDigis'
210 process.dqmL1ExtraParticlesStage1.hfRingBitCountsSource =
'caloStage1LegacyFormatDigis'
211 process.l1ExtraDQMStage1.stage1_layer2_ = cms.bool(
True)
212 process.l1ExtraDQMStage1.L1ExtraIsoTauJetSource_ = cms.InputTag(
"dqmL1ExtraParticlesStage1",
"IsoTau")
214 if hasattr(process,
'l1Stage1HwValEmulatorMonitor'):
215 process.l1TdeRCT.rctSourceData =
'caloStage1Digis'
216 process.l1TdeRCTfromRCT.rctSourceData =
'rctDigis'
217 process.l1compareforstage1.GCTsourceData = cms.InputTag(
"caloStage1LegacyFormatDigis")
218 process.l1compareforstage1.GCTsourceEmul = cms.InputTag(
"valCaloStage1LegacyFormatDigis")
219 process.l1compareforstage1.stage1_layer2_ = cms.bool(
True)
220 process.valStage1GtDigis.GctInputTag =
'caloStage1LegacyFormatDigis'
235 process.g4SimHits.HFShowerLibrary.FileName =
'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root'
240 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers'):
241 if hasattr(process.mix.digitizers,
'hcal')
and hasattr(process.mix.digitizers.hcal,
'ho'):
242 process.mix.digitizers.hcal.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
243 process.mix.digitizers.hcal.ho.siPMCode = cms.int32(1)
244 process.mix.digitizers.hcal.ho.pixels = cms.int32(2500)
245 process.mix.digitizers.hcal.ho.doSiPMSmearing = cms.bool(
False)
246 if hasattr(process.mix.digitizers,
'hcal')
and hasattr(process.mix.digitizers.hcal,
'hf1'):
247 process.mix.digitizers.hcal.hf1.samplingFactor = cms.double(0.60)
248 if hasattr(process.mix.digitizers,
'hcal')
and hasattr(process.mix.digitizers.hcal,
'hf2'):
249 process.mix.digitizers.hcal.hf2.samplingFactor = cms.double(0.60)
253 if hasattr(process,
'mixData'):
254 if hasattr(process.mixData,
'ho'):
255 process.mixData.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
256 process.mixData.ho.siPMCode = cms.int32(1)
257 process.mixData.ho.pixels = cms.int32(2500)
258 process.mixData.ho.doSiPMSmearing = cms.bool(
False)
259 if hasattr(process.mixData,
'hf1'):
260 process.mixData.hf1.samplingFactor = cms.double(0.60)
261 if hasattr(process.mixData,
'hf2'):
262 process.mixData.hf2.samplingFactor = cms.double(0.60)
267 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers'):
268 if hasattr(process.mix.digitizers,
'pixel'):
270 process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(246.4)
271 process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
293 process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
327 process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
373 if hasattr(process,
'mixData'):
375 process.mixData.theInstLumiScaleFactor = cms.double(246.4)
376 process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
398 process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
432 process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
482 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers'):
483 if hasattr(process.mix.digitizers,
'pixel'):
485 process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(364)
486 process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
508 process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
542 process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
588 process.mix.digitizers.pixel.theModuleEfficiency_BPix1 = cms.vdouble(
594 process.mix.digitizers.pixel.theModuleEfficiency_BPix2 = cms.vdouble(
600 process.mix.digitizers.pixel.theModuleEfficiency_BPix3 = cms.vdouble(
606 process.mix.digitizers.pixel.thePUEfficiency_BPix1 = cms.vdouble(
612 process.mix.digitizers.pixel.thePUEfficiency_BPix2 = cms.vdouble(
618 process.mix.digitizers.pixel.thePUEfficiency_BPix3 = cms.vdouble(
624 if hasattr(process,
'mixData'):
626 process.mixData.theInstLumiScaleFactor = cms.double(364)
627 process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
649 process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
683 process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
729 process.mixData.theModuleEfficiency_BPix1 = cms.vdouble(
735 process.mixData.theModuleEfficiency_BPix2 = cms.vdouble(
741 process.mixData.theModuleEfficiency_BPix3 = cms.vdouble(
747 process.mixData.thePUEfficiency_BPix1 = cms.vdouble(
753 process.mixData.thePUEfficiency_BPix2 = cms.vdouble(
759 process.mixData.thePUEfficiency_BPix3 = cms.vdouble(
773 if hasattr(process,
'gtEvmDigis'):
774 process.RawToDigi.remove(process.gtEvmDigis)
788 if hasattr(process,
'particleFlowRecHitHO'):
789 for prod
in process.particleFlowRecHitHO.producers:
790 prod.qualityTests = cms.VPSet(
792 name = cms.string(
"PFRecHitQTestThreshold"),
793 threshold = cms.double(0.05)
796 name = cms.string(
"PFRecHitQTestHCALChannel"),
797 maxSeverities = cms.vint32(11),
798 cleaningThresholds = cms.vdouble(0.0),
799 flags = cms.vstring(
'Standard')
805 for p
in process.particleFlowClusterHO.seedFinder.thresholdsByDetector:
806 p.seedingThreshold = cms.double(0.08)
808 for p
in process.particleFlowClusterHO.initialClusteringStep.thresholdsByDetector:
809 p.gatheringThreshold = cms.double(0.05)
811 for p
in process.particleFlowClusterHO.pfClusterBuilder.recHitEnergyNorms:
812 p.recHitEnergyNorm = cms.double(0.05)
814 process.particleFlowClusterHO.pfClusterBuilder.positionCalc.logWeightDenominator = cms.double(0.05)
815 process.particleFlowClusterHO.pfClusterBuilder.allCellsPositionCalc.logWeightDenominator = cms.double(0.05)
818 if hasattr(process,
'muonDetIdAssociator'):
819 process.muonDetIdAssociator.includeBadChambers = cms.bool(
True)
833 alist=[
'AODSIM',
'RECOSIM',
'FEVTSIM',
'FEVTDEBUG',
'FEVTDEBUGHLT',
'RECODEBUG',
'RAWRECOSIMHLT',
'RAWRECODEBUGHLT']
836 if hasattr(process,b):
837 getattr(process,b).outputCommands.append(
'keep *_simMuonCSCDigis_*_*')
838 getattr(process,b).outputCommands.append(
'keep *_simMuonRPCDigis_*_*')
839 getattr(process,b).outputCommands.append(
'keep *_simHcalUnsuppressedDigis_*_*')
840 getattr(process,b).outputCommands.append(
'keep *_rawDataCollector_*_*')