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.HGCalTB181Oct3XML_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('Configuration.StandardSequences.MagneticField_0T_cff')
0017 process.load('Configuration.StandardSequences.Generator_cff')
0018 process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_cfi')
0019 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0020 process.load('Configuration.StandardSequences.SimIdeal_cff')
0021 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0022 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0023 process.load('SimG4CMS.HGCalTestBeam.HGCalTBAnalyzer_cfi')
0024 process.load('SimG4CMS.HGCalTestBeam.HGCalTBCheckGunPosition_cfi')
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(10)
0028 )
0029 
0030 if 'MessageLogger' in process.__dict__:
0031     process.MessageLogger.HGCalGeom=dict()
0032     process.MessageLogger.SimG4CoreGeometry=dict()
0033     process.MessageLogger.HGCSim=dict()
0034     process.MessageLogger.HcalSim=dict()
0035     process.MessageLogger.HcalTB06BeamSD=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.FEVTDEBUGoutput = 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     fileName = cms.untracked.string('file:TBGenSim181Oct3.root'),
0061     outputCommands = process.FEVTDEBUGEventContent.outputCommands,
0062     splitLevel = cms.untracked.int32(0)
0063 )
0064 
0065 # Additional output definition
0066 process.TFileService = cms.Service("TFileService",
0067                                    fileName = cms.string('TBGenSim.root')
0068                                    )
0069 
0070 # Other statements
0071 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0072 from Configuration.AlCa.GlobalTag import GlobalTag
0073 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0074 
0075 process.generator = cms.EDProducer("FlatRandomEThetaGunProducer",
0076     AddAntiParticle = cms.bool(False),
0077     PGunParameters = cms.PSet(
0078         MinE = cms.double(99.99),
0079         MaxE = cms.double(100.01),
0080         MinTheta = cms.double(0.0),
0081         MaxTheta = cms.double(0.0),
0082         MinPhi = cms.double(-3.14159265359),
0083         MaxPhi = cms.double(3.14159265359),
0084         PartID = cms.vint32(11)
0085     ),
0086     Verbosity = cms.untracked.int32(0),
0087     firstRun = cms.untracked.uint32(1),
0088     psethack = cms.string('single muon E 100')
0089 )
0090 process.VtxSmeared.MinZ                 = -800.0
0091 process.VtxSmeared.MaxZ                 = -800.0
0092 process.VtxSmeared.MinX                 = -7.5
0093 process.VtxSmeared.MaxX                 =  7.5
0094 process.VtxSmeared.MinY                 = -7.5
0095 process.VtxSmeared.MaxY                 =  7.5
0096 process.g4SimHits.HGCSD.RejectMouseBite = True
0097 process.g4SimHits.HGCSD.RotatedWafer    = True
0098 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0099         HGCalTBPassive = cms.PSet(
0100                     LVNames = cms.vstring('HGCalEE','HGCalHE','HGCalAH', 'HGCalBeam', 'CMSE'),
0101                     MotherName = cms.string('OCMS'),
0102                     IfDD4hep = cms.bool(False),
0103                 ),
0104         type = cms.string('HGCalTBPassive'),
0105         )
0106                        )
0107 process.HGCalTBAnalyzer.doDigis         = False
0108 process.HGCalTBAnalyzer.doRecHits       = False
0109 process.HGCalTBAnalyzer.useFH           = True
0110 process.HGCalTBAnalyzer.useBH           = True
0111 process.HGCalTBAnalyzer.useBeam         = True
0112 process.HGCalTBAnalyzer.zFrontEE        = 1110.0
0113 process.HGCalTBAnalyzer.zFrontFH        = 1179.7
0114 process.HGCalTBAnalyzer.zFrontFH        = 1275.9
0115 process.HGCalTBAnalyzer.maxDepth        = 39
0116 process.HGCalTBAnalyzer.deltaZ          = 26.2
0117 process.HGCalTBAnalyzer.zFirst          = 22.8
0118 process.HGCalTBAnalyzer.doPassive       = True
0119 process.HGCalTBAnalyzer.doPassiveEE     = True
0120 process.HGCalTBAnalyzer.doPassiveHE     = True
0121 process.HGCalTBAnalyzer.doPassiveBH     = True
0122 
0123 # Path and EndPath definitions
0124 process.generation_step = cms.Path(process.pgen)
0125 process.gunfilter_step  = cms.Path(process.HGCalTBCheckGunPostion)
0126 process.simulation_step = cms.Path(process.psim)
0127 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0128 process.analysis_step = cms.Path(process.HGCalTBAnalyzer)
0129 process.endjob_step = cms.EndPath(process.endOfProcess)
0130 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0131 
0132 # Schedule definition
0133 process.schedule = cms.Schedule(process.generation_step,
0134                 process.genfiltersummary_step,
0135                 process.simulation_step,
0136                 process.gunfilter_step,
0137                 process.analysis_step,
0138                 process.endjob_step,
0139                                 process.FEVTDEBUGoutput_step
0140                 )
0141 # filter all path with the production filter sequence
0142 for path in process.paths:
0143     getattr(process,path)._seq = process.generator * getattr(process,path)._seq 
0144 
0145