Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-02 04:38:43

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 #if 'MessageLogger' in process.__dict__:
0023 #    process.MessageLogger.HcalHitValid=dict()
0024 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(5000)
0028 )
0029 
0030 process.source = cms.Source("PoolSource",
0031     noEventSort = cms.untracked.bool(True),
0032     duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
0033     fileNames = cms.untracked.vstring('file:/afs/cern.ch/cms/data/CMSSW/Validation/HcalHits/data/12_X/mc_pi50_etaphi-+244.root') 
0034 )
0035 
0036 #process.Timing = cms.Service("Timing")
0037 
0038 process.load("IOMC.RandomEngine.IOMC_cff")
0039 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0040 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0041 process.rndmStore = cms.EDProducer("RandomEngineStateProducer")
0042 
0043 process.USER = cms.OutputModule("PoolOutputModule",
0044     fileName = cms.untracked.string('simevent_HE.root')
0045 )
0046 
0047 process.p1 = cms.Path(process.VtxSmeared*process.generatorSmeared*process.g4SimHits*process.hcalHitValid)
0048 process.outpath = cms.EndPath(process.USER)
0049 process.VtxSmeared.SigmaX = 0.00001
0050 process.VtxSmeared.SigmaY = 0.00001
0051 process.VtxSmeared.SigmaZ = 0.00001
0052 process.g4SimHits.UseMagneticField = False
0053 process.g4SimHits.OnlySDs = ['EcalSensitiveDetector', 'CaloTrkProcessing', 'HcalSensitiveDetector']
0054 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0055     SimG4HcalValidation = cms.PSet(
0056         TimeLowLimit = cms.double(0.0),
0057         LabelNxNInfo = cms.untracked.string('HcalInfoNxN'),
0058         LabelLayerInfo = cms.untracked.string('HcalInfoLayer'),
0059         HcalHitThreshold = cms.double(1e-20),
0060         Phi0 = cms.double(0.3054),
0061         ConeSize = cms.double(0.5),
0062         InfoLevel = cms.int32(2),
0063         JetThreshold = cms.double(5.0),
0064         EcalHitThreshold = cms.double(1e-20),
0065         TimeUpLimit = cms.double(999.0),
0066         HcalClusterOnly = cms.bool(False),
0067         Eta0 = cms.double(0.3045),
0068         LabelJetsInfo = cms.untracked.string('HcalInfoJets'),
0069         Names = cms.vstring('HcalHits', 
0070             'EcalHitsEB', 
0071             'EcalHitsEE', 
0072             'EcalHitsES'),
0073         HcalSampling = cms.bool(True)
0074     ),
0075     type = cms.string('SimG4HcalValidation')
0076 ))
0077 #process.DQM.collectorHost = ''
0078 process.hcalHitValid.outputFile = 'valid_HE.root'