Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-14 23:39:52

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.HGCalTB181Oct1XML_cfi')
0013 process.load('Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi')
0014 process.load('Geometry.HGCalCommonData.hgcalParametersInitialization_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.VtxSmearedGauss_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.HGCalTBCheckGunPosition_cfi')
0024 process.load('SimG4CMS.HGCalTestBeam.HGCalTBAnalyzer_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.BeamMomentumGun=dict()
0032      process.MessageLogger.HGCSim=dict()
0033 #    process.MessageLogger.HcalSim=dict()
0034 
0035 # Input source
0036 process.source = cms.Source("EmptySource")
0037 
0038 process.options = cms.untracked.PSet(
0039 )
0040 
0041 # Production Info
0042 process.configurationMetadata = cms.untracked.PSet(
0043     annotation = cms.untracked.string('SingleMuonE200_cfi nevts:10'),
0044     name = cms.untracked.string('Applications'),
0045     version = cms.untracked.string('$Revision: 1.19 $')
0046 )
0047 
0048 # Output definition
0049 
0050 process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
0051     SelectEvents = cms.untracked.PSet(
0052         SelectEvents = cms.vstring('generation_step')
0053     ),
0054     dataset = cms.untracked.PSet(
0055         dataTier = cms.untracked.string('GEN-SIM'),
0056         filterName = cms.untracked.string('')
0057     ),
0058     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0059     fileName = cms.untracked.string('file:gensim.root'),
0060     outputCommands = process.RAWSIMEventContent.outputCommands,
0061     splitLevel = cms.untracked.int32(0)
0062 )
0063 
0064 # Additional output definition
0065 process.TFileService = cms.Service("TFileService",
0066                                    fileName = cms.string('TBGenSim.root')
0067                                    )
0068 
0069 # Other statements
0070 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0071 from Configuration.AlCa.GlobalTag import GlobalTag
0072 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0073 
0074 process.generator = cms.EDProducer("BeamMomentumGunProducer",
0075     AddAntiParticle = cms.bool(False),
0076     PGunParameters = cms.PSet(
0077         FileName = cms.FileInPath('SimG4CMS/HGCalTestBeam/data/HGCTBeamProfTree_PosE100.root'),
0078         MinTheta = cms.double(.012138),
0079         MaxTheta = cms.double(.012138),
0080         MinPhi = cms.double(3.638332),
0081         MaxPhi = cms.double(3.638332),
0082         XOffset = cms.double(0.0),
0083         YOffset = cms.double(0.0),
0084         ZPosition = cms.double(111.0),
0085         PartID = cms.vint32(11)
0086     ),
0087     Verbosity = cms.untracked.int32(1),
0088     firstRun = cms.untracked.uint32(1),
0089     psethack = cms.string('single muon E 100')
0090 )
0091 
0092 process.VtxSmeared.MeanX  = 0
0093 process.VtxSmeared.SigmaX = 0
0094 process.VtxSmeared.MeanY  = 0
0095 process.VtxSmeared.SigmaY = 0
0096 process.VtxSmeared.MeanZ  = 0
0097 process.VtxSmeared.SigmaZ = 0
0098 process.g4SimHits.HGCSD.RejectMouseBite = True
0099 process.g4SimHits.HGCSD.RotatedWafer    = True
0100 
0101 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0102         HGCPassive = cms.PSet(
0103                      LVNames = cms.vstring('HGCalEE','HGCalHE','HGCalAH', 'HGCalBeam', 'CMSE'),
0104                      MotherName = cms.string('OCMS'),
0105                      IfDD4hep = cms.bool(False),
0106                 ),
0107         type = cms.string('HGCPassive'),
0108         )
0109                        )
0110 process.HGCalTBAnalyzer.doDigis         = False
0111 process.HGCalTBAnalyzer.doRecHits       = False
0112 process.HGCalTBAnalyzer.useFH           = True
0113 process.HGCalTBAnalyzer.useBH           = True
0114 process.HGCalTBAnalyzer.useBeam         = True
0115 process.HGCalTBAnalyzer.addP            = True
0116 process.HGCalTBAnalyzer.zFrontEE        = 1110.0
0117 process.HGCalTBAnalyzer.zFrontFH        = 1176.5
0118 process.HGCalTBAnalyzer.zFrontFH        = 1307.5
0119 process.HGCalTBAnalyzer.maxDepth        = 39
0120 process.HGCalTBAnalyzer.deltaZ          = 26.2
0121 process.HGCalTBAnalyzer.zFirst          = 22.8
0122 process.HGCalTBAnalyzer.doPassive       = True
0123 process.HGCalTBAnalyzer.doPassiveEE     = True
0124 process.HGCalTBAnalyzer.doPassiveHE     = True
0125 process.HGCalTBAnalyzer.doPassiveBH     = True
0126 
0127 # Path and EndPath definitions
0128 process.generation_step = cms.Path(process.pgen)
0129 process.gunfilter_step  = cms.Path(process.HGCalTBCheckGunPostion)
0130 process.simulation_step = cms.Path(process.psim)
0131 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0132 process.analysis_step = cms.Path(process.HGCalTBAnalyzer)
0133 process.endjob_step = cms.EndPath(process.endOfProcess)
0134 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0135 
0136 
0137 process.g4SimHits.Physics.type = 'SimG4Core/Physics/FTFP_BERT_EMN'
0138 
0139 # Schedule definition
0140 process.schedule = cms.Schedule(process.generation_step,
0141                 process.genfiltersummary_step,
0142                 process.simulation_step,
0143 #               process.gunfilter_step,
0144                 process.analysis_step,
0145                 process.endjob_step,
0146 #               process.RAWSIMoutput_step,
0147                 )
0148 # filter all path with the production filter sequence
0149 for path in process.paths:
0150     getattr(process,path)._seq = process.generator * getattr(process,path)._seq 
0151 
0152 
0153 #print process.dumpPython()