Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-23 02:26:09

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2C9_cff import Phase2C9
0004 process = cms.Process('testHGCalDigiLocal',Phase2C9)
0005 
0006 # import of standard configurations
0007 process.load('Configuration.StandardSequences.Services_cff')
0008 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0009 process.load('FWCore.MessageService.MessageLogger_cfi')
0010 process.load('Configuration.EventContent.EventContent_cff')
0011 process.load('FWCore.MessageService.MessageLogger_cfi')
0012 process.load('Configuration.EventContent.EventContent_cff')
0013 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0014 process.load('Configuration.Geometry.GeometryExtended2026D46Reco_cff')
0015 process.load('Configuration.Geometry.GeometryExtended2026D46_cff')
0016 process.load('Configuration.StandardSequences.MagneticField_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.Digi_cff')
0022 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0023 process.load('Configuration.StandardSequences.DigiToRaw_cff')
0024 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0025 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0026 
0027 process.maxEvents = cms.untracked.PSet(
0028     input = cms.untracked.int32(5)
0029     )
0030 
0031 # Input source
0032 process.source = cms.Source("EmptySource")
0033 
0034 process.options = cms.untracked.PSet()
0035 
0036 # Production Info
0037 process.configurationMetadata = cms.untracked.PSet(
0038     version    = cms.untracked.string('$Revision: 1.20 $'),
0039     annotation = cms.untracked.string('SingleElectronPt10_cfi nevts:10'),
0040     name       = cms.untracked.string('Applications')
0041     )
0042 
0043 # Output definition
0044 
0045 process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
0046                           splitLevel                   = cms.untracked.int32(0),
0047                           eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0048                           outputCommands               = process.FEVTDEBUGHLTEventContent.outputCommands,
0049                           fileName                     = cms.untracked.string('file:digi_input_5000evts.root'),
0050                           dataset                      = cms.untracked.PSet(
0051     filterName = cms.untracked.string(''),
0052     dataTier   = cms.untracked.string('GEN-SIM-DIGI-RAW')
0053     ),
0054                           SelectEvents                 = cms.untracked.PSet(SelectEvents = cms.vstring('generation_step'))
0055                           )
0056 
0057 # Additional output definition
0058 
0059 # Other statements
0060 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0061 from Configuration.AlCa.GlobalTag import GlobalTag
0062 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgradePLS3', '')
0063 
0064 process.generator = cms.EDProducer("FlatRandomPtGunProducer",
0065    PGunParameters = cms.PSet(
0066     MaxPt  = cms.double(10.01),
0067     MinPt  = cms.double(9.99),
0068     PartID = cms.vint32(13),
0069     MaxEta = cms.double(2.50),
0070     MaxPhi = cms.double(3.14159265359),
0071     MinEta = cms.double(1.75),
0072     MinPhi = cms.double(-3.14159265359)
0073     ),
0074    Verbosity       = cms.untracked.int32(0),
0075    psethack        = cms.string('single electron pt 10'),
0076    AddAntiParticle = cms.bool(True),
0077    firstRun        = cms.untracked.uint32(1)
0078 )
0079 
0080 process.mix.digitizers = cms.PSet(process.theDigitizersValid)
0081 
0082 # Path and EndPath definitions
0083 process.generation_step = cms.Path(process.pgen)
0084 process.simulation_step = cms.Path(process.psim)
0085 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0086 process.digitisation_step = cms.Path(process.pdigi_valid)
0087 process.L1simulation_step = cms.Path(process.SimL1Emulator)
0088 process.digi2raw_step = cms.Path(process.DigiToRaw)
0089 process.endjob_step = cms.EndPath(process.endOfProcess)
0090 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
0091 
0092 # Output definition
0093 process.ValidationOutput = cms.OutputModule("PoolOutputModule",
0094     outputCommands = cms.untracked.vstring('drop *', 'keep *_MEtoEDMConverter_*_*'),
0095     fileName = cms.untracked.string('file:output_digiVal_test.root'),
0096 )
0097 
0098 process.load("DQMServices.Core.DQM_cfg")
0099 process.DQM.collectorHost = ''
0100 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0101 
0102 process.load("Validation.HGCalValidation.digiValidation_cff")
0103 
0104 ## path and endpath deffinition 
0105 process.p1 = cms.Path(process.hgcalDigiValidationEE+
0106               process.hgcalDigiValidationHEF+
0107               process.hgcalDigiValidationHEB)
0108 process.p2 = cms.Path(process.MEtoEDMConverter)
0109 process.output_step = cms.EndPath(process.ValidationOutput)
0110 
0111 # Schedule definition
0112 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,
0113                 process.simulation_step,process.digitisation_step,
0114                 process.L1simulation_step,process.digi2raw_step,
0115                 process.endjob_step,process.p1,process.p2,process.output_step)
0116 
0117 # filter all path with the production filter sequence
0118 for path in process.paths:
0119         getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0120     
0121 for label, prod in process.producers_().items():
0122         if prod.type_() == "OscarMTProducer":
0123             # ugly hack
0124             prod.__dict__['_TypedParameterizable__type'] = "OscarProducer"