File indexing completed on 2024-11-15 23:40:05
0001 import FWCore.ParameterSet.Config as cms
0002 import CondTools.Ecal.db_credentials as auth
0003 import FWCore.ParameterSet.VarParsing as VarParsing
0004
0005
0006 from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0007 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
0008
0009
0010
0011 process = cms.Process('DIGI',Phase2C17I13M9,phase2_ecal_devel)
0012
0013 process.load('Configuration.StandardSequences.Services_cff')
0014 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0015 process.load('FWCore.MessageService.MessageLogger_cfi')
0016 process.load('Configuration.EventContent.EventContent_cff')
0017 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0018 process.load('Configuration.Geometry.GeometryExtendedRun4D110Reco_cff')
0019 process.load('Configuration.Geometry.GeometryExtendedRun4D110_cff')
0020 process.load('Configuration.StandardSequences.MagneticField_cff')
0021 process.load('Configuration.StandardSequences.Generator_cff')
0022 process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi')
0023 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0024 process.load('Configuration.StandardSequences.SimIdeal_cff')
0025 process.load('Configuration.StandardSequences.Digi_cff')
0026 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0027
0028 process.load('CalibCalorimetry.EBPhase2TPGTools.ecalEBPhase2TPParamProducer_cfi')
0029 """
0030 options = VarParsing.VarParsing('tpg')
0031
0032 options.register ('outFile',
0033 'testtest.txt',
0034 VarParsing.VarParsing.multiplicity.singleton,
0035 VarParsing.VarParsing.varType.string,
0036 "Output file")
0037
0038 options.parseArguments()
0039 """
0040
0041
0042
0043
0044 process.eegeom = cms.ESSource("EmptyESSource",
0045 recordName = cms.string('EcalMappingRcd'),
0046 iovIsRunNotTime = cms.bool(True),
0047 firstValid = cms.vuint32(1)
0048 )
0049
0050
0051
0052
0053
0054 process.load("CondCore.CondDB.CondDB_cfi")
0055
0056 process.CondDB.connect = 'frontier://FrontierProd/CMS_CONDITIONS'
0057 process.CondDB.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
0058
0059 """
0060 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0061 process.CondDB,
0062 timetype = cms.untracked.string('runnumber'),
0063 toGet = cms.VPSet(
0064 cms.PSet(
0065 record = cms.string('EcalPedestalsRcd'),
0066 #tag = cms.string('EcalPedestals_v5_online')
0067 #tag = cms.string('EcalPedestals_2009runs_hlt') ### obviously diff w.r.t previous
0068 tag = cms.string('EcalPedestals_hlt'), ### modif-alex 22/02/2011
0069 ),
0070 cms.PSet(
0071 record = cms.string('EcalMappingElectronicsRcd'),
0072 tag = cms.string('EcalMappingElectronics_EEMap_v1_mc')
0073 )
0074 )
0075 )
0076 """
0077
0078
0079 process.source = cms.Source("EmptySource",
0080
0081 firstRun = cms.untracked.uint32(161310)
0082 )
0083
0084
0085 process.maxEvents = cms.untracked.PSet(
0086 input = cms.untracked.int32(1)
0087 )
0088
0089
0090
0091 process.p = cms.Path(process.EBPhase2TPGParamProducer)