Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:12:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2C10_cff import Phase2C10
0004 process = cms.Process('REDOL1',Phase2C10)
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.GeometryExtended2026D60Reco_cff')
0013 process.load('Configuration.Geometry.GeometryExtended2026D60_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(1000)
0028 )
0029 
0030 # Input source
0031 process.source = cms.Source("EmptySource")
0032 
0033 process.options = cms.untracked.PSet(
0034      wantSummary = cms.untracked.bool(False),
0035      numberOfThreads = cms.untracked.uint32(8),
0036      numberOfStreams = cms.untracked.uint32(8)
0037 )
0038 
0039 # Production Info
0040 process.configurationMetadata = cms.untracked.PSet(
0041     version = cms.untracked.string('$Revision: 1.20 $'),
0042     annotation = cms.untracked.string('SingleElectronPt10_cfi nevts:10'),
0043     name = cms.untracked.string('Applications')
0044 )
0045 
0046 # Output definition
0047 
0048 # this is for the test of the V9 Geo
0049 process.FEVTDEBUGoutputGEO = cms.OutputModule("PoolOutputModule",
0050     splitLevel = cms.untracked.int32(0),
0051     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0052     outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
0053                                            fileName = cms.untracked.string('file:/tmp/dalfonso/junk.root'),
0054     dataset = cms.untracked.PSet(
0055         filterName = cms.untracked.string(''),
0056         dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW')
0057     ),
0058     SelectEvents = cms.untracked.PSet(
0059         SelectEvents = cms.vstring('generation_step')
0060     )
0061 )
0062 
0063 ##################
0064 
0065 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0066     splitLevel = cms.untracked.int32(0),
0067     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0068     outputCommands = cms.untracked.vstring(
0069         'keep *_genParticles_*_*',
0070         'keep *_caloParticles_*_*',
0071         'keep *_*l1tHGCalBackEndLayer1Producer*_*_*',
0072         'keep *_*l1tHGCalBackEndLayer2Producer*_*_*',
0073         'keep *_*l1tHGCalTowerMapProducer*_*_*',
0074         'keep *_*l1tHGCalTowerProducer*_*_*'
0075     ),
0076 
0077     fileName = cms.untracked.string('file:/tmp/dalfonso/test.root')
0078 )
0079 
0080 ##################
0081 
0082 # Additional output definition
0083 process.TFileService = cms.Service(
0084     "TFileService",
0085     fileName = cms.string("/tmp/dalfonso/test_triggergeom.root")
0086     )
0087 
0088 
0089 # Other statements
0090 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0091 from Configuration.AlCa.GlobalTag import GlobalTag
0092 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T15', '')
0093 
0094 
0095 process.generator = cms.EDFilter("Pythia8PtGun",
0096     PGunParameters = cms.PSet(
0097         AddAntiParticle = cms.bool(True),
0098         MinEta = cms.double(3.499),
0099         MaxEta = cms.double(3.501),
0100         MaxPhi = cms.double(3.14159265359),
0101         MinPhi = cms.double(-3.14159265359),
0102         MinPt = cms.double(19.999),
0103         MaxPt = cms.double(20.001),
0104 # 13 muon and 11 ele works, pions 211 no
0105 #        ParticleID = cms.vint32(211)
0106         ParticleID = cms.vint32(22)
0107     ),
0108     PythiaParameters = cms.PSet(
0109         parameterSets = cms.vstring()
0110     ),
0111     Verbosity = cms.untracked.int32(0),
0112     firstRun = cms.untracked.uint32(1),
0113     psethack = cms.string('single pion pt 10 eta 35')
0114 )
0115 
0116 process.mix.digitizers = cms.PSet(process.theDigitizersValid)
0117 
0118 
0119 # Path and EndPath definitions
0120 process.generation_step = cms.Path(process.pgen)
0121 process.simulation_step = cms.Path(process.psim)
0122 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0123 process.digitisation_step = cms.Path(process.pdigi_valid)
0124 process.L1simulation_step = cms.Path(process.SimL1Emulator)
0125 process.digi2raw_step = cms.Path(process.DigiToRaw)
0126 process.endjob_step = cms.EndPath(process.endOfProcess)
0127 #process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutputGEO)
0128 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0129 
0130 process.load('L1Trigger.L1THGCal.hgcalTriggerPrimitives_cff')
0131 # Eventually modify default geometry parameters
0132 ##from L1Trigger.L1THGCal.customTriggerGeometry import custom_geometry_V9
0133 from L1Trigger.L1THGCal.customTriggerGeometry import custom_geometry_decentralized_V11
0134 process = custom_geometry_decentralized_V11(process)
0135 
0136 process.L1THGCaltriggergeomtester = cms.EDAnalyzer(
0137     "HGCalTriggerGeomTesterV9Imp2"
0138     )
0139 process.test_step = cms.Path(process.L1THGCaltriggergeomtester)
0140 
0141 
0142 ## to test the full TP
0143 process.hgcl1tpg_step = cms.Path(process.L1THGCalTriggerPrimitives)
0144 
0145 # Schedule definition
0146 # test_step
0147 #process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.L1simulation_step,process.digi2raw_step,process.test_step,process.endjob_step,process.FEVTDEBUGoutput_step)
0148 
0149 # hgcl1tpg_step
0150 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.L1simulation_step,process.digi2raw_step,process.hgcl1tpg_step,process.endjob_step,process.FEVTDEBUGoutput_step)
0151 
0152 # filter all path with the production filter sequence
0153 for path in process.paths:
0154     getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0155 
0156 # Add early deletion of temporary data products to reduce peak memory need
0157 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0158 process = customiseEarlyDelete(process)