File indexing completed on 2024-04-06 12:31:55
0001 import FWCore.ParameterSet.Config as cms
0002
0003 from Configuration.Eras.Era_Run2_2018_cff import Run2_2018
0004 process = cms.Process('TEST',Run2_2018)
0005
0006
0007 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0008
0009 process.load("Configuration.StandardSequences.Simulation_cff")
0010 process.load("Configuration.StandardSequences.Reconstruction_cff")
0011 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
0012 process.load('Configuration/StandardSequences/DigiToRaw_cff')
0013 process.load('Configuration/StandardSequences/RawToDigi_cff')
0014
0015 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0016 from Configuration.AlCa.autoCond import autoCond
0017 process.GlobalTag.globaltag = autoCond['phase1_2018_realistic']
0018
0019 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0020 process.load("Configuration.StandardSequences.GeometryDB_cff")
0021 process.load("Configuration.StandardSequences.MagneticField_cff")
0022 process.g4SimHits.UseMagneticField = False
0023
0024 process.load("DQMServices.Core.DQMStore_cfi")
0025 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0026
0027 process.maxEvents = cms.untracked.PSet(
0028 input = cms.untracked.int32(1000)
0029 )
0030
0031 process.source = cms.Source("PoolSource",
0032 firstEvent = cms.untracked.uint32(XXXXX),
0033 fileNames = cms.untracked.vstring('file:mc.root')
0034 )
0035
0036 process.FEVT = cms.OutputModule("PoolOutputModule",
0037 outputCommands = cms.untracked.vstring('drop *', 'keep *_MEtoEDMConverter_*_*'),
0038 splitLevel = cms.untracked.int32(0),
0039 fileName = cms.untracked.string("output.root")
0040 )
0041
0042 process.VtxSmeared.SigmaX = 0.00001
0043 process.VtxSmeared.SigmaY = 0.00001
0044 process.VtxSmeared.SigmaZ = 0.00001
0045
0046 process.load("Validation.HcalHits.HcalSimHitsValidation_cfi")
0047 process.HcalSimHitsAnalyser.outputFile = cms.untracked.string('HcalSimHitsValidation.root')
0048
0049 process.load("Validation.HcalDigis.HcalDigisParam_cfi")
0050 process.hcaldigisAnalyzer.outputFile = cms.untracked.string('HcalDigisValidationRelVal.root')
0051
0052 process.load("Validation.HcalRecHits.HcalRecHitParam_cfi")
0053
0054 process.load("Validation.CaloTowers.CaloTowersParam_cfi")
0055 process.calotowersAnalyzer.outputFile = cms.untracked.string('CaloTowersValidationRelVal.root')
0056
0057 process.load("Validation.RecoParticleFlow.pfClusterValidation_cfi")
0058
0059
0060 delattr(process,"hbhereco")
0061 process.hbhereco = process.hbheprereco.clone()
0062 process.hcalLocalRecoSequence = cms.Sequence(process.hbhereco+process.hfprereco+process.hfreco+process.horeco)
0063
0064
0065
0066
0067
0068
0069 process.VtxSmeared.src = cms.InputTag("generator", "")
0070 process.generatorSmeared = cms.EDProducer("GeneratorSmearedProducer")
0071 process.g4SimHits.Generator.HepMCProductLabel = cms.InputTag('VtxSmeared')
0072
0073
0074 process.p = cms.Path(
0075 process.VtxSmeared *
0076 process.generatorSmeared *
0077 process.g4SimHits *
0078 process.mix *
0079 process.ecalDigiSequence *
0080 process.hcalDigiSequence *
0081 process.addPileupInfo *
0082 process.bunchSpacingProducer *
0083 process.ecalPacker *
0084 process.esDigiToRaw *
0085 process.hcalRawData *
0086 process.rawDataCollector *
0087 process.ecalDigis *
0088 process.ecalPreshowerDigis *
0089 process.hcalDigis *
0090 process.castorDigis *
0091 process.calolocalreco *
0092 process.caloTowersRec *
0093 process.hcalnoise *
0094 process.particleFlowCluster *
0095
0096 process.HcalSimHitsAnalyser *
0097 process.hcaldigisAnalyzer *
0098 process.calotowersAnalyzer *
0099 process.pfClusterValidation *
0100 process.hcalRecoAnalyzer *
0101
0102 process.MEtoEDMConverter
0103 )
0104
0105 process.outpath = cms.EndPath(process.FEVT)
0106