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.HGCalTB181Oct1PC1mmXML_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('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.HGCalTBAnalyzer_cfi')
0025 process.load('SimG4CMS.HGCalTestBeam.HGCalTBCheckGunPosition_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.HGCalGeom=dict()
0033 #    process.MessageLogger.SimG4CoreGeometry=dict()
0034 #    process.MessageLogger.HGCSim=dict()
0035 #    process.MessageLogger.HcalSim=dict()
0036 #    process.MessageLogger.HcalTB06BeamSD=dict()
0037 
0038 # Input source
0039 process.source = cms.Source("EmptySource")
0040 
0041 process.options = cms.untracked.PSet(
0042 )
0043 
0044 # Production Info
0045 process.configurationMetadata = cms.untracked.PSet(
0046     annotation = cms.untracked.string('SingleMuonE200_cfi nevts:10'),
0047     name = cms.untracked.string('Applications'),
0048     version = cms.untracked.string('$Revision: 1.19 $')
0049 )
0050 
0051 # Output definition
0052 
0053 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0054     SelectEvents = cms.untracked.PSet(
0055         SelectEvents = cms.vstring('generation_step')
0056     ),
0057     dataset = cms.untracked.PSet(
0058         dataTier = cms.untracked.string('GEN-SIM'),
0059         filterName = cms.untracked.string('')
0060     ),
0061     fileName = cms.untracked.string('file:TBGenSim181Oct1.root'),
0062     outputCommands = process.FEVTDEBUGEventContent.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(11)
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         HGCPassive = 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('HGCPassive'),
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        = 1176.5
0115 process.HGCalTBAnalyzer.zFrontFH        = 1307.5
0116 process.HGCalTBAnalyzer.maxDepth        = 39
0117 process.HGCalTBAnalyzer.deltaZ          = 26.2
0118 process.HGCalTBAnalyzer.zFirst          = 22.8
0119 process.HGCalTBAnalyzer.doPassive       = True
0120 process.HGCalTBAnalyzer.doPassiveEE     = True
0121 process.HGCalTBAnalyzer.doPassiveHE     = True
0122 process.HGCalTBAnalyzer.doPassiveBH     = True
0123 
0124 # Path and EndPath definitions
0125 process.generation_step = cms.Path(process.pgen)
0126 process.gunfilter_step  = cms.Path(process.HGCalTBCheckGunPostion)
0127 process.simulation_step = cms.Path(process.psim)
0128 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0129 process.analysis_step = cms.Path(process.HGCalTBAnalyzer)
0130 process.endjob_step = cms.EndPath(process.endOfProcess)
0131 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0132 
0133 # Schedule definition
0134 process.schedule = cms.Schedule(process.generation_step,
0135                 process.genfiltersummary_step,
0136                 process.simulation_step,
0137                 process.gunfilter_step,
0138                 process.analysis_step,
0139                 process.endjob_step,
0140                                 process.FEVTDEBUGoutput_step
0141                 )
0142 # filter all path with the production filter sequence
0143 for path in process.paths:
0144     getattr(process,path)._seq = process.generator * getattr(process,path)._seq 
0145 
0146