File indexing completed on 2024-04-06 12:29:24
0001
0002
0003
0004
0005
0006
0007 import FWCore.ParameterSet.Config as cms
0008
0009 process = cms.Process("TCCDigi2Digi")
0010 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0011
0012 process.load("MagneticField.Engine.volumeBasedMagneticField_cfi")
0013
0014 process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
0015
0016 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
0017
0018 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0019
0020 process.load("CalibCalorimetry.Configuration.Ecal_FakeConditions_cff")
0021
0022
0023 process.load("Geometry.EcalMapping.EcalMapping_cfi")
0024
0025 process.load("SimCalorimetry.EcalTrigPrimProducers.ecalTriggerPrimitiveDigis_cfi")
0026
0027
0028 process.load("SimCalorimetry.EcalElectronicsEmulation.EcalSimRawData_cfi")
0029
0030
0031 process.load("SimCalorimetry.EcalElectronicsEmulation.EcalFEtoDigi_cfi")
0032
0033
0034 process.load("L1Trigger.HardwareValidation.L1Comparator_cfi")
0035
0036 process.source = cms.Source("PoolSource",
0037 fileNames = cms.untracked.vstring('file:file_mc.root')
0038 )
0039
0040 process.maxEvents = cms.untracked.PSet(
0041 input = cms.untracked.int32(2)
0042 )
0043 process.EcalTrigPrimESProducer = cms.ESProducer("EcalTrigPrimESProducer",
0044 DatabaseFileEE = cms.untracked.string('TPG_EE.txt'),
0045 DatabaseFileEB = cms.untracked.string('TPG_EB.txt')
0046 )
0047
0048 process.tpparams6 = cms.ESSource("EmptyESSource",
0049 recordName = cms.string('EcalTPGLutGroupRcd'),
0050 iovIsRunNotTime = cms.bool(True),
0051 firstValid = cms.vuint32(1)
0052 )
0053
0054 process.tpparams7 = cms.ESSource("EmptyESSource",
0055 recordName = cms.string('EcalTPGLutIdMapRcd'),
0056 iovIsRunNotTime = cms.bool(True),
0057 firstValid = cms.vuint32(1)
0058 )
0059
0060 process.eegeom = cms.ESSource("EmptyESSource",
0061 recordName = cms.string('EcalMappingRcd'),
0062 iovIsRunNotTime = cms.bool(False),
0063 firstValid = cms.vuint32(1)
0064 )
0065
0066 process.outputEvents = cms.OutputModule("PoolOutputModule",
0067 fileName = cms.untracked.string('ecalDigi2Digi.root')
0068 )
0069
0070 process.p = cms.Path(process.ecalTriggerPrimitiveDigis*process.ecalSimRawData*process.tccFlatToDigi*process.l1Compare)
0071 process.outpath = cms.EndPath(process.outputEvents)
0072 process.ecalTriggerPrimitiveDigis.TcpOutput = True
0073 process.ecalTriggerPrimitiveDigis.BarrelOnly = True
0074 process.ecalTriggerPrimitiveDigis.Label = 'ecalDigis'
0075 process.ecalTriggerPrimitiveDigis.InstanceEB = 'ebDigis'
0076 process.ecalTriggerPrimitiveDigis.InstanceEE = 'eeDigis'
0077 process.ecalTriggerPrimitiveDigis.Debug = False
0078 process.ecalSimRawData.tcc2dccData = False
0079 process.ecalSimRawData.srp2dccData = False
0080 process.ecalSimRawData.fe2dccData = False
0081 process.ecalSimRawData.trigPrimProducer = 'ecalTriggerPrimitiveDigis'
0082 process.ecalSimRawData.tcpDigiCollection = 'formatTCP'
0083 process.ecalSimRawData.tpVerbose = False
0084 process.ecalSimRawData.tccInDefaultVal = 0
0085 process.ecalSimRawData.tccNum = -1
0086 process.ecalSimRawData.outputBaseName = 'data/ecal'
0087 process.tccFlatToDigi.SuperModuleId = -1
0088 process.tccFlatToDigi.FlatBaseName = 'data/ecal_tcc'
0089 process.tccFlatToDigi.FileEventOffset = 0
0090 process.l1Compare.ETP_dataLabel = 'tccFlatToDigi'
0091 process.l1Compare.ETP_emulLabel = 'ecalTriggerPrimitiveDigis'
0092 process.l1Compare.DumpFile = 'dump_ecal.txt'
0093 process.l1Compare.DumpMode = 1
0094 process.l1Compare.COMPARE_COLLS = [1, 0, 0, 0, 0,
0095 0, 0, 0, 0, 0,
0096 0]
0097