Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-16 23:25:17

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run2_2018_cff import Run2_2018
0004 process = cms.Process("ANALYSIS",Run2_2018)
0005 
0006 process.load("FWCore.MessageService.MessageLogger_cfi")
0007 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0008 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0009 process.load('Configuration.StandardSequences.Services_cff')
0010 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0011 process.load("Configuration.StandardSequences.MagneticField_cff")
0012 process.load('Configuration.StandardSequences.Generator_cff')
0013 process.load('Configuration.StandardSequences.SimIdeal_cff')
0014 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0015 
0016 from Configuration.AlCa.GlobalTag import GlobalTag
0017 process.GlobalTag = GlobalTag(process.GlobalTag,'auto:run2_data','')
0018 
0019 if 'MessageLogger' in process.__dict__:
0020     process.MessageLogger.HcalIsoTrack=dict()
0021 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0022 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0023 
0024 process.load("IOMC.RandomEngine.IOMC_cff")
0025 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0026 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0027 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(1)
0031 )
0032 
0033 process.source = cms.Source("EmptySource",
0034     firstRun        = cms.untracked.uint32(1),
0035     firstEvent      = cms.untracked.uint32(1)
0036 )
0037 
0038 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0039     PGunParameters = cms.PSet(
0040         PartID = cms.vint32(211),
0041         MinEta = cms.double(1.52),
0042         MaxEta = cms.double(3.00),
0043         MinPhi = cms.double(-3.1415926),
0044         MaxPhi = cms.double(3.1415926),
0045         MinE   = cms.double(100.00),
0046         MaxE   = cms.double(100.00)
0047     ),
0048     Verbosity       = cms.untracked.int32(0),
0049     AddAntiParticle = cms.bool(False)
0050 )
0051 
0052 process.load('Calibration.HcalCalibAlgos.hcalTestThreshold_cff')
0053 
0054 process.generation_step = cms.Path(process.pgen)
0055 process.simulation_step = cms.Path(process.psim)
0056 process.analysis_step = cms.Path(process.hcalTestThreshold)
0057 
0058 # Schedule definition
0059 process.schedule = cms.Schedule(process.generation_step,
0060                                 process.simulation_step,
0061                                 process.analysis_step
0062                                 )
0063 
0064 # filter all path with the production filter sequence
0065 for path in process.paths:
0066         getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0067