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('testHGCalRECLocal',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.RawToDigi_cff')
0025 process.load('Configuration.StandardSequences.L1Reco_cff')
0026 process.load('Configuration.StandardSequences.Reconstruction_cff')
0027 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0028 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(1)
0032 )
0033 
0034 # Input source
0035 process.source = cms.Source("EmptySource")
0036 
0037 process.options = cms.untracked.PSet(
0038 
0039 )
0040 
0041 # Production Info
0042 process.configurationMetadata = cms.untracked.PSet(
0043     version = cms.untracked.string('$Revision: 1.20 $'),
0044     annotation = cms.untracked.string('SingleElectronPt10_cfi nevts:10'),
0045     name = cms.untracked.string('Applications')
0046 )
0047 
0048 # Output definition
0049 
0050 process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
0051     splitLevel = cms.untracked.int32(0),
0052     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0053     outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
0054     fileName = cms.untracked.string('file:junk.root'),
0055     dataset = cms.untracked.PSet(
0056         filterName = cms.untracked.string(''),
0057         dataTier = cms.untracked.string('GEN-SIM-DIGI-RECO')
0058     ),
0059     SelectEvents = cms.untracked.PSet(
0060         SelectEvents = cms.vstring('generation_step')
0061     )
0062 )
0063 
0064 # Additional output definition
0065 
0066 # Other statements
0067 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0068 from Configuration.AlCa.GlobalTag import GlobalTag
0069 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgradePLS3', '')
0070 
0071 process.generator = cms.EDProducer("FlatRandomPtGunProducer",
0072     PGunParameters = cms.PSet(
0073         MaxPt = cms.double(10.01),
0074         MinPt = cms.double(9.99),
0075         PartID = cms.vint32(11),
0076         MaxEta = cms.double(2.5),
0077         MaxPhi = cms.double(3.14159265359),
0078         MinEta = cms.double(-2.5),
0079         MinPhi = cms.double(-3.14159265359)
0080     ),
0081     Verbosity = cms.untracked.int32(0),
0082     psethack = cms.string('single electron pt 10'),
0083     AddAntiParticle = cms.bool(True),
0084     firstRun = cms.untracked.uint32(1)
0085 )
0086 
0087 process.mix.digitizers = cms.PSet(process.theDigitizersValid)
0088 
0089 # Path and EndPath definitions
0090 process.generation_step = cms.Path(process.pgen)
0091 process.simulation_step = cms.Path(process.psim)
0092 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0093 process.digitisation_step = cms.Path(process.pdigi_valid)
0094 process.L1simulation_step = cms.Path(process.SimL1Emulator)
0095 process.digi2raw_step = cms.Path(process.DigiToRaw)
0096 process.raw2digi_step = cms.Path(process.RawToDigi)
0097 process.L1Reco_step = cms.Path(process.L1Reco)
0098 process.reconstruction_step = cms.Path(process.reconstruction)
0099 process.endjob_step = cms.EndPath(process.endOfProcess)
0100 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
0101 
0102 #################################################################################################
0103 #################################################################################################
0104 # Output definition
0105 process.ValidationOutput = cms.OutputModule("PoolOutputModule",
0106                             outputCommands = cms.untracked.vstring('drop *', 'keep *_MEtoEDMConverter_*_*'),
0107                             fileName = cms.untracked.string('file:output_rechitVal.root'),
0108                     )
0109 
0110 process.load("DQMServices.Core.DQM_cfg")
0111 process.DQM.collectorHost = ''
0112 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0113 process.load("Validation.HGCalValidation.rechitValidation_cff")
0114 
0115 ## path and endpath deffinition 
0116 process.p1 = cms.Path(process.hgcalRecHitValidationEE+process.hgcalRecHitValidationHEF+process.hgcalRecHitValidationHEB)
0117 process.p2 = cms.Path(process.MEtoEDMConverter)
0118 process.output_step = cms.EndPath(process.ValidationOutput)
0119 ################################################################################################
0120 ################################################################################################
0121 
0122 # Schedule definition
0123 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,
0124                                process.simulation_step,process.digitisation_step,
0125                                process.L1simulation_step,process.digi2raw_step,
0126                                process.raw2digi_step,process.L1Reco_step,process.reconstruction_step,
0127                                process.endjob_step,process.p1,process.p2,process.output_step)
0128 
0129 #process.schedule = cms.Schedule(process.p1,process.p2,process.output_step)
0130 
0131 # filter all path with the production filter sequence
0132 for path in process.paths:
0133         getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0134 
0135 # End of customisation functions
0136 for label, prod in process.producers_().items():
0137         if prod.type_() == "OscarMTProducer":
0138             # ugly hack
0139             prod.__dict__['_TypedParameterizable__type'] = "OscarProducer"