Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:32:43

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 
0005 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0006 
0007 #Geometry
0008 #
0009 process.load("Geometry.CMSCommonData.cmsSimIdealGeometryXML_cfi")
0010 
0011 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0012 
0013 #Magnetic Field
0014 #
0015 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0016 
0017 # Output of events, etc...
0018 #
0019 # Explicit note : since some histos/tree might be dumped directly,
0020 #                 better NOT use PoolOutputModule !
0021 # Detector simulation (Geant4-based)
0022 #
0023 process.load("SimG4Core.Application.g4SimHits_cfi")
0024 
0025 process.load("IOMC.RandomEngine.IOMC_cff")
0026 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0027 
0028 process.MessageLogger = cms.Service("MessageLogger",
0029     cout = cms.untracked.PSet(
0030         default = cms.untracked.PSet(
0031             limit = cms.untracked.int32(0)
0032         ),
0033         FwkJob = cms.untracked.PSet( ## but FwkJob category - those unlimitted
0034            limit = cms.untracked.int32(-1)
0035         )
0036     ),
0037     categories = cms.untracked.vstring('FwkJob'),
0038     destinations = cms.untracked.vstring('cout')
0039 )
0040 
0041 process.source = cms.Source("PoolSource",
0042     #   untracked vstring fileNames = {"file:single_muminus_pT0.6_eta0.1.root"}
0043     fileNames = cms.untracked.vstring('file:single_piminus_pT0.2_eta0.1.root')
0044 )
0045 
0046 process.maxEvents = cms.untracked.PSet(
0047     input = cms.untracked.int32(-1)
0048 )
0049 
0050 process.p1 = cms.Path(process.g4SimHits)
0051 process.g4SimHits.TrackerSD.EnergyThresholdForPersistencyInGeV = 0.01
0052 process.g4SimHits.TrackerSD.EnergyThresholdForHistoryInGeV = 0.001
0053 process.g4SimHits.SteppingAction.KillBeamPipe = False
0054 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0055     type = cms.string('MaterialBudgetAction'),
0056     MaterialBudgetAction = cms.PSet(
0057         # Decay
0058         storeDecay = cms.untracked.bool(True),
0059         HistosFile = cms.string('matbdg_Gigi.root'),
0060         AllStepsToTree = cms.bool(True),
0061         HistogramList = cms.string('Tracker'),
0062         # vstring SelectedVolumes = {"CMSE"}
0063         SelectedVolumes = cms.vstring('Tracker', 
0064             'BEAM'),
0065         TreeFile = cms.string('loop_Gigi.root'), ## is NOT requested
0066 
0067         # vstring SelectedVolumes = {"Tracker"}
0068         # vstring SelectedVolumes = {"PixelBarrel","PixelForwardZMinus","PixelForwardZPlus","TOB","TIB","TIDB","TIDF","TEC","TIBTIDServicesF","TIBTIDServicesB"}
0069         StopAfterProcess = cms.string('None'),
0070         # string TextFile = "matbdg_Gigi.txt"
0071         TextFile = cms.string('None'),
0072         EminDecayProd = cms.untracked.double(0.0) ## MeV
0073 
0074     )
0075 ))
0076 
0077