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_Phase2C9_cff import Phase2C9
0004 process = cms.Process('DIGI',Phase2C9)
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.GeometryExtended2026D49Reco_cff')
0013 process.load('Configuration.Geometry.GeometryExtended2026D49_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/Phase2HLTTDRSummer20ReRECOMiniAOD/DoublePhoton_FlatPt-1To100/FEVT/PU200_111X_mcRun4_realistic_T15_v1_ext1-v2/1210000/F2E5E947-0CB4-D245-A943-17F2F05709D3.root'),
0033        inputCommands=cms.untracked.vstring(
0034            'keep *',
0035            'drop l1tTkPrimaryVertexs_L1TkPrimaryVertex__RECO',
0036            )
0037        )
0038 
0039 process.options = cms.untracked.PSet(
0040 
0041 )
0042 
0043 # Production Info
0044 process.configurationMetadata = cms.untracked.PSet(
0045     version = cms.untracked.string('$Revision: 1.20 $'),
0046     annotation = cms.untracked.string('SingleElectronPt10_cfi nevts:10'),
0047     name = cms.untracked.string('Applications')
0048 )
0049 
0050 # Output definition
0051 process.TFileService = cms.Service(
0052     "TFileService",
0053     fileName = cms.string("ntuple.root")
0054     )
0055 
0056 # Other statements
0057 from Configuration.AlCa.GlobalTag import GlobalTag
0058 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T15', '')
0059 
0060 # load HGCAL TPG simulation
0061 #process.load('L1Trigger.L1THGCal.hgcalTriggerPrimitives_cff')
0062 process.load('L1Trigger.L1THGCal.hgcalTriggerPrimitivesNew_cff')
0063 
0064 # Use new Stage 1 processor
0065 from L1Trigger.L1THGCal.customNewProcessors import custom_stage1_truncation
0066 process = custom_stage1_truncation(process)
0067 
0068 # Switch to latest trigger geometry containing information on links mapping
0069 from L1Trigger.L1THGCal.customTriggerGeometry import custom_geometry_V11_Imp3
0070 process = custom_geometry_V11_Imp3(process)
0071 
0072 process.hgcl1tpg_step = cms.Path(process.L1THGCalTriggerPrimitives)
0073 
0074 
0075 # load ntuplizer and custom to use collections from Stag1 truncation processor
0076 process.load('L1Trigger.L1THGCalUtilities.hgcalTriggerNtuples_cff')
0077 from L1Trigger.L1THGCalUtilities.customNtuples import custom_ntuples_stage1_truncation
0078 from L1Trigger.L1THGCalUtilities.customNtuples import custom_ntuples_layer1_truncation
0079 process = custom_ntuples_stage1_truncation(process)
0080 #process = custom_ntuples_layer1_truncation(process)
0081 process.ntuple_step = cms.Path(process.L1THGCalTriggerNtuples)
0082 
0083 # Schedule definition
0084 process.schedule = cms.Schedule(process.hgcl1tpg_step, process.ntuple_step)
0085 
0086 # Add early deletion of temporary data products to reduce peak memory need
0087 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0088 process = customiseEarlyDelete(process)
0089 # End adding early deletion