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 from Configuration.Eras.Era_Run2_2018_cff import Run2_2018
0004 process = cms.Process("CaloTest",Run2_2018)
0005 
0006 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0007 
0008 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0009 process.load('Configuration.StandardSequences.Generator_cff')
0010 
0011 #Geometry
0012 process.load("SimG4CMS.Calo.testGeometryPMTXML_cfi")
0013 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0014 process.load("Geometry.HcalCommonData.hcalDDConstants_cff")
0015 
0016 #Magnetic Field
0017 process.load("Configuration.StandardSequences.MagneticField_cff")
0018 
0019 process.load("Configuration.EventContent.EventContent_cff")
0020 
0021 process.load("SimG4Core.Application.g4SimHits_cfi")
0022 
0023 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0024 from Configuration.AlCa.autoCond import autoCond
0025 process.GlobalTag.globaltag = autoCond['run2_mc']
0026 
0027 process.MessageLogger = cms.Service("MessageLogger",
0028     cerr = cms.untracked.PSet(
0029         enable = cms.untracked.bool(False)
0030     ),
0031     cout = cms.untracked.PSet(
0032         HcalSim = cms.untracked.PSet(
0033             limit = cms.untracked.int32(-1)
0034         ),
0035         ValidHcal = cms.untracked.PSet(
0036             limit = cms.untracked.int32(-1)
0037         ),
0038         default = cms.untracked.PSet(
0039             limit = cms.untracked.int32(0)
0040         ),
0041         enable = cms.untracked.bool(True)
0042     )
0043 )
0044 
0045 process.maxEvents = cms.untracked.PSet(
0046     input = cms.untracked.int32(1000)
0047 )
0048 
0049 process.source = cms.Source("EmptySource")
0050 
0051 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0052     PGunParameters = cms.PSet(
0053         PartID = cms.vint32(13),
0054         MinEta = cms.double(2.95),
0055         MaxEta = cms.double(3.30),
0056         MinPhi = cms.double(-3.1415926),
0057         MaxPhi = cms.double(3.1415926),
0058         MinE   = cms.double(99.99),
0059         MaxE   = cms.double(100.01)
0060     ),
0061     AddAntiParticle = cms.bool(False),
0062     Verbosity       = cms.untracked.int32(0),
0063     firstRun        = cms.untracked.uint32(1)
0064 )
0065 
0066 process.Timing = cms.Service("Timing")
0067 
0068 process.load("IOMC.RandomEngine.IOMC_cff")
0069 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0070 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0071 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0072 process.rndmStore = cms.EDProducer("RandomEngineStateProducer")
0073 
0074 process.USER = cms.OutputModule("PoolOutputModule",
0075     process.FEVTSIMEventContent,
0076     fileName = cms.untracked.string('simevent_HFPMT.root')
0077 )
0078 
0079 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits)
0080 process.outpath = cms.EndPath(process.USER)
0081 process.g4SimHits.Physics.type = 'SimG4Core/Physics/QGSP_BERT_EML'
0082 process.g4SimHits.Physics.DefaultCutValue = 0.1
0083 process.g4SimHits.HCalSD.UseShowerLibrary = False
0084 process.g4SimHits.HCalSD.UseParametrize = True
0085 process.g4SimHits.HCalSD.UsePMTHits = True
0086 process.g4SimHits.OnlySDs = ['EcalSensitiveDetector', 'CaloTrkProcessing', 'HcalSensitiveDetector']
0087 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0088     SimG4HcalValidation = cms.PSet(
0089         TimeLowLimit = cms.double(0.0),
0090         LabelNxNInfo = cms.untracked.string('HcalInfoNxN'),
0091         LabelLayerInfo = cms.untracked.string('HcalInfoLayer'),
0092         HcalHitThreshold = cms.double(1e-20),
0093         Phi0 = cms.double(0.3054),
0094         ConeSize = cms.double(0.5),
0095         InfoLevel = cms.int32(2),
0096         JetThreshold = cms.double(5.0),
0097         EcalHitThreshold = cms.double(1e-20),
0098         TimeUpLimit = cms.double(999.0),
0099         HcalClusterOnly = cms.bool(False),
0100         Eta0 = cms.double(0.3045),
0101         LabelJetsInfo = cms.untracked.string('HcalInfoJets'),
0102         Names = cms.vstring('HcalHits', 
0103             'EcalHitsEB', 
0104             'EcalHitsEE', 
0105             'EcalHitsES'),
0106         HcalSampling = cms.bool(True)
0107     ),
0108     type = cms.string('SimG4HcalValidation')
0109 ))
0110 
0111