Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:30

0001 # The following comments couldn't be translated into the new config version:
0002 
0003 # Config file description:
0004 #  test ECAL sequence: tcc hw input -> tp digi -> tcc hw input
0005 #  check consistency of original and created tcc hardware input files
0006 
0007 import FWCore.ParameterSet.Config as cms
0008 
0009 process = cms.Process("TCCFlat2Flat")
0010 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0011 
0012 #-#-# Flat -> Digi  [create digis from input (set of) flat file(s)]
0013 process.load("SimCalorimetry.EcalElectronicsEmulation.EcalFEtoDigi_cfi")
0014 
0015 #-#-# Digi -> Flat
0016 process.load("SimCalorimetry.EcalElectronicsEmulation.EcalSimRawData_cfi")
0017 
0018 #dump digi collections
0019 process.load("L1Trigger.HardwareValidation.L1Comparator_cfi")
0020 
0021 process.maxEvents = cms.untracked.PSet(
0022     input = cms.untracked.int32(2048)
0023 )
0024 process.source = cms.Source("EmptySource")
0025 
0026 process.tpparams6 = cms.ESSource("EmptyESSource",
0027     recordName = cms.string('EcalTPGLutGroupRcd'),
0028     iovIsRunNotTime = cms.bool(True),
0029     firstValid = cms.vuint32(1)
0030 )
0031 
0032 process.tpparams7 = cms.ESSource("EmptyESSource",
0033     recordName = cms.string('EcalTPGLutIdMapRcd'),
0034     iovIsRunNotTime = cms.bool(True),
0035     firstValid = cms.vuint32(1)
0036 )
0037 
0038 process.EcalTrigPrimESProducer = cms.ESProducer("EcalTrigPrimESProducer",
0039     DatabaseFileEE = cms.untracked.string('TPG_EE.txt'),
0040     #untracked string DatabaseFileEB = "TPG_poweron.txt"//identity tcc lut
0041     DatabaseFileEB = cms.untracked.string('TPG_EB.txt')
0042 )
0043 
0044 process.outputEvents = cms.OutputModule("PoolOutputModule",
0045     fileName = cms.untracked.string('ecalFlat2Flat.root')
0046 )
0047 
0048 process.p = cms.Path(process.tccFlatToDigi*process.ecalSimRawData*process.l1Compare)
0049 process.outpath = cms.EndPath(process.outputEvents)
0050 process.tccFlatToDigi.SuperModuleId = -1
0051 process.tccFlatToDigi.FlatBaseName = 'data_in/ecal_tcc'
0052 process.tccFlatToDigi.FileEventOffset = 0
0053 process.tccFlatToDigi.UseIdentityLUT = False
0054 process.tccFlatToDigi.debugPrintFlag = False
0055 process.ecalSimRawData.tcc2dccData = False
0056 process.ecalSimRawData.srp2dccData = False
0057 process.ecalSimRawData.fe2dccData = False
0058 process.ecalSimRawData.trigPrimProducer = 'tccFlatToDigi'
0059 process.ecalSimRawData.tcpDigiCollection = 'formatTCP'
0060 process.ecalSimRawData.tpVerbose = False
0061 process.ecalSimRawData.tccInDefaultVal = 0
0062 process.ecalSimRawData.tccNum = -1
0063 process.ecalSimRawData.outputBaseName = 'data_out/ecal'
0064 process.l1Compare.ETP_dataLabel = 'tccFlatToDigi'
0065 process.l1Compare.ETP_emulLabel = 'tccFlatToDigi'
0066 process.l1Compare.DumpFile = 'dump_flat.txt'
0067 process.l1Compare.DumpMode = 1
0068 process.l1Compare.COMPARE_COLLS = [1, 0, 0, 0, 0, 
0069     0, 0, 0, 0, 0, 
0070     0]
0071