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,
'L1simulation_step'):
31 if hasattr(process,
'dqmoffline_step'):
33 if hasattr(process,
'dqmHarvesting'):
35 if hasattr(process,
'validation_step'):
37 if hasattr(process,
'datamixing_step'):
44 if displayDeprecationWarning :
47 # -- Warning! You are using a deprecated customisation function. -- 49 # It will probably run fine, but the customisations you are getting may be out of date. 50 # You should update your configuration file by 52 # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1" option 53 # 2) add the option "--era Run2_25ns" 54 # If using a pre-made configuration file: 55 # 1) remove or comment out the "process = customisePostLS1(process)" line. 56 # 2) add "from Configuration.Eras.Era_Run2_25ns_cff import Run2_25ns" to the TOP of the config file (above 57 # the process declaration). 58 # 3) add "Run2_25ns" as a parameter to the process object, e.g. "process = cms.Process('HLT',Run2_25ns)" 60 # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras 67 if hasattr(process,
'digitisation_step'):
69 if hasattr(process,
'dqmoffline_step'):
81 if hasattr(process,
'digitisation_step'):
88 if displayDeprecationWarning :
91 # -- Warning! You are using a deprecated customisation function. -- 93 # It will probably run fine, but the customisations you are getting may be out of date. 94 # You should update your configuration file by 96 # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1_50ns" option 97 # 2) add the option "--era Run2_50ns" 98 # If using a pre-made configuration file: 99 # 1) remove or comment out the "process = customisePostLS1_50ns(process)" line. 100 # 2) add "from Configuration.Eras.Era_Run2_50ns_cff import Run2_50ns" to the TOP of the config file (above 101 # the process declaration). 102 # 3) add "Run2_50ns" as a parameter to the process object, e.g. "process = cms.Process('HLT',Run2_50ns)" 104 # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras 112 if hasattr(process,
'digitisation_step'):
119 if displayDeprecationWarning :
122 # -- Warning! You are using a deprecated customisation function. -- 124 # It will probably run fine, but the customisations you are getting may be out of date. 125 # You should update your configuration file by 126 # If using cmsDriver: 127 # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1_HI" option 128 # 2) add the option "--era Run2_HI" 129 # If using a pre-made configuration file: 130 # 1) remove or comment out the "process = customisePostLS1_HI(process)" line. 131 # 2) add "from Configuration.Eras.Era_Run2_HI_cff import Run2_HI" to the TOP of the config file (above 132 # the process declaration). 133 # 3) add "Run2_HI" as a parameter to the process object, e.g. "process = cms.Process('HLT',Run2_HI)" 135 # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras 143 from L1Trigger.L1TCommon.customsPostLS1
import customiseSimL1EmulatorForPostLS1_Additional_HI
155 alist=[
'RAWDEBUG',
'FEVTDEBUG',
'FEVTDEBUGHLT',
'GENRAW',
'RAWSIMHLT',
'FEVT']
158 if hasattr(process,b):
159 getattr(process,b).outputCommands.append(
'keep *_simMuonCSCDigis_*_*')
160 getattr(process,b).outputCommands.append(
'keep *_simMuonRPCDigis_*_*')
161 getattr(process,b).outputCommands.append(
'keep *_simHcalUnsuppressedDigis_*_*')
169 process.l1tCsctf.gangedME11a = cms.untracked.bool(
False)
171 if hasattr(process,
'HBHENoiseFilterResultProducer'):
172 process.HBHENoiseFilterResultProducer.IgnoreTS4TS5ifJetInLowBVRegion = cms.bool(
False)
179 process.load(
"L1Trigger.L1TCommon.l1tRawToDigi_cfi")
180 process.load(
"L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")
181 if hasattr(process,
'RawToDigi'):
182 process.L1RawToDigiSeq = cms.Sequence(process.gctDigis+process.caloStage1Digis+process.caloStage1LegacyFormatDigis)
183 process.RawToDigi.replace(process.gctDigis, process.L1RawToDigiSeq)
185 process.load(
'DQMOffline.L1Trigger.L1TriggerDqmOffline_cff')
186 if hasattr(process,
'l1tMonitorStage1Online'):
187 process.l1tRct.rctSource =
'caloStage1Digis' 188 process.l1tRctfromRCT.rctSource =
'rctDigis' 189 process.l1tPUM.regionSource = cms.InputTag(
"rctDigis")
190 process.l1tStage1Layer2.stage1_layer2_ = cms.bool(
True)
191 process.l1tStage1Layer2.gctCentralJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"cenJets")
192 process.l1tStage1Layer2.gctForwardJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"forJets")
193 process.l1tStage1Layer2.gctTauJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"tauJets")
194 process.l1tStage1Layer2.gctIsoTauJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"isoTauJets")
195 process.l1tStage1Layer2.gctEnergySumsSource = cms.InputTag(
"caloStage1LegacyFormatDigis")
196 process.l1tStage1Layer2.gctIsoEmSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"isoEm")
197 process.l1tStage1Layer2.gctNonIsoEmSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"nonIsoEm")
198 process.dqmL1ExtraParticlesStage1.etTotalSource =
'caloStage1LegacyFormatDigis' 199 process.dqmL1ExtraParticlesStage1.nonIsolatedEmSource =
'caloStage1LegacyFormatDigis:nonIsoEm' 200 process.dqmL1ExtraParticlesStage1.etMissSource =
'caloStage1LegacyFormatDigis' 201 process.dqmL1ExtraParticlesStage1.htMissSource =
'caloStage1LegacyFormatDigis' 202 process.dqmL1ExtraParticlesStage1.forwardJetSource =
'caloStage1LegacyFormatDigis:forJets' 203 process.dqmL1ExtraParticlesStage1.centralJetSource =
'caloStage1LegacyFormatDigis:cenJets' 204 process.dqmL1ExtraParticlesStage1.tauJetSource =
'caloStage1LegacyFormatDigis:tauJets' 205 process.dqmL1ExtraParticlesStage1.isolatedEmSource =
'caloStage1LegacyFormatDigis:isoEm' 206 process.dqmL1ExtraParticlesStage1.etHadSource =
'caloStage1LegacyFormatDigis' 207 process.dqmL1ExtraParticlesStage1.hfRingEtSumsSource =
'caloStage1LegacyFormatDigis' 208 process.dqmL1ExtraParticlesStage1.hfRingBitCountsSource =
'caloStage1LegacyFormatDigis' 209 process.l1ExtraDQMStage1.stage1_layer2_ = cms.bool(
True)
210 process.l1ExtraDQMStage1.L1ExtraIsoTauJetSource_ = cms.InputTag(
"dqmL1ExtraParticlesStage1",
"IsoTau")
212 if hasattr(process,
'l1Stage1HwValEmulatorMonitor'):
213 process.l1TdeRCT.rctSourceData =
'caloStage1Digis' 214 process.l1TdeRCTfromRCT.rctSourceData =
'rctDigis' 215 process.l1compareforstage1.GCTsourceData = cms.InputTag(
"caloStage1LegacyFormatDigis")
216 process.l1compareforstage1.GCTsourceEmul = cms.InputTag(
"valCaloStage1LegacyFormatDigis")
217 process.l1compareforstage1.stage1_layer2_ = cms.bool(
True)
218 process.valStage1GtDigis.GctInputTag =
'caloStage1LegacyFormatDigis' 233 process.g4SimHits.HFShowerLibrary.FileName =
'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root' 238 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers'):
239 if hasattr(process.mix.digitizers,
'hcal')
and hasattr(process.mix.digitizers.hcal,
'ho'):
240 process.mix.digitizers.hcal.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
241 process.mix.digitizers.hcal.ho.siPMCode = cms.int32(1)
242 process.mix.digitizers.hcal.ho.pixels = cms.int32(2500)
243 process.mix.digitizers.hcal.ho.doSiPMSmearing = cms.bool(
False)
244 if hasattr(process.mix.digitizers,
'hcal')
and hasattr(process.mix.digitizers.hcal,
'hf1'):
245 process.mix.digitizers.hcal.hf1.samplingFactor = cms.double(0.60)
246 if hasattr(process.mix.digitizers,
'hcal')
and hasattr(process.mix.digitizers.hcal,
'hf2'):
247 process.mix.digitizers.hcal.hf2.samplingFactor = cms.double(0.60)
251 if hasattr(process,
'mixData'):
252 if hasattr(process.mixData,
'ho'):
253 process.mixData.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
254 process.mixData.ho.siPMCode = cms.int32(1)
255 process.mixData.ho.pixels = cms.int32(2500)
256 process.mixData.ho.doSiPMSmearing = cms.bool(
False)
257 if hasattr(process.mixData,
'hf1'):
258 process.mixData.hf1.samplingFactor = cms.double(0.60)
259 if hasattr(process.mixData,
'hf2'):
260 process.mixData.hf2.samplingFactor = cms.double(0.60)
265 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers'):
266 if hasattr(process.mix.digitizers,
'pixel'):
268 process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(246.4)
269 process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
291 process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
325 process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
371 if hasattr(process,
'mixData'):
373 process.mixData.theInstLumiScaleFactor = cms.double(246.4)
374 process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
396 process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
430 process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
480 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers'):
481 if hasattr(process.mix.digitizers,
'pixel'):
483 process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(364)
484 process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
506 process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
540 process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
586 process.mix.digitizers.pixel.theModuleEfficiency_BPix1 = cms.vdouble(
592 process.mix.digitizers.pixel.theModuleEfficiency_BPix2 = cms.vdouble(
598 process.mix.digitizers.pixel.theModuleEfficiency_BPix3 = cms.vdouble(
604 process.mix.digitizers.pixel.thePUEfficiency_BPix1 = cms.vdouble(
610 process.mix.digitizers.pixel.thePUEfficiency_BPix2 = cms.vdouble(
616 process.mix.digitizers.pixel.thePUEfficiency_BPix3 = cms.vdouble(
622 if hasattr(process,
'mixData'):
624 process.mixData.theInstLumiScaleFactor = cms.double(364)
625 process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
647 process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
681 process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
727 process.mixData.theModuleEfficiency_BPix1 = cms.vdouble(
733 process.mixData.theModuleEfficiency_BPix2 = cms.vdouble(
739 process.mixData.theModuleEfficiency_BPix3 = cms.vdouble(
745 process.mixData.thePUEfficiency_BPix1 = cms.vdouble(
751 process.mixData.thePUEfficiency_BPix2 = cms.vdouble(
757 process.mixData.thePUEfficiency_BPix3 = cms.vdouble(
771 if hasattr(process,
'gtEvmDigis'):
772 process.RawToDigi.remove(process.gtEvmDigis)
782 if hasattr(process,
'particleFlowRecHitHO'):
783 for prod
in process.particleFlowRecHitHO.producers:
784 prod.qualityTests = cms.VPSet(
786 name = cms.string(
"PFRecHitQTestThreshold"),
787 threshold = cms.double(0.05)
790 name = cms.string(
"PFRecHitQTestHCALChannel"),
791 maxSeverities = cms.vint32(11),
792 cleaningThresholds = cms.vdouble(0.0),
793 flags = cms.vstring(
'Standard')
799 for p
in process.particleFlowClusterHO.seedFinder.thresholdsByDetector:
800 p.seedingThreshold = cms.double(0.08)
802 for p
in process.particleFlowClusterHO.initialClusteringStep.thresholdsByDetector:
803 p.gatheringThreshold = cms.double(0.05)
805 for p
in process.particleFlowClusterHO.pfClusterBuilder.recHitEnergyNorms:
806 p.recHitEnergyNorm = cms.double(0.05)
808 process.particleFlowClusterHO.pfClusterBuilder.positionCalc.logWeightDenominator = cms.double(0.05)
809 process.particleFlowClusterHO.pfClusterBuilder.allCellsPositionCalc.logWeightDenominator = cms.double(0.05)
812 if hasattr(process,
'muonDetIdAssociator'):
813 process.muonDetIdAssociator.includeBadChambers = cms.bool(
True)
827 alist=[
'AODSIM',
'RECOSIM',
'FEVTSIM',
'FEVTDEBUG',
'FEVTDEBUGHLT',
'RECODEBUG',
'RAWRECOSIMHLT',
'RAWRECODEBUGHLT']
830 if hasattr(process,b):
831 getattr(process,b).outputCommands.append(
'keep *_simMuonCSCDigis_*_*')
832 getattr(process,b).outputCommands.append(
'keep *_simMuonRPCDigis_*_*')
833 getattr(process,b).outputCommands.append(
'keep *_simHcalUnsuppressedDigis_*_*')
834 getattr(process,b).outputCommands.append(
'keep *_rawDataCollector_*_*')
def customise_DQM_25ns(process)
def customise_Reco(process)
def customise_DigiToRaw(process)
def customise_DQM(process)
def customisePostLS1_Common(process)
def customise_csc_PostLS1(process)
def customisePostLS1(process, displayDeprecationWarning=True)
def customise_DataMix(process)
def customise_RawToDigi(process)
def customise_Digi_25ns(process)
def customisePostLS1_50ns(process, displayDeprecationWarning=True)
def customise_Digi_Common(process)
def customise_Digi_50ns(process)
def recoOutputCustoms(process)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
def customise_L1Emulator(process)
def customiseSimL1EmulatorForStage1(process)
def customisePostLS1_HI(process, displayDeprecationWarning=True)
def customiseSimL1EmulatorForPostLS1_Additional_HI(process)
def customisePostLS1_lowPU(process)
def customise_harvesting(process)
def customise_Sim(process)
def customise_fastSimPostLS1(process)
def digiEventContent(process)
def customise_Validation(process)