Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:46

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0004 process = cms.Process('DIGI',Phase2C17I13M9)
0005 
0006 # import of standard configurations
0007 process.load('Configuration.StandardSequences.Services_cff')
0008 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0009 process.load('FWCore.MessageService.MessageLogger_cfi')
0010 process.load('Configuration.EventContent.EventContent_cff')
0011 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0012 process.load('Configuration.Geometry.GeometryExtended2026D88Reco_cff')
0013 process.load('Configuration.Geometry.GeometryExtended2026D88_cff')
0014 process.load('Configuration.StandardSequences.MagneticField_cff')
0015 process.load('Configuration.StandardSequences.Generator_cff')
0016 process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi')
0017 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0018 process.load('Configuration.StandardSequences.SimIdeal_cff')
0019 process.load('Configuration.StandardSequences.Digi_cff')
0020 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0021 process.load('Configuration.StandardSequences.DigiToRaw_cff')
0022 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0023 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0024 
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(5)
0028 )
0029 
0030 # Input source
0031 process.source = cms.Source("PoolSource",
0032        fileNames = cms.untracked.vstring('/store/mc/Phase2Fall22DRMiniAOD/TT_TuneCP5_14TeV-powheg-pythia8/GEN-SIM-DIGI-RAW-MINIAOD/PU200_125X_mcRun4_realistic_v2_ext1-v1/30000/000c5e5f-78f7-44ee-95fe-7b2f2c2e2312.root'),
0033        inputCommands=cms.untracked.vstring(
0034            'keep *',
0035            )
0036        )
0037 
0038 process.options = cms.untracked.PSet(
0039 
0040 )
0041 
0042 # Production Info
0043 process.configurationMetadata = cms.untracked.PSet(
0044     version = cms.untracked.string('$Revision: 1.20 $'),
0045     annotation = cms.untracked.string('SingleElectronPt10_cfi nevts:10'),
0046     name = cms.untracked.string('Applications')
0047 )
0048 
0049 # Output definition
0050 process.TFileService = cms.Service(
0051     "TFileService",
0052     fileName = cms.string("ntuple.root")
0053     )
0054 
0055 # Other statements
0056 from Configuration.AlCa.GlobalTag import GlobalTag
0057 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0058 
0059 # load HGCAL TPG simulation
0060 #process.load('L1Trigger.L1THGCal.hgcalTriggerPrimitives_cff')
0061 process.load('L1Trigger.L1THGCal.hgcalTriggerPrimitivesNew_cff')
0062 
0063 # Use new Stage 1 processor
0064 from L1Trigger.L1THGCal.customNewProcessors import custom_stage1_truncation
0065 process = custom_stage1_truncation(process)
0066 
0067 # Switch to latest trigger geometry containing information on links mapping
0068 from L1Trigger.L1THGCal.customTriggerGeometry import custom_geometry_V11_Imp3
0069 process = custom_geometry_V11_Imp3(process)
0070 
0071 process.hgcl1tpg_step = cms.Path(process.L1THGCalTriggerPrimitives)
0072 
0073 
0074 # load ntuplizer and custom to use collections from Stag1 truncation processor
0075 process.load('L1Trigger.L1THGCalUtilities.hgcalTriggerNtuples_cff')
0076 from L1Trigger.L1THGCalUtilities.customNtuples import custom_ntuples_stage1_truncation
0077 from L1Trigger.L1THGCalUtilities.customNtuples import custom_ntuples_layer1_truncation
0078 process = custom_ntuples_stage1_truncation(process)
0079 #process = custom_ntuples_layer1_truncation(process)
0080 process.ntuple_step = cms.Path(process.L1THGCalTriggerNtuples)
0081 
0082 # Schedule definition
0083 process.schedule = cms.Schedule(process.hgcl1tpg_step, process.ntuple_step)
0084 
0085 # Add early deletion of temporary data products to reduce peak memory need
0086 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0087 process = customiseEarlyDelete(process)
0088 # End adding early deletion