1 import FWCore.ParameterSet.Config
as cms
6 from L1Trigger.L1TCommon.customsPostLS1
import customiseSimL1EmulatorForStage1
10 from SLHCUpgradeSimulations.Configuration.muonCustoms
import customise_csc_PostLS1
14 from SLHCUpgradeSimulations.Configuration.fastSimCustoms
import customise_fastSimPostLS1
18 if hasattr(process,
'g4SimHits'):
20 if hasattr(process,
'DigiToRaw'):
22 if hasattr(process,
'RawToDigi'):
24 if hasattr(process,
'reconstruction'):
26 if hasattr(process,
'digitisation_step')
or ( hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')):
28 if hasattr(process,
'HLTSchedule'):
30 if hasattr(process,
'L1simulation_step'):
32 if hasattr(process,
'dqmoffline_step'):
34 if hasattr(process,
'dqmHarvesting'):
36 if hasattr(process,
'validation_step'):
38 if hasattr(process,
'datamixing_step'):
45 if displayDeprecationWarning :
48 # -- Warning! You are using a deprecated customisation function. -- 50 # It will probably run fine, but the customisations you are getting may be out of date. 51 # You should update your configuration file by 53 # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1" option 54 # 2) add the option "--era Run2_25ns" 55 # If using a pre-made configuration file: 56 # 1) remove or comment out the "process = customisePostLS1(process)" line. 57 # 2) add "from Configuration.StandardSequences.Eras import eras" to the TOP of the config file (above 58 # the process declaration). 59 # 3) add "eras.Run2_25ns" as a parameter to the process object, e.g. "process = cms.Process('HLT',eras.Run2_25ns)" 61 # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras 68 if hasattr(process,
'digitisation_step'):
70 if hasattr(process,
'dqmoffline_step'):
82 if hasattr(process,
'digitisation_step'):
89 if displayDeprecationWarning :
92 # -- Warning! You are using a deprecated customisation function. -- 94 # It will probably run fine, but the customisations you are getting may be out of date. 95 # You should update your configuration file by 97 # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1_50ns" option 98 # 2) add the option "--era Run2_50ns" 99 # If using a pre-made configuration file: 100 # 1) remove or comment out the "process = customisePostLS1_50ns(process)" line. 101 # 2) add "from Configuration.StandardSequences.Eras import eras" to the TOP of the config file (above 102 # the process declaration). 103 # 3) add "eras.Run2_50ns" as a parameter to the process object, e.g. "process = cms.Process('HLT',eras.Run2_50ns)" 105 # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras 113 if hasattr(process,
'digitisation_step'):
120 if displayDeprecationWarning :
123 # -- Warning! You are using a deprecated customisation function. -- 125 # It will probably run fine, but the customisations you are getting may be out of date. 126 # You should update your configuration file by 127 # If using cmsDriver: 128 # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1_HI" option 129 # 2) add the option "--era Run2_HI" 130 # If using a pre-made configuration file: 131 # 1) remove or comment out the "process = customisePostLS1_HI(process)" line. 132 # 2) add "from Configuration.StandardSequences.Eras import eras" to the TOP of the config file (above 133 # the process declaration). 134 # 3) add "eras.Run2_HI" as a parameter to the process object, e.g. "process = cms.Process('HLT',eras.Run2_HI)" 136 # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras 144 from L1Trigger.L1TCommon.customsPostLS1
import customiseSimL1EmulatorForPostLS1_Additional_HI
156 alist=[
'RAWDEBUG',
'FEVTDEBUG',
'FEVTDEBUGHLT',
'GENRAW',
'RAWSIMHLT',
'FEVT']
159 if hasattr(process,b):
160 getattr(process,b).outputCommands.append(
'keep *_simMuonCSCDigis_*_*')
161 getattr(process,b).outputCommands.append(
'keep *_simMuonRPCDigis_*_*')
162 getattr(process,b).outputCommands.append(
'keep *_simHcalUnsuppressedDigis_*_*')
170 process.l1tCsctf.gangedME11a = cms.untracked.bool(
False)
172 if hasattr(process,
'HBHENoiseFilterResultProducer'):
173 process.HBHENoiseFilterResultProducer.IgnoreTS4TS5ifJetInLowBVRegion = cms.bool(
False)
180 process.load(
"L1Trigger.L1TCommon.l1tRawToDigi_cfi")
181 process.load(
"L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")
182 if hasattr(process,
'RawToDigi'):
183 process.L1RawToDigiSeq = cms.Sequence(process.gctDigis+process.caloStage1Digis+process.caloStage1LegacyFormatDigis)
184 process.RawToDigi.replace(process.gctDigis, process.L1RawToDigiSeq)
186 process.load(
'DQMOffline.L1Trigger.L1TriggerDqmOffline_cff')
187 if hasattr(process,
'l1tMonitorStage1Online'):
188 process.l1tRct.rctSource =
'caloStage1Digis' 189 process.l1tRctfromRCT.rctSource =
'rctDigis' 190 process.l1tPUM.regionSource = cms.InputTag(
"rctDigis")
191 process.l1tStage1Layer2.stage1_layer2_ = cms.bool(
True)
192 process.l1tStage1Layer2.gctCentralJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"cenJets")
193 process.l1tStage1Layer2.gctForwardJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"forJets")
194 process.l1tStage1Layer2.gctTauJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"tauJets")
195 process.l1tStage1Layer2.gctIsoTauJetsSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"isoTauJets")
196 process.l1tStage1Layer2.gctEnergySumsSource = cms.InputTag(
"caloStage1LegacyFormatDigis")
197 process.l1tStage1Layer2.gctIsoEmSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"isoEm")
198 process.l1tStage1Layer2.gctNonIsoEmSource = cms.InputTag(
"caloStage1LegacyFormatDigis",
"nonIsoEm")
199 process.dqmL1ExtraParticlesStage1.etTotalSource =
'caloStage1LegacyFormatDigis' 200 process.dqmL1ExtraParticlesStage1.nonIsolatedEmSource =
'caloStage1LegacyFormatDigis:nonIsoEm' 201 process.dqmL1ExtraParticlesStage1.etMissSource =
'caloStage1LegacyFormatDigis' 202 process.dqmL1ExtraParticlesStage1.htMissSource =
'caloStage1LegacyFormatDigis' 203 process.dqmL1ExtraParticlesStage1.forwardJetSource =
'caloStage1LegacyFormatDigis:forJets' 204 process.dqmL1ExtraParticlesStage1.centralJetSource =
'caloStage1LegacyFormatDigis:cenJets' 205 process.dqmL1ExtraParticlesStage1.tauJetSource =
'caloStage1LegacyFormatDigis:tauJets' 206 process.dqmL1ExtraParticlesStage1.isolatedEmSource =
'caloStage1LegacyFormatDigis:isoEm' 207 process.dqmL1ExtraParticlesStage1.etHadSource =
'caloStage1LegacyFormatDigis' 208 process.dqmL1ExtraParticlesStage1.hfRingEtSumsSource =
'caloStage1LegacyFormatDigis' 209 process.dqmL1ExtraParticlesStage1.hfRingBitCountsSource =
'caloStage1LegacyFormatDigis' 210 process.l1ExtraDQMStage1.stage1_layer2_ = cms.bool(
True)
211 process.l1ExtraDQMStage1.L1ExtraIsoTauJetSource_ = cms.InputTag(
"dqmL1ExtraParticlesStage1",
"IsoTau")
213 if hasattr(process,
'l1Stage1HwValEmulatorMonitor'):
214 process.l1TdeRCT.rctSourceData =
'caloStage1Digis' 215 process.l1TdeRCTfromRCT.rctSourceData =
'rctDigis' 216 process.l1compareforstage1.GCTsourceData = cms.InputTag(
"caloStage1LegacyFormatDigis")
217 process.l1compareforstage1.GCTsourceEmul = cms.InputTag(
"valCaloStage1LegacyFormatDigis")
218 process.l1compareforstage1.stage1_layer2_ = cms.bool(
True)
219 process.valStage1GtDigis.GctInputTag =
'caloStage1LegacyFormatDigis' 234 process.g4SimHits.HFShowerLibrary.FileName =
'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root' 239 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers'):
240 if hasattr(process.mix.digitizers,
'hcal')
and hasattr(process.mix.digitizers.hcal,
'ho'):
241 process.mix.digitizers.hcal.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
242 process.mix.digitizers.hcal.ho.siPMCode = cms.int32(1)
243 process.mix.digitizers.hcal.ho.pixels = cms.int32(2500)
244 process.mix.digitizers.hcal.ho.doSiPMSmearing = cms.bool(
False)
245 if hasattr(process.mix.digitizers,
'hcal')
and hasattr(process.mix.digitizers.hcal,
'hf1'):
246 process.mix.digitizers.hcal.hf1.samplingFactor = cms.double(0.60)
247 if hasattr(process.mix.digitizers,
'hcal')
and hasattr(process.mix.digitizers.hcal,
'hf2'):
248 process.mix.digitizers.hcal.hf2.samplingFactor = cms.double(0.60)
252 if hasattr(process,
'mixData'):
253 if hasattr(process.mixData,
'ho'):
254 process.mixData.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
255 process.mixData.ho.siPMCode = cms.int32(1)
256 process.mixData.ho.pixels = cms.int32(2500)
257 process.mixData.ho.doSiPMSmearing = cms.bool(
False)
258 if hasattr(process.mixData,
'hf1'):
259 process.mixData.hf1.samplingFactor = cms.double(0.60)
260 if hasattr(process.mixData,
'hf2'):
261 process.mixData.hf2.samplingFactor = cms.double(0.60)
266 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers'):
267 if hasattr(process.mix.digitizers,
'pixel'):
269 process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(246.4)
270 process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
292 process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
326 process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
372 if hasattr(process,
'mixData'):
374 process.mixData.theInstLumiScaleFactor = cms.double(246.4)
375 process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
397 process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
431 process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
481 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers'):
482 if hasattr(process.mix.digitizers,
'pixel'):
484 process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(364)
485 process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
507 process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
541 process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
587 process.mix.digitizers.pixel.theModuleEfficiency_BPix1 = cms.vdouble(
593 process.mix.digitizers.pixel.theModuleEfficiency_BPix2 = cms.vdouble(
599 process.mix.digitizers.pixel.theModuleEfficiency_BPix3 = cms.vdouble(
605 process.mix.digitizers.pixel.thePUEfficiency_BPix1 = cms.vdouble(
611 process.mix.digitizers.pixel.thePUEfficiency_BPix2 = cms.vdouble(
617 process.mix.digitizers.pixel.thePUEfficiency_BPix3 = cms.vdouble(
623 if hasattr(process,
'mixData'):
625 process.mixData.theInstLumiScaleFactor = cms.double(364)
626 process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
648 process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
682 process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
728 process.mixData.theModuleEfficiency_BPix1 = cms.vdouble(
734 process.mixData.theModuleEfficiency_BPix2 = cms.vdouble(
740 process.mixData.theModuleEfficiency_BPix3 = cms.vdouble(
746 process.mixData.thePUEfficiency_BPix1 = cms.vdouble(
752 process.mixData.thePUEfficiency_BPix2 = cms.vdouble(
758 process.mixData.thePUEfficiency_BPix3 = cms.vdouble(
772 if hasattr(process,
'gtEvmDigis'):
773 process.RawToDigi.remove(process.gtEvmDigis)
787 if hasattr(process,
'particleFlowRecHitHO'):
788 for prod
in process.particleFlowRecHitHO.producers:
789 prod.qualityTests = cms.VPSet(
791 name = cms.string(
"PFRecHitQTestThreshold"),
792 threshold = cms.double(0.05)
795 name = cms.string(
"PFRecHitQTestHCALChannel"),
796 maxSeverities = cms.vint32(11),
797 cleaningThresholds = cms.vdouble(0.0),
798 flags = cms.vstring(
'Standard')
804 for p
in process.particleFlowClusterHO.seedFinder.thresholdsByDetector:
805 p.seedingThreshold = cms.double(0.08)
807 for p
in process.particleFlowClusterHO.initialClusteringStep.thresholdsByDetector:
808 p.gatheringThreshold = cms.double(0.05)
810 for p
in process.particleFlowClusterHO.pfClusterBuilder.recHitEnergyNorms:
811 p.recHitEnergyNorm = cms.double(0.05)
813 process.particleFlowClusterHO.pfClusterBuilder.positionCalc.logWeightDenominator = cms.double(0.05)
814 process.particleFlowClusterHO.pfClusterBuilder.allCellsPositionCalc.logWeightDenominator = cms.double(0.05)
817 if hasattr(process,
'muonDetIdAssociator'):
818 process.muonDetIdAssociator.includeBadChambers = cms.bool(
True)
832 alist=[
'AODSIM',
'RECOSIM',
'FEVTSIM',
'FEVTDEBUG',
'FEVTDEBUGHLT',
'RECODEBUG',
'RAWRECOSIMHLT',
'RAWRECODEBUGHLT']
835 if hasattr(process,b):
836 getattr(process,b).outputCommands.append(
'keep *_simMuonCSCDigis_*_*')
837 getattr(process,b).outputCommands.append(
'keep *_simMuonRPCDigis_*_*')
838 getattr(process,b).outputCommands.append(
'keep *_simHcalUnsuppressedDigis_*_*')
839 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)
def customise_L1Emulator(process)
def customiseSimL1EmulatorForStage1(process)
def customisePostLS1_HI(process, displayDeprecationWarning=True)
def customiseSimL1EmulatorForPostLS1_Additional_HI(process)
def customise_HLT(process)
def customisePostLS1_lowPU(process)
def customise_harvesting(process)
def customise_Sim(process)
def customise_fastSimPostLS1(process)
def digiEventContent(process)
def customise_Validation(process)