1 import FWCore.ParameterSet.Config
as cms
3 from RecoTracker.Configuration.customiseForRunI
import customiseForRunI
8 from L1Trigger.L1TCommon.customsPostLS1
import customiseSimL1EmulatorForStage1
12 from SLHCUpgradeSimulations.Configuration.muonCustoms
import customise_csc_PostLS1
16 from SLHCUpgradeSimulations.Configuration.fastSimCustoms
import customise_fastSimPostLS1
20 if hasattr(process,
'g4SimHits'):
22 if hasattr(process,
'DigiToRaw'):
24 if hasattr(process,
'RawToDigi'):
26 if hasattr(process,
'reconstruction'):
28 if hasattr(process,
'digitisation_step')
or ( hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')):
30 if hasattr(process,
'HLTSchedule'):
32 if hasattr(process,
'L1simulation_step'):
34 if hasattr(process,
'dqmoffline_step'):
36 if hasattr(process,
'dqmHarvesting'):
38 if hasattr(process,
'validation_step'):
40 if hasattr(process,
'datamixing_step'):
47 if displayDeprecationWarning :
50 # -- Warning! You are using a deprecated customisation function. --
52 # It will probably run fine, but the customisations you are getting may be out of date.
53 # You should update your configuration file by
55 # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1" option
56 # 2) add the option "--era Run2_25ns"
57 # If using a pre-made configuration file:
58 # 1) remove or comment out the "process = customisePostLS1(process)" line.
59 # 2) add "from Configuration.StandardSequences.Eras import eras" to the TOP of the config file (above
60 # the process declaration).
61 # 3) add "eras.Run2_25ns" as a parameter to the process object, e.g. "process = cms.Process('HLT',eras.Run2_25ns)"
63 # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras
70 if hasattr(process,
'digitisation_step'):
72 if hasattr(process,
'dqmoffline_step'):
84 if hasattr(process,
'digitisation_step'):
91 if displayDeprecationWarning :
94 # -- Warning! You are using a deprecated customisation function. --
96 # It will probably run fine, but the customisations you are getting may be out of date.
97 # You should update your configuration file by
99 # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1_50ns" option
100 # 2) add the option "--era Run2_50ns"
101 # If using a pre-made configuration file:
102 # 1) remove or comment out the "process = customisePostLS1_50ns(process)" line.
103 # 2) add "from Configuration.StandardSequences.Eras import eras" to the TOP of the config file (above
104 # the process declaration).
105 # 3) add "eras.Run2_50ns" as a parameter to the process object, e.g. "process = cms.Process('HLT',eras.Run2_50ns)"
107 # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras
115 if hasattr(process,
'digitisation_step'):
122 if displayDeprecationWarning :
125 # -- Warning! You are using a deprecated customisation function. --
127 # It will probably run fine, but the customisations you are getting may be out of date.
128 # You should update your configuration file by
129 # If using cmsDriver:
130 # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1_HI" option
131 # 2) add the option "--era Run2_HI"
132 # If using a pre-made configuration file:
133 # 1) remove or comment out the "process = customisePostLS1_HI(process)" line.
134 # 2) add "from Configuration.StandardSequences.Eras import eras" to the TOP of the config file (above
135 # the process declaration).
136 # 3) add "eras.Run2_HI" as a parameter to the process object, e.g. "process = cms.Process('HLT',eras.Run2_HI)"
138 # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras
146 from L1Trigger.L1TCommon.customsPostLS1
import customiseSimL1EmulatorForPostLS1_Additional_HI
175 alist=[
'RAWDEBUG',
'FEVTDEBUG',
'FEVTDEBUGHLT',
'GENRAW',
'RAWSIMHLT',
'FEVT']
178 if hasattr(process,b):
179 getattr(process,b).outputCommands.append(
'keep *_simMuonCSCDigis_*_*')
180 getattr(process,b).outputCommands.append(
'keep *_simMuonRPCDigis_*_*')
181 getattr(process,b).outputCommands.append(
'keep *_simHcalUnsuppressedDigis_*_*')
189 process.l1tCsctf.gangedME11a = cms.untracked.bool(
False)
191 if hasattr(process,
'HBHENoiseFilterResultProducer'):
192 process.HBHENoiseFilterResultProducer.IgnoreTS4TS5ifJetInLowBVRegion = cms.bool(
False)
199 process.load(
"L1Trigger.L1TCommon.l1tRawToDigi_cfi")
200 process.load(
"L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")
201 if hasattr(process,
'RawToDigi'):
202 process.L1RawToDigiSeq = cms.Sequence(process.gctDigis+process.caloStage1Digis+process.caloStage1LegacyFormatDigis)
203 process.RawToDigi.replace(process.gctDigis, process.L1RawToDigiSeq)
205 process.load(
'DQMOffline.L1Trigger.L1TriggerDqmOffline_cff')
206 if hasattr(process,
'l1tMonitorStage1Online'):
207 process.l1tRct.rctSource =
'caloStage1Digis'
208 process.l1tRctfromRCT.rctSource =
'rctDigis'
209 process.l1tPUM.regionSource = cms.InputTag(
"rctDigis")
210 process.l1tStage1Layer2.stage1_layer2_ = cms.bool(
True)
211 process.l1tStage1Layer2.gctCentralJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"cenJets")
212 process.l1tStage1Layer2.gctForwardJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"forJets")
213 process.l1tStage1Layer2.gctTauJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"tauJets")
214 process.l1tStage1Layer2.gctIsoTauJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"isoTauJets")
215 process.l1tStage1Layer2.gctEnergySumsSource = cms.InputTag(
"caloStage1LegacyFormatDigis")
216 process.l1tStage1Layer2.gctIsoEmSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"isoEm")
217 process.l1tStage1Layer2.gctNonIsoEmSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"nonIsoEm")
218 process.dqmL1ExtraParticlesStage1.etTotalSource =
'caloStage1LegacyFormatDigis'
219 process.dqmL1ExtraParticlesStage1.nonIsolatedEmSource =
'caloStage1LegacyFormatDigis:nonIsoEm'
220 process.dqmL1ExtraParticlesStage1.etMissSource =
'caloStage1LegacyFormatDigis'
221 process.dqmL1ExtraParticlesStage1.htMissSource =
'caloStage1LegacyFormatDigis'
222 process.dqmL1ExtraParticlesStage1.forwardJetSource =
'caloStage1LegacyFormatDigis:forJets'
223 process.dqmL1ExtraParticlesStage1.centralJetSource =
'caloStage1LegacyFormatDigis:cenJets'
224 process.dqmL1ExtraParticlesStage1.tauJetSource =
'caloStage1LegacyFormatDigis:tauJets'
225 process.dqmL1ExtraParticlesStage1.isolatedEmSource =
'caloStage1LegacyFormatDigis:isoEm'
226 process.dqmL1ExtraParticlesStage1.etHadSource =
'caloStage1LegacyFormatDigis'
227 process.dqmL1ExtraParticlesStage1.hfRingEtSumsSource =
'caloStage1LegacyFormatDigis'
228 process.dqmL1ExtraParticlesStage1.hfRingBitCountsSource =
'caloStage1LegacyFormatDigis'
229 process.l1ExtraDQMStage1.stage1_layer2_ = cms.bool(
True)
230 process.l1ExtraDQMStage1.L1ExtraIsoTauJetSource_ = cms.InputTag(
"dqmL1ExtraParticlesStage1",
"IsoTau")
232 if hasattr(process,
'l1Stage1HwValEmulatorMonitor'):
233 process.l1TdeRCT.rctSourceData =
'caloStage1Digis'
234 process.l1TdeRCTfromRCT.rctSourceData =
'rctDigis'
235 process.l1compareforstage1.GCTsourceData = cms.InputTag(
"caloStage1LegacyFormatDigis")
236 process.l1compareforstage1.GCTsourceEmul = cms.InputTag(
"valCaloStage1LegacyFormatDigis")
237 process.l1compareforstage1.stage1_layer2_ = cms.bool(
True)
238 process.valStage1GtDigis.GctInputTag =
'caloStage1LegacyFormatDigis'
253 process.g4SimHits.HFShowerLibrary.FileName =
'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v3.root'
258 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers'):
259 if hasattr(process.mix.digitizers,
'hcal')
and hasattr(process.mix.digitizers.hcal,
'ho'):
260 process.mix.digitizers.hcal.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
261 process.mix.digitizers.hcal.ho.siPMCode = cms.int32(1)
262 process.mix.digitizers.hcal.ho.pixels = cms.int32(2500)
263 process.mix.digitizers.hcal.ho.doSiPMSmearing = cms.bool(
False)
264 if hasattr(process.mix.digitizers,
'hcal')
and hasattr(process.mix.digitizers.hcal,
'hf1'):
265 process.mix.digitizers.hcal.hf1.samplingFactor = cms.double(0.60)
266 if hasattr(process.mix.digitizers,
'hcal')
and hasattr(process.mix.digitizers.hcal,
'hf2'):
267 process.mix.digitizers.hcal.hf2.samplingFactor = cms.double(0.60)
271 if hasattr(process,
'mixData'):
272 if hasattr(process.mixData,
'ho'):
273 process.mixData.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
274 process.mixData.ho.siPMCode = cms.int32(1)
275 process.mixData.ho.pixels = cms.int32(2500)
276 process.mixData.ho.doSiPMSmearing = cms.bool(
False)
277 if hasattr(process.mixData,
'hf1'):
278 process.mixData.hf1.samplingFactor = cms.double(0.60)
279 if hasattr(process.mixData,
'hf2'):
280 process.mixData.hf2.samplingFactor = cms.double(0.60)
285 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers'):
286 if hasattr(process.mix.digitizers,
'pixel'):
288 process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(246.4)
289 process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
311 process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
345 process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
391 if hasattr(process,
'mixData'):
393 process.mixData.theInstLumiScaleFactor = cms.double(246.4)
394 process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
416 process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
450 process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
500 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers'):
501 if hasattr(process.mix.digitizers,
'pixel'):
503 process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(364)
504 process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
526 process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
560 process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
606 process.mix.digitizers.pixel.theModuleEfficiency_BPix1 = cms.vdouble(
612 process.mix.digitizers.pixel.theModuleEfficiency_BPix2 = cms.vdouble(
618 process.mix.digitizers.pixel.theModuleEfficiency_BPix3 = cms.vdouble(
624 process.mix.digitizers.pixel.thePUEfficiency_BPix1 = cms.vdouble(
630 process.mix.digitizers.pixel.thePUEfficiency_BPix2 = cms.vdouble(
636 process.mix.digitizers.pixel.thePUEfficiency_BPix3 = cms.vdouble(
642 if hasattr(process,
'mixData'):
644 process.mixData.theInstLumiScaleFactor = cms.double(364)
645 process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
667 process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
701 process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
747 process.mixData.theModuleEfficiency_BPix1 = cms.vdouble(
753 process.mixData.theModuleEfficiency_BPix2 = cms.vdouble(
759 process.mixData.theModuleEfficiency_BPix3 = cms.vdouble(
765 process.mixData.thePUEfficiency_BPix1 = cms.vdouble(
771 process.mixData.thePUEfficiency_BPix2 = cms.vdouble(
777 process.mixData.thePUEfficiency_BPix3 = cms.vdouble(
791 if hasattr(process,
'gtEvmDigis'):
792 process.RawToDigi.remove(process.gtEvmDigis)
806 if hasattr(process,
'particleFlowRecHitHO'):
807 for prod
in process.particleFlowRecHitHO.producers:
808 prod.qualityTests = cms.VPSet(
810 name = cms.string(
"PFRecHitQTestThreshold"),
811 threshold = cms.double(0.05)
814 name = cms.string(
"PFRecHitQTestHCALChannel"),
815 maxSeverities = cms.vint32(11),
816 cleaningThresholds = cms.vdouble(0.0),
817 flags = cms.vstring(
'Standard')
823 for p
in process.particleFlowClusterHO.seedFinder.thresholdsByDetector:
824 p.seedingThreshold = cms.double(0.08)
826 for p
in process.particleFlowClusterHO.initialClusteringStep.thresholdsByDetector:
827 p.gatheringThreshold = cms.double(0.05)
829 for p
in process.particleFlowClusterHO.pfClusterBuilder.recHitEnergyNorms:
830 p.recHitEnergyNorm = cms.double(0.05)
832 process.particleFlowClusterHO.pfClusterBuilder.positionCalc.logWeightDenominator = cms.double(0.05)
833 process.particleFlowClusterHO.pfClusterBuilder.allCellsPositionCalc.logWeightDenominator = cms.double(0.05)
836 if hasattr(process,
'muonDetIdAssociator'):
837 process.muonDetIdAssociator.includeBadChambers = cms.bool(
True)
851 alist=[
'AODSIM',
'RECOSIM',
'FEVTSIM',
'FEVTDEBUG',
'FEVTDEBUGHLT',
'RECODEBUG',
'RAWRECOSIMHLT',
'RAWRECODEBUGHLT']
854 if hasattr(process,b):
855 getattr(process,b).outputCommands.append(
'keep *_simMuonCSCDigis_*_*')
856 getattr(process,b).outputCommands.append(
'keep *_simMuonRPCDigis_*_*')
857 getattr(process,b).outputCommands.append(
'keep *_simHcalUnsuppressedDigis_*_*')
858 getattr(process,b).outputCommands.append(
'keep *_rawDataCollector_*_*')
def customise_Digi_Common
def customisePostLS1_lowPU
def customisePostLS1_Common
def customiseSimL1EmulatorForPostLS1_Additional_HI
def customiseSimL1EmulatorForStage1
def customisePostLS1_50ns
def customise_csc_PostLS1
def customise_fastSimPostLS1
def customisePostLS1_B0T_lowPU