Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-07 22:22:33

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Eras.Era_Run3_cff import Run3
0003 
0004 from FWCore.ParameterSet.VarParsing import VarParsing
0005 options = VarParsing('analysis')
0006 options.parseArguments()
0007 
0008 ## process def
0009 process = cms.Process("TEST", Run3)
0010 process.load("FWCore.MessageService.MessageLogger_cfi")
0011 process.load('Configuration.StandardSequences.Services_cff')
0012 process.load('Configuration.StandardSequences.GeometrySimDB_cff')
0013 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0014 process.load("Configuration.StandardSequences.MagneticField_cff")
0015 process.load('Configuration.EventContent.EventContent_cff')
0016 process.load('Configuration.StandardSequences.Generator_cff')
0017 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0018 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0019 process.load('IOMC.EventVertexGenerators.VtxSmearedRun3RoundOptics25ns13TeVLowSigmaZ_cfi')
0020 process.load('Configuration.StandardSequences.SimIdeal_cff')
0021 process.load('Configuration.StandardSequences.Digi_cff')
0022 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0023 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0024 process.load("EventFilter.CSCRawToDigi.cscUnpacker_cfi")
0025 process.load("EventFilter.CSCRawToDigi.cscPacker_cfi")
0026 process.load("EventFilter.CSCRawToDigi.cscPackerUnpackerUnitTestDef_cfi")
0027 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0028 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031         input = cms.untracked.int32(10)
0032 )
0033 
0034 process.source = cms.Source("EmptySource")
0035 
0036 ## global tag
0037 from Configuration.AlCa.GlobalTag import GlobalTag
0038 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0039 
0040 process.XMLFromDBSource.label = cms.string("Extended")
0041 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0042 
0043 process.generator = cms.EDFilter(
0044         "Pythia8PtGun",
0045         PGunParameters = cms.PSet(
0046         AddAntiParticle = cms.bool(True),
0047                 MaxEta = cms.double(2.4),
0048                 MaxPhi = cms.double(3.14159265359),
0049                 MaxPt = cms.double(1000.1),
0050                 MinEta = cms.double(0.9),
0051                 MinPhi = cms.double(-3.14159265359),
0052                 MinPt = cms.double(1.9),
0053                 ParticleID = cms.vint32(-13)
0054         ),
0055         PythiaParameters = cms.PSet(
0056                 parameterSets = cms.vstring()
0057         ),
0058         Verbosity = cms.untracked.int32(0),
0059         firstRun = cms.untracked.uint32(1),
0060         psethack = cms.string('single mu pt 1')
0061 )
0062 
0063 
0064 process.FEVTDEBUGHLToutput = cms.OutputModule(
0065         "PoolOutputModule",
0066         SelectEvents = cms.untracked.PSet(
0067                 SelectEvents = cms.vstring('generation_step')
0068         ),
0069         dataset = cms.untracked.PSet(
0070                 dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW'),
0071                 filterName = cms.untracked.string('')
0072         ),
0073         fileName = cms.untracked.string('file:step1.root'),
0074         outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
0075         splitLevel = cms.untracked.int32(0)
0076 )
0077 
0078 process.mix.digitizers = cms.PSet(process.theDigitizersValid)
0079 
0080 process.muonCSCDigis.InputObjects = "cscpacker:CSCRawData"
0081 
0082 ## specification of the test with the packer expert settings
0083 process.cscPackerUnpackerUnitTestDef.usePreTriggers = process.cscpacker.usePreTriggers
0084 process.cscPackerUnpackerUnitTestDef.packEverything = process.cscpacker.packEverything
0085 process.cscPackerUnpackerUnitTestDef.packByCFEB = process.cscpacker.packByCFEB
0086 process.cscPackerUnpackerUnitTestDef.formatVersion = process.cscpacker.formatVersion
0087 process.cscPackerUnpackerUnitTestDef.useCSCShowers = process.cscpacker.useCSCShowers
0088 
0089 process.generation_step = cms.Path(process.pgen)
0090 process.simulation_step = cms.Path(process.psim)
0091 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0092 process.digitisation_step = cms.Path(process.pdigi_valid)
0093 process.L1simulation_step = cms.Path(process.simMuonGEMPadDigis * process.simMuonGEMPadDigiClusters * process.simCscTriggerPrimitiveDigis)
0094 process.testPackUnpack_step = cms.Path(process.cscpacker * process.muonCSCDigis * process.cscPackerUnpackerUnitTestDef)
0095 process.endjob_step = cms.EndPath(process.endOfProcess)
0096 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
0097 
0098 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.L1simulation_step, process.testPackUnpack_step, process.endjob_step)
0099 
0100 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0101 associatePatAlgosToolsTask(process)
0102 # filter all path with the production filter sequence
0103 for path in process.paths:
0104     getattr(process,path).insert(0, process.generator)