Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-07-10 02:35:02

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb
0003 
0004 process = cms.Process('SIM', hgcaltb)
0005 
0006 # import of standard configurations
0007 process.load("FWCore.MessageService.MessageLogger_cfi")
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('Configuration.EventContent.EventContent_cff')
0011 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0012 process.load('SimG4CMS.HGCalTestBeam.HGCalTB170JulyXML_cfi')
0013 process.load('Geometry.HGCalTBCommonData.hgcalTBNumberingInitialization_cfi')
0014 process.load('Geometry.HGCalTBCommonData.hgcalTBParametersInitialization_cfi')
0015 process.load('Geometry.HcalTestBeamData.hcalTB06Parameters_cff')
0016 process.load('Geometry.HcalCommonData.caloSimulationParameters_cff')
0017 process.load('Configuration.StandardSequences.MagneticField_0T_cff')
0018 process.load('Configuration.StandardSequences.Generator_cff')
0019 process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_cfi')
0020 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0021 process.load('Configuration.StandardSequences.SimIdeal_cff')
0022 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0023 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0024 process.load('SimG4CMS.HGCalTestBeam.HGCalTBCheckGunPosition_cfi')
0025 process.load('SimG4CMS.HGCalTestBeam.HGCalTBAnalyzer_cfi')
0026 
0027 process.maxEvents = cms.untracked.PSet(
0028     input = cms.untracked.int32(10)
0029 )
0030 
0031 if 'MessageLogger' in process.__dict__:
0032     process.MessageLogger.HGCSim=dict()
0033     process.MessageLogger.HcalSim=dict()
0034     process.MessageLogger.HcalTB06BeamSD=dict()
0035     process.MessageLogger.ValidHGCal=dict()
0036 
0037 # Input source
0038 process.source = cms.Source("EmptySource")
0039 
0040 process.options = cms.untracked.PSet(
0041 )
0042 
0043 # Production Info
0044 process.configurationMetadata = cms.untracked.PSet(
0045     annotation = cms.untracked.string('SingleMuonE200_cfi nevts:10'),
0046     name = cms.untracked.string('Applications'),
0047     version = cms.untracked.string('$Revision: 1.19 $')
0048 )
0049 
0050 # Output definition
0051 
0052 process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
0053     SelectEvents = cms.untracked.PSet(
0054         SelectEvents = cms.vstring('generation_step')
0055     ),
0056     dataset = cms.untracked.PSet(
0057         dataTier = cms.untracked.string('GEN-SIM'),
0058         filterName = cms.untracked.string('')
0059     ),
0060     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0061     fileName = cms.untracked.string('file:gensim.root'),
0062     outputCommands = process.RAWSIMEventContent.outputCommands,
0063     splitLevel = cms.untracked.int32(0)
0064 )
0065 
0066 # Additional output definition
0067 process.TFileService = cms.Service("TFileService",
0068                                    fileName = cms.string('TBGenSim.root')
0069                                    )
0070 
0071 # Other statements
0072 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0073 from Configuration.AlCa.GlobalTag import GlobalTag
0074 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0075 
0076 process.generator = cms.EDProducer("FlatRandomEThetaGunProducer",
0077     AddAntiParticle = cms.bool(False),
0078     PGunParameters = cms.PSet(
0079         MinE = cms.double(99.99),
0080         MaxE = cms.double(100.01),
0081         MinTheta = cms.double(0.0),
0082         MaxTheta = cms.double(0.0),
0083         MinPhi = cms.double(-3.14159265359),
0084         MaxPhi = cms.double(3.14159265359),
0085         PartID = cms.vint32(13)
0086     ),
0087     Verbosity = cms.untracked.int32(0),
0088     firstRun = cms.untracked.uint32(1),
0089     psethack = cms.string('single muon E 100')
0090 )
0091 process.VtxSmeared.MinZ = -800.0
0092 process.VtxSmeared.MaxZ = -800.0
0093 process.VtxSmeared.MinX = -7.5
0094 process.VtxSmeared.MaxX =  7.5
0095 process.VtxSmeared.MinY = -7.5
0096 process.VtxSmeared.MaxY =  7.5
0097 process.g4SimHits.HGCSD.RejectMouseBite = True
0098 process.g4SimHits.HGCSD.RotatedWafer    = True
0099 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0100         HGCalTBPassive = cms.PSet(
0101                     LVNames = cms.vstring('HGCalEE','HGCalHE','HGCalAH', 'HGCalBeam', 'CMSE'),
0102                     MotherName = cms.string('OCMS'),
0103                     IfDD4hep = cms.bool(False),
0104                 ),
0105         type = cms.string('HGCalTBPassive'),
0106         )
0107                        )
0108 process.HGCalTBAnalyzer.doDigis     = False
0109 process.HGCalTBAnalyzer.doRecHits   = False
0110 process.HGCalTBAnalyzer.useFH       = True
0111 process.HGCalTBAnalyzer.useBH       = True
0112 process.HGCalTBAnalyzer.useBeam     = True
0113 process.HGCalTBAnalyzer.zFrontEE    = 1110.0
0114 process.HGCalTBAnalyzer.zFrontFH    = 1172.3
0115 process.HGCalTBAnalyzer.doPassive   = True
0116 
0117 # Path and EndPath definitions
0118 process.generation_step = cms.Path(process.pgen)
0119 process.gunfilter_step  = cms.Path(process.HGCalTBCheckGunPostion)
0120 process.simulation_step = cms.Path(process.psim)
0121 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0122 process.analysis_step = cms.Path(process.HGCalTBAnalyzer)
0123 process.endjob_step = cms.EndPath(process.endOfProcess)
0124 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0125 
0126 # Schedule definition
0127 process.schedule = cms.Schedule(process.generation_step,
0128                 process.genfiltersummary_step,
0129                 process.simulation_step,
0130                 process.gunfilter_step,
0131                 process.analysis_step,
0132                 process.endjob_step,
0133                 process.RAWSIMoutput_step,
0134                 )
0135 # filter all path with the production filter sequence
0136 for path in process.paths:
0137     getattr(process,path)._seq = process.generator * getattr(process,path)._seq 
0138 
0139