Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-29 01:21:49

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("HFShowerLib")
0004 
0005 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0006 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0007 process.load("Geometry.CMSCommonData.cmsExtendedGeometryHFLibraryXML_cfi")
0008 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cff")
0009 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0010 process.load("Geometry.HcalCommonData.hcalDDConstants_cff")
0011 process.load("Geometry.MuonNumbering.muonGeometryConstants_cff")
0012 process.load("Geometry.MuonNumbering.muonOffsetESProducer_cff")
0013 
0014 process.load("Configuration.StandardSequences.MagneticField_cff")
0015 process.load("Configuration.EventContent.EventContent_cff")
0016 process.load('Configuration.StandardSequences.Generator_cff')
0017 process.load('Configuration.StandardSequences.SimIdeal_cff')
0018 
0019 process.load("Configuration.StandardSequences.Services_cff")
0020 process.load("Configuration.StandardSequences.MagneticField_cff")
0021 process.g4SimHits.UseMagneticField = False
0022 
0023 process.load("Configuration.StandardSequences.Services_cff")
0024 process.RandomNumberGeneratorService.generator.initialSeed = 12345
0025 
0026 from IOMC.RandomEngine.RandomServiceHelper import RandomNumberServiceHelper
0027 randSvc = RandomNumberServiceHelper(process.RandomNumberGeneratorService)
0028 randSvc.populate()
0029 
0030 process.load('FWCore.MessageService.MessageLogger_cfi')
0031 if hasattr(process,'MessageLogger'):
0032     process.MessageLogger.FiberSim=dict()
0033     process.MessageLogger.CaloSim=dict()
0034     process.MessageLogger.HcalSim=dict()
0035     process.MessageLogger.HFShower=dict()
0036     process.MessageLogger.HcalForwardLib=dict()
0037     process.MessageLogger.SensitiveDetector=dict()
0038 
0039 process.Timing = cms.Service("Timing")
0040 
0041 process.source = cms.Source("EmptySource")
0042 
0043 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0044     PGunParameters = cms.PSet(
0045         PartID = cms.vint32(11),
0046         MinEta = cms.double(4),
0047         MaxEta = cms.double(4),
0048         MinPhi = cms.double(0),
0049         MaxPhi = cms.double(0),
0050         MinE     = cms.double(10),
0051         MaxE     = cms.double(10)
0052     ),
0053     Verbosity = cms.untracked.int32(0),
0054     AddAntiParticle = cms.bool(False),
0055     firstRun = cms.untracked.uint32(1)
0056 )
0057 
0058 process.TFileService = cms.Service("TFileService",
0059     fileName = cms.string('hfShowerLibSimu.root')
0060 )
0061 
0062 process.maxEvents = cms.untracked.PSet(
0063     input = cms.untracked.int32(10)
0064 )
0065 
0066 # --- make IP(0,0,0) 

0067 process.VtxSmeared.SigmaX = 0.0
0068 process.VtxSmeared.SigmaY = 0.0
0069 process.VtxSmeared.SigmaZ = 0.0
0070 
0071 # for GEN produced since 760pre6, for older GEN - just "":

0072 process.VtxSmeared.src = cms.InputTag("generator", "unsmeared")
0073 process.generatorSmeared = cms.EDProducer("GeneratorSmearedProducer")
0074 process.g4SimHits.Generator.HepMCProductLabel = cms.InputTag('VtxSmeared')
0075 
0076 process.p1 = cms.Path(
0077  process.generator *
0078  process.VtxSmeared *
0079  process.generatorSmeared *
0080  process.g4SimHits
0081 )
0082 
0083 
0084 #process.p1 = cms.Path(cms.SequencePlaceholder("randomEngineStateProducer")+process.VtxSmeared*process.g4SimHits)

0085 #process.p1 = cms.Path(process.generator*process.g4SimHits)

0086 #process.outpath = cms.EndPath(process.o1)

0087 process.g4SimHits.NonBeamEvent = True
0088 process.g4SimHits.Generator.ApplyPCuts   = False
0089 process.g4SimHits.Generator.ApplyEtaCuts = False
0090 #process.g4SimHits.Physics.type = 'SimG4Core/Physics/FTFP_BERT_EMM'

0091 process.g4SimHits.Physics.DefaultCutValue = 0.1
0092 process.g4SimHits.HFShower.ApplyFiducialCut = cms.bool(False)
0093 
0094