Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:13:19

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') # needed to read HCal TPs
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.l1tLayer2SeedConeJets = l1tSeedConePFJetEmulatorProducer.clone(L1PFObject = cms.InputTag('l1tLayer2Deregionizer', 'Puppi'))
0045 process.l1tLayer2SeedConeJetWriter = l1tSeededConeJetFileWriter.clone(jets = "l1tLayer2SeedConeJets")
0046 
0047 process.l1tLayer1Barrel9 = process.l1tLayer1Barrel.clone()
0048 process.l1tLayer1Barrel9.puAlgo.nFinalSort = 32
0049 process.l1tLayer1Barrel9.regions[0].etaBoundaries = [ -1.5, -0.5, 0.5, 1.5 ] 
0050 process.l1tLayer1Barrel9.boards=cms.VPSet(
0051         cms.PSet(
0052             regions=cms.vuint32(*[0+9*ie+i for ie in range(3) for i in range(3)])),
0053         cms.PSet(
0054             regions=cms.vuint32(*[3+9*ie+i for ie in range(3) for i in range(3)])),
0055         cms.PSet(
0056             regions=cms.vuint32(*[6+9*ie+i for ie in range(3) for i in range(3)])),
0057     )
0058 
0059 from L1Trigger.Phase2L1ParticleFlow.l1tLayer1_patternWriters_cff import *
0060 process.l1tLayer1Barrel.patternWriters = cms.untracked.VPSet(*barrelWriterConfigs)
0061 #process.l1tLayer1Barrel9.patternWriters = cms.untracked.VPSet(*barrel9WriterConfigs) # not enabled for now
0062 process.l1tLayer1HGCal.patternWriters = cms.untracked.VPSet(*hgcalWriterConfigs)
0063 process.l1tLayer1HGCalNoTK.patternWriters = cms.untracked.VPSet(*hgcalNoTKWriterConfigs)
0064 process.l1tLayer1HF.patternWriters = cms.untracked.VPSet(*hfWriterConfigs)
0065 
0066 process.L1TPFInputsTask = cms.Task(
0067     process.TTClustersFromPhase2TrackerDigis,
0068     process.TTStubsFromPhase2TrackerDigis,
0069     process.TrackerDTCProducer,
0070     process.offlineBeamSpot,
0071     process.l1tTTTracksFromTrackletEmulation,
0072     process.SimL1EmulatorTask
0073 )
0074 process.runPF = cms.Path( 
0075         process.l1tLayer1Barrel +
0076         #process.l1tLayer1Barrel9 +
0077         process.l1tLayer1HGCal +
0078         process.l1tLayer1HGCalNoTK +
0079         process.l1tLayer1HF +
0080         process.l1tLayer1 +
0081         process.l1tLayer2EG +
0082         process.l1tLayer2Deregionizer +
0083         process.l1tLayer2SeedConeJets +
0084         process.l1tLayer2SeedConeJetWriter
0085     )
0086 process.runPF.associate(process.L1TPFInputsTask)
0087 process.schedule = cms.Schedule(process.runPF)
0088 
0089 
0090 #####################################################################################################################
0091 ## Layer 2 e/gamma 
0092 
0093 process.l1tLayer2EG.writeInPattern = True
0094 process.l1tLayer2EG.writeOutPattern = True
0095 process.l1tLayer2EG.inPatternFile.maxLinesPerFile = eventsPerFile_*54
0096 process.l1tLayer2EG.outPatternFile.maxLinesPerFile = eventsPerFile_*54
0097 
0098 #####################################################################################################################
0099 ## Layer 2 seeded-cone jets 
0100 process.l1tLayer2SeedConeJetWriter.maxLinesPerFile = eventsPerFile_*54