Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-20 22:55:06

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 process.load("SimG4CMS.Calo.PythiaMinBias_cfi")
0005 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0006 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0007 process.load("Geometry.CMSCommonData.ecalhcalGeometryXML_cfi")
0008 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0009 process.load("Geometry.HcalCommonData.hcalDDConstants_cff")
0010 process.load("Geometry.MuonNumbering.muonGeometryConstants_cff")
0011 process.load("Geometry.MuonNumbering.muonOffsetESProducer_cff")
0012 process.load('FWCore.MessageService.MessageLogger_cfi')
0013 process.load("Configuration.StandardSequences.MagneticField_cff")
0014 process.load("Configuration.EventContent.EventContent_cff")
0015 process.load('Configuration.StandardSequences.Generator_cff')
0016 process.load('Configuration.StandardSequences.SimIdeal_cff')
0017 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0018 from Configuration.AlCa.autoCond import autoCond
0019 process.GlobalTag.globaltag = autoCond['run1_mc']
0020 
0021 if hasattr(process,'MessageLogger'):
0022     process.MessageLogger.HFShower = dict()
0023     process.MessageLogger.HcalSim = dict()
0024 
0025 process.load("IOMC.RandomEngine.IOMC_cff")
0026 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0027 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0028 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0029 
0030 process.Timing = cms.Service("Timing")
0031 
0032 process.source = cms.Source("EmptySource",
0033     firstRun        = cms.untracked.uint32(1),
0034     firstEvent      = cms.untracked.uint32(1)
0035 )
0036 
0037 process.maxEvents = cms.untracked.PSet(
0038     input = cms.untracked.int32(10)
0039 )
0040 
0041 process.rndmStore = cms.EDProducer("RandomEngineStateProducer")
0042 
0043 process.output = cms.OutputModule("PoolOutputModule",
0044     process.FEVTSIMEventContent,
0045     fileName = cms.untracked.string('simevent.root')
0046 )
0047 
0048 process.TFileService = cms.Service("TFileService",
0049     fileName = cms.string('MinBiasTestAnalysis.root')
0050 )
0051 
0052 process.load('SimG4CMS.Calo.hcalTestAnalyzer_cfi')
0053 
0054 process.generation_step = cms.Path(process.pgen)
0055 process.simulation_step = cms.Path(process.psim)
0056 process.analysis_step = cms.Path(process.hcalTestAnalyzer)
0057 process.out_step = cms.EndPath(process.output)
0058 
0059 process.g4SimHits.Physics.type = 'SimG4Core/Physics/QGSP_FTFP_BERT_EML'
0060 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0061     HcalQie = cms.PSet(
0062         NumOfBuckets = cms.int32(10),
0063         BaseLine = cms.int32(4),
0064         BinOfMax = cms.int32(6),
0065         PreSamples = cms.int32(0),
0066         EDepPerPE = cms.double(0.0005),
0067         SignalBuckets = cms.int32(2),
0068         SigmaNoise = cms.double(0.5),
0069         qToPE = cms.double(4.0)
0070     ),
0071     type = cms.string('HcalTestAnalysis'),
0072     HcalTestAnalysis = cms.PSet(
0073         Eta0 = cms.double(0.0),
0074         LayerGrouping = cms.int32(1),
0075         FileName = cms.string('MinBiasTestAnalysis.root'),
0076         Names = cms.vstring('HcalHits', 
0077             'EcalHitsEB', 
0078             'EcalHitsEE'),
0079         CentralTower = cms.int32(404),
0080         Phi0 = cms.double(0.0)
0081     )
0082 ))
0083 
0084 # Schedule definition
0085 process.schedule = cms.Schedule(process.generation_step,
0086                                 process.simulation_step,
0087                                 process.analysis_step,
0088                                 process.out_step
0089                                 )
0090 
0091 # filter all path with the production filter sequence
0092 for path in process.paths:
0093         getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0094