Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:00

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 
0017 process.load("Configuration.EventContent.EventContent_cff")
0018 
0019 process.load("SimG4Core.Application.g4SimHits_cfi")
0020 
0021 process.MessageLogger = cms.Service("MessageLogger",
0022     cerr = cms.untracked.PSet(
0023         enable = cms.untracked.bool(False)
0024     ),
0025     cout = cms.untracked.PSet(
0026         DEBUG = cms.untracked.PSet(
0027             limit = cms.untracked.int32(0)
0028         ),
0029         ForwardSim = cms.untracked.PSet(
0030             limit = cms.untracked.int32(0)
0031         ),
0032         enable = cms.untracked.bool(True)
0033     ),
0034     debugModules = cms.untracked.vstring('*')
0035 )
0036 
0037 process.maxEvents = cms.untracked.PSet(
0038     input = cms.untracked.int32(2000)
0039 )
0040 
0041 process.source = cms.Source("EmptySource")
0042 
0043 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0044     PGunParameters = cms.PSet(
0045         PartID = cms.vint32(13),
0046         MinEta = cms.double(-5.9),
0047         MaxEta = cms.double(-5.9),
0048         MinPhi = cms.double(-3.14),
0049         MaxPhi = cms.double(3.14),
0050         MinE = cms.double(50.00),
0051         MaxE = cms.double(50.00)
0052     ),
0053     AddAntiParticle = cms.bool(False),
0054     Verbosity = cms.untracked.int32(1)
0055 
0056 )
0057 
0058 process.o1 = cms.OutputModule("PoolOutputModule",
0059     fileName = cms.untracked.string('file_all_muon50_25.root')
0060 )
0061 
0062 process.common_maximum_timex = cms.PSet( # need to be localy redefined
0063    MaxTrackTime  = cms.double(500.0),  # need to be localy redefined
0064    MaxTimeNames  = cms.vstring(), # need to be localy redefined
0065    MaxTrackTimes = cms.vdouble()  # need to be localy redefined
0066 )
0067 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.g4SimHits)
0068 process.outpath = cms.EndPath(process.o1)
0069 
0070 process.g4SimHits.UseMagneticField = False
0071 process.g4SimHits.Physics.DefaultCutValue = 10.
0072 process.g4SimHits.Generator.ApplyEtaCuts = False
0073 process.g4SimHits.CaloTrkProcessing.TestBeam = True
0074 
0075 process.g4SimHits.StackingAction = cms.PSet(
0076    process.common_heavy_suppression,
0077    process.common_maximum_timex,        # need to be localy redefined
0078    TrackNeutrino = cms.bool(False),
0079    KillHeavy     = cms.bool(False),
0080    SaveFirstLevelSecondary = cms.untracked.bool(True),
0081    SavePrimaryDecayProductsAndConversionsInTracker = cms.untracked.bool(True),
0082    SavePrimaryDecayProductsAndConversionsInCalo    = cms.untracked.bool(True),
0083    SavePrimaryDecayProductsAndConversionsInMuon    = cms.untracked.bool(True)
0084 )
0085 
0086 process.g4SimHits.SteppingAction = cms.PSet(
0087    process.common_maximum_timex, # need to be localy redefined
0088    KillBeamPipe            = cms.bool(True),
0089    CriticalEnergyForVacuum = cms.double(2.0),
0090    CriticalDensity         = cms.double(1e-15),
0091    EkinNames               = cms.vstring(),
0092    EkinThresholds          = cms.vdouble(),
0093    EkinParticles           = cms.vstring(),
0094    Verbosity               = cms.untracked.int32(0)
0095 )
0096 
0097 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0098     type = cms.string('DoCastorAnalysis'),
0099     DoCastorAnalysis = cms.PSet(
0100         CastorTreeFileName = cms.string('file_tree_muon50_25.root'),
0101         Verbosity = cms.int32(1)
0102     )
0103 ))
0104 
0105 
0106 
0107