Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:22:46

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.19 
0004 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
0005 # with command line options: SingleElectronPt10_cfi.py -s GEN,SIM,DIGI,L1 --pileup=NoPileUp --geometry DB --conditions=auto:startup -n 1 --no_exec
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 process = cms.Process('L1')
0009 
0010 # import of standard configurations
0011 process.load('Configuration.StandardSequences.Services_cff')
0012 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0013 process.load('FWCore.MessageService.MessageLogger_cfi')
0014 process.load('Configuration.EventContent.EventContent_cff')
0015 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0016 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0017 process.load('Configuration.Geometry.GeometryDB_cff')
0018 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0019 process.load('Configuration.StandardSequences.Generator_cff')
0020 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic8TeVCollision_cfi')
0021 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0022 process.load('Configuration.StandardSequences.SimIdeal_cff')
0023 process.load('Configuration.StandardSequences.Digi_cff')
0024 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0025 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0026 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0027 
0028 process.maxEvents = cms.untracked.PSet(
0029     input = cms.untracked.int32(1)
0030 )
0031 
0032 # Input source
0033 process.source = cms.Source("EmptySource")
0034 
0035 process.options = cms.untracked.PSet(
0036 
0037 )
0038 
0039 # Production Info
0040 process.configurationMetadata = cms.untracked.PSet(
0041     version = cms.untracked.string('$Revision: 1.19 $'),
0042     annotation = cms.untracked.string('SingleElectronPt10_cfi.py nevts:1'),
0043     name = cms.untracked.string('Applications')
0044 )
0045 
0046 # Output definition
0047 
0048 process.output = cms.OutputModule("PoolOutputModule",
0049     splitLevel = cms.untracked.int32(0),
0050     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0051     outputCommands = cms.untracked.vstring("keep *",
0052                        "drop *_mix_*_*"),
0053     fileName = cms.untracked.string('SingleElectronPt10_cfi_py_GEN_SIM_DIGI_L1.root'),
0054     dataset = cms.untracked.PSet(
0055         filterName = cms.untracked.string(''),
0056         dataTier = cms.untracked.string('')
0057     ),
0058     SelectEvents = cms.untracked.PSet(
0059         SelectEvents = cms.vstring('generation_step')
0060     )
0061 )
0062 
0063 # Additional output definition
0064 
0065 # Other statements
0066 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0067 from Configuration.AlCa.GlobalTag import GlobalTag
0068 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:startup', '')
0069 
0070 process.generator = cms.EDProducer("FlatRandomPtGunProducer",
0071     PGunParameters = cms.PSet(
0072         MaxPt = cms.double(20.01),
0073         MinPt = cms.double(19.99),
0074         PartID = cms.vint32(11),
0075         MaxEta = cms.double(2.5),
0076         MaxPhi = cms.double(3.14159265359),
0077         MinEta = cms.double(-2.5),
0078         MinPhi = cms.double(-3.14159265359)
0079     ),
0080     Verbosity = cms.untracked.int32(0),
0081     psethack = cms.string('single electron pt 10'),
0082     AddAntiParticle = cms.bool(True),
0083     firstRun = cms.untracked.uint32(1)
0084 )
0085 
0086 # upgrade calo stage 2
0087 process.load('L1Trigger.L1TCalorimeter.L1TCaloStage2_cff')
0088 process.l1tCaloStage2Layer1Digis.ecalToken = cms.InputTag("simEcalTriggerPrimitiveDigis")
0089 process.l1tCaloStage2Layer1Digis.hcalToken = cms.InputTag("simHcalTriggerPrimitiveDigis")
0090 
0091 process.load('L1Trigger.L1TCalorimeter.l1tStage2CaloAnalyzer_cfi')
0092 
0093 # enable debug message logging for our modules
0094 process.MessageLogger = cms.Service(
0095     "MessageLogger",
0096     destinations   = cms.untracked.vstring(
0097     'detailedInfo',
0098     'critical'
0099     ),
0100     detailedInfo   = cms.untracked.PSet(
0101     threshold  = cms.untracked.string('DEBUG') 
0102     ),
0103     debugModules = cms.untracked.vstring(
0104     'l1tCaloStage2TowerDigis',
0105     'l1tCaloStage2Digis'
0106     )
0107 )
0108 
0109 # TTree output file
0110 process.load("CommonTools.UtilAlgos.TFileService_cfi")
0111 process.TFileService.fileName = cms.string('l1t.root')
0112 
0113 # Path and EndPath definitions
0114 process.generation_step = cms.Path(process.pgen)
0115 process.simulation_step = cms.Path(process.psim)
0116 process.digitisation_step = cms.Path(process.pdigi)
0117 process.L1simulation_step = cms.Path(process.SimL1Emulator+process.L1TCaloStage2+process.l1tStage2CaloAnalyzer)
0118 #process.L1simulation_step = cms.Path(process.SimL1Emulator+process.L1TCaloStage2)
0119 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0120 process.endjob_step = cms.EndPath(process.endOfProcess)
0121 process.output_step = cms.EndPath(process.output)
0122 
0123 # Schedule definition
0124 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.L1simulation_step,process.endjob_step,process.output_step)
0125 # filter all path with the production filter sequence
0126 for path in process.paths:
0127     getattr(process,path)._seq = process.generator * getattr(process,path)._seq 
0128