Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-09 23:35:30

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CaloTest")
0004 process.load("Configuration.EventContent.EventContent_cff")
0005 process.load('FWCore.MessageService.MessageLogger_cfi')
0006 process.load('GeneratorInterface.Core.generatorSmeared_cfi')
0007 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0008 process.load("SimG4CMS.CherenkovAnalysis.testMuon_cfi")
0009 process.load("Geometry.HcalCommonData.hcalDDDSimConstants_cff")
0010 process.load("SimG4Core.Application.g4SimHits_cfi")
0011 
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(500000)
0014 )
0015 process.o1 = cms.OutputModule("PoolOutputModule",
0016     process.FEVTSIMEventContent,
0017     fileName = cms.untracked.string('simevent_1.root')
0018 )
0019 
0020 process.TFileService = cms.Service("TFileService",
0021     fileName = cms.string('ecHit_1.root')
0022 )
0023 
0024 process.Timing = cms.Service("Timing")
0025 
0026 process.source = cms.Source("EmptySource")
0027 
0028 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0029     PGunParameters = cms.PSet(
0030         PartID = cms.vint32(13),
0031         MinEta = cms.double(0.0),
0032         MaxEta = cms.double(0.0),
0033         MinPhi = cms.double(0.0),
0034         MaxPhi = cms.double(0.0),
0035         MinE   = cms.double(200.0),
0036         MaxE   = cms.double(200.0)
0037     ),
0038     AddAntiParticle = cms.bool(False),
0039     Verbosity = cms.untracked.int32(0)
0040 )
0041 
0042 process.VtxSmeared = cms.EDProducer("GaussEvtVtxGenerator",
0043     src   = cms.InputTag("generator", "unsmeared"),
0044     MeanX = cms.double(-12.0),
0045     MeanY = cms.double(0.0),
0046     MeanZ = cms.double(0.0),
0047     SigmaX = cms.double(0.0),
0048     SigmaY = cms.double(0.0),
0049     SigmaZ = cms.double(0.0),
0050     TimeOffset = cms.double(0.0)
0051 )
0052 
0053 process.MessageLogger.cerr.FwkReport.reportEvery = 5
0054 if hasattr(process,'MessageLogger'):
0055     process.MessageLogger.EcalSim=dict()
0056     process.MessageLogger.CherenkovAnalysis=dict()
0057 
0058 process.load("IOMC.RandomEngine.IOMC_cff")
0059 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0060 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0061 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0062 
0063 process.load("SimG4CMS.CherenkovAnalysis.xtalDedxAnalysis_cfi")
0064 
0065 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits*process.xtalDedxAnalysis)
0066 process.outpath = cms.EndPath(process.o1)
0067 process.g4SimHits.UseMagneticField = False
0068 process.g4SimHits.Physics.type = 'SimG4Core/Physics/QGSP_FTFP_BERT_EML'
0069 process.g4SimHits.Physics.DefaultCutValue = 0.07
0070 process.g4SimHits.StackingAction.SaveFirstLevelSecondary = True
0071 process.g4SimHits.OnlySDs = ['CaloTrkProcessing', 'DreamSensitiveDetector']
0072 process.g4SimHits.ECalSD = cms.PSet(
0073     TestBeam = cms.untracked.bool(False),
0074     ReadBothSide = cms.untracked.bool(False),
0075     BirkL3Parametrization = cms.bool(False),
0076     DD4hep = cms.untracked.bool(False),
0077     doCherenkov = cms.bool(False),
0078     BirkCut = cms.double(0.1),
0079     BirkC1 = cms.double(0.0045),
0080     BirkC3 = cms.double(1.0),
0081     BirkC2 = cms.double(0.0),
0082     SlopeLightYield = cms.double(0.0),
0083     UseBirkLaw = cms.bool(False),
0084     BirkSlope = cms.double(0.253694)
0085 )