File indexing completed on 2024-04-06 12:21:34
0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.StandardSequences.Eras import eras
0003
0004 process = cms.Process("RESP", eras.Phase2C9)
0005
0006 process.load('Configuration.StandardSequences.Services_cff')
0007 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0008 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0009 process.options = cms.untracked.PSet(
0010 wantSummary = cms.untracked.bool(True),
0011 numberOfThreads = cms.untracked.uint32(2),
0012 numberOfStreams = cms.untracked.uint32(1),
0013 )
0014 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(100))
0015 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0016
0017 process.source = cms.Source("PoolSource",
0018 fileNames = cms.untracked.vstring('/store/mc/Phase2HLTTDRWinter20DIGI/TT_TuneCP5_14TeV-powheg-pythia8/GEN-SIM-DIGI-RAW/PU200_110X_mcRun4_realistic_v3-v2/110000/005E74D6-B50E-674E-89E6-EAA9A617B476.root',)
0019 )
0020
0021 process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff')
0022 process.load('Configuration.Geometry.GeometryExtended2026D49_cff')
0023 process.load('Configuration.StandardSequences.MagneticField_cff')
0024 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0025 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0026 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0027
0028 from Configuration.AlCa.GlobalTag import GlobalTag
0029 process.GlobalTag = GlobalTag(process.GlobalTag, '123X_mcRun4_realistic_v3', '')
0030
0031 process.load('SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cff')
0032 process.load('CalibCalorimetry.CaloTPG.CaloTPGTranscoder_cfi')
0033 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0034 process.load('L1Trigger.TrackTrigger.TrackTrigger_cff')
0035 process.load("L1Trigger.TrackFindingTracklet.L1HybridEmulationTracks_cff")
0036 process.load("L1Trigger.TrackerDTC.ProducerES_cff")
0037 process.load("L1Trigger.TrackerDTC.ProducerED_cff")
0038 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cfi")
0039
0040 from L1Trigger.Phase2L1ParticleFlow.l1tSeedConePFJetProducer_cfi import l1tSeedConePFJetEmulatorProducer
0041 from L1Trigger.Phase2L1ParticleFlow.l1tDeregionizerProducer_cfi import l1tDeregionizerProducer
0042 from L1Trigger.Phase2L1ParticleFlow.l1tJetFileWriter_cfi import l1tSeededConeJetFileWriter
0043 process.l1tLayer2Deregionizer = l1tDeregionizerProducer.clone()
0044 process.l1tLayer2SeedConeJetsCorrected = l1tSeedConePFJetEmulatorProducer.clone(L1PFObject = ('l1tLayer2Deregionizer', 'Puppi'),
0045 doCorrections = True,
0046 correctorFile = "L1Trigger/Phase2L1ParticleFlow/data/jecs/jecs_20220308.root",
0047 correctorDir = "L1PuppiSC4EmuJets")
0048 process.l1tLayer2SeedConeJetWriter = l1tSeededConeJetFileWriter.clone(jets = "l1tLayer2SeedConeJetsCorrected")
0049
0050 process.l1tLayer1Barrel9 = process.l1tLayer1Barrel.clone()
0051 process.l1tLayer1Barrel9.puAlgo.nFinalSort = 32
0052 process.l1tLayer1Barrel9.regions[0].etaBoundaries = [ -1.5, -0.5, 0.5, 1.5 ]
0053 process.l1tLayer1Barrel9.boards=cms.VPSet(
0054 cms.PSet(
0055 regions=cms.vuint32(*[0+9*ie+i for ie in range(3) for i in range(3)])),
0056 cms.PSet(
0057 regions=cms.vuint32(*[3+9*ie+i for ie in range(3) for i in range(3)])),
0058 cms.PSet(
0059 regions=cms.vuint32(*[6+9*ie+i for ie in range(3) for i in range(3)])),
0060 )
0061
0062 from L1Trigger.Phase2L1ParticleFlow.l1ctLayer1_patternWriters_cff import *
0063 process.l1tLayer1Barrel.patternWriters = cms.untracked.VPSet(*barrelWriterConfigs)
0064
0065 process.l1tLayer1HGCal.patternWriters = cms.untracked.VPSet(*hgcalWriterConfigs)
0066 process.l1tLayer1HGCalNoTK.patternWriters = cms.untracked.VPSet(*hgcalNoTKWriterConfigs)
0067 process.l1tLayer1HF.patternWriters = cms.untracked.VPSet(*hfWriterConfigs)
0068
0069 process.PFInputsTask = cms.Task(
0070 process.TTClustersFromPhase2TrackerDigis,
0071 process.TTStubsFromPhase2TrackerDigis,
0072 process.TrackerDTCProducer,
0073 process.offlineBeamSpot,
0074 process.l1tTTTracksFromTrackletEmulation,
0075 process.SimL1EmulatorTask
0076 )
0077 process.runPF = cms.Path(
0078 process.l1tLayer1Barrel +
0079
0080 process.l1tLayer1HGCal +
0081 process.l1tLayer1HGCalNoTK +
0082 process.l1tLayer1HF +
0083 process.l1tLayer1 +
0084 process.l1tLayer2Deregionizer +
0085 process.l1tLayer2SeedConeJetsCorrected +
0086 process.l1tLayer2SeedConeJetWriter +
0087 process.l1tLayer2EG
0088 )
0089 process.runPF.associate(process.PFInputsTask)
0090 process.schedule = cms.Schedule(process.runPF)
0091
0092
0093
0094
0095
0096 process.l1tLayer2EG.writeInPattern = True
0097 process.l1tLayer2EG.writeOutPattern = True
0098 process.l1tLayer2EG.inPatternFile.maxLinesPerFile = eventsPerFile_*54
0099 process.l1tLayer2EG.outPatternFile.maxLinesPerFile = eventsPerFile_*54
0100
0101
0102
0103 process.l1tLayer2SeedConeJetWriter.maxLinesPerFile = eventsPerFile_*54