File indexing completed on 2024-04-06 12:32:30
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("CaloTest")
0004 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0005
0006 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0007 process.load('Configuration.StandardSequences.Generator_cff')
0008
0009 process.load("Configuration.StandardSequences.MagneticField_cff")
0010
0011 process.load("Geometry.CMSCommonData.ecalhcalGeometryXML_cfi")
0012 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0013 process.load("Geometry.HcalCommonData.hcalDDConstants_cff")
0014
0015 process.load("SimG4Core.Application.g4SimHits_cfi")
0016
0017 process.load("DQMServices.Core.DQM_cfg")
0018
0019 process.load("Validation.HcalHits.HcalHitValidation_cfi")
0020
0021 process.load("FWCore.MessageService.MessageLogger_cfi")
0022
0023
0024
0025
0026 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0027
0028 process.maxEvents = cms.untracked.PSet(
0029 input = cms.untracked.int32(5000)
0030 )
0031
0032 process.source = cms.Source("PoolSource",
0033 noEventSort = cms.untracked.bool(True),
0034 duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
0035 fileNames = cms.untracked.vstring('file:/afs/cern.ch/cms/data/CMSSW/Validation/HcalHits/data/12_X/mc_pi50_etaphi-+44.root')
0036 )
0037
0038
0039
0040 process.load("IOMC.RandomEngine.IOMC_cff")
0041 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0042 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0043 process.rndmStore = cms.EDProducer("RandomEngineStateProducer")
0044
0045 process.USER = cms.OutputModule("PoolOutputModule",
0046 fileName = cms.untracked.string('simevent_HB.root')
0047 )
0048
0049 process.p1 = cms.Path(process.VtxSmeared*process.generatorSmeared*process.g4SimHits*process.hcalHitValid)
0050 process.outpath = cms.EndPath(process.USER)
0051 process.VtxSmeared.SigmaX = 0.00001
0052 process.VtxSmeared.SigmaY = 0.00001
0053 process.VtxSmeared.SigmaZ = 0.00001
0054 process.g4SimHits.UseMagneticField = False
0055 process.g4SimHits.OnlySDs = ['EcalSensitiveDetector', 'CaloTrkProcessing', 'HcalSensitiveDetector']
0056 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0057 SimG4HcalValidation = cms.PSet(
0058 TimeLowLimit = cms.double(0.0),
0059 LabelNxNInfo = cms.untracked.string('HcalInfoNxN'),
0060 LabelLayerInfo = cms.untracked.string('HcalInfoLayer'),
0061 HcalHitThreshold = cms.double(1e-20),
0062 Phi0 = cms.double(0.3054),
0063 ConeSize = cms.double(0.5),
0064 InfoLevel = cms.int32(2),
0065 JetThreshold = cms.double(5.0),
0066 EcalHitThreshold = cms.double(1e-20),
0067 TimeUpLimit = cms.double(999.0),
0068 HcalClusterOnly = cms.bool(False),
0069 Eta0 = cms.double(0.3045),
0070 LabelJetsInfo = cms.untracked.string('HcalInfoJets'),
0071 Names = cms.vstring('HcalHits',
0072 'EcalHitsEB',
0073 'EcalHitsEE',
0074 'EcalHitsES'),
0075 HcalSampling = cms.bool(True)
0076 ),
0077 type = cms.string('SimG4HcalValidation')
0078 ))
0079
0080 process.hcalHitValid.outputFile = 'valid_HB.root'
0081
0082