Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:29:13

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CastorTest")
0004 
0005 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0006 
0007 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0008 
0009 # process.load("Configuration.StandardSequences.GeometryExtended_cff")
0010 #process.load("SimG4CMS.Forward.castorGeometryXML_cfi")
0011 process.load("Geometry.CMSCommonData.cmsAllGeometryXML_cfi")
0012 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0013 
0014 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0015 
0016 process.RandomNumberGeneratorService.generator.initialSeed = 113456789
0017 
0018 process.load("Configuration.EventContent.EventContent_cff")
0019 
0020 process.load("SimG4Core.Application.g4SimHits_cfi")
0021 
0022 process.MessageLogger = cms.Service("MessageLogger",
0023     cerr = cms.untracked.PSet(
0024         enable = cms.untracked.bool(False)
0025     ),
0026     cout = cms.untracked.PSet(
0027         DEBUG = cms.untracked.PSet(
0028             limit = cms.untracked.int32(0)
0029         ),
0030         ForwardSim = cms.untracked.PSet(
0031             limit = cms.untracked.int32(0)
0032         ),
0033         enable = cms.untracked.bool(True),
0034         threshold = cms.untracked.string('DEBUG')
0035     )
0036 )
0037 
0038 process.maxEvents = cms.untracked.PSet(
0039     input = cms.untracked.int32(10)
0040 )
0041 
0042 process.source = cms.Source("EmptySource")
0043 
0044 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0045     PGunParameters = cms.PSet(
0046         PartID = cms.vint32(211),
0047         MinEta = cms.double(-6.6),
0048         MaxEta = cms.double(-5.2),
0049         MinPhi = cms.double(-3.14),
0050         MaxPhi = cms.double(3.14),
0051         MinE = cms.double(50.00),
0052         MaxE = cms.double(50.00)
0053     ),
0054     AddAntiParticle = cms.bool(False),
0055     Verbosity = cms.untracked.int32(1)
0056 
0057 )
0058 
0059 process.o1 = cms.OutputModule("PoolOutputModule",
0060     fileName = cms.untracked.string('sim_pion.root')
0061 )
0062 
0063 process.common_maximum_timex = cms.PSet( # need to be localy redefined
0064    MaxTrackTime  = cms.double(500.0),  # need to be localy redefined
0065    MaxTimeNames  = cms.vstring(), # need to be localy redefined
0066    MaxTrackTimes = cms.vdouble()  # need to be localy redefined
0067 )
0068 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.g4SimHits)
0069 process.outpath = cms.EndPath(process.o1)
0070 
0071 process.g4SimHits.UseMagneticField = False
0072 process.g4SimHits.Physics.DefaultCutValue = 10.
0073 process.g4SimHits.Generator.ApplyEtaCuts = False
0074 process.g4SimHits.CaloTrkProcessing.TestBeam = True
0075 
0076 process.g4SimHits.StackingAction = cms.PSet(
0077    process.common_heavy_suppression,
0078    process.common_maximum_timex,        # need to be localy redefined
0079    TrackNeutrino = cms.bool(False),
0080    KillDeltaRay  = cms.bool(False),
0081    KillHeavy     = cms.bool(False),
0082    SaveFirstLevelSecondary = cms.untracked.bool(True),
0083    SavePrimaryDecayProductsAndConversionsInTracker = cms.untracked.bool(True),
0084    SavePrimaryDecayProductsAndConversionsInCalo    = cms.untracked.bool(True),
0085    SavePrimaryDecayProductsAndConversionsInMuon    = cms.untracked.bool(True)
0086 )
0087 
0088 process.g4SimHits.SteppingAction = cms.PSet(
0089    process.common_maximum_timex, # need to be localy redefined
0090    KillBeamPipe            = cms.bool(True),
0091    CriticalEnergyForVacuum = cms.double(2.0),
0092    CriticalDensity         = cms.double(1e-15),
0093    EkinNames               = cms.vstring(),
0094    EkinThresholds          = cms.vdouble(),
0095    EkinParticles           = cms.vstring(),
0096    Verbosity               = cms.untracked.int32(0)
0097 )
0098 
0099 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0100     type = cms.string('CastorTestAnalysis'),
0101     CastorTestAnalysis = cms.PSet(
0102         EventNtupleFileName = cms.string('eventNtuple_pion.root'),
0103         Verbosity           = cms.int32(0),
0104         StepNtupleFileName  = cms.string('stepNtuple_pion.root'),
0105         StepNtupleFlag      = cms.int32(0),
0106         UseShowerLibrary    = cms.bool(False),
0107         EventNtupleFlag     = cms.int32(1)
0108     )
0109 ))
0110 
0111 
0112