Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # Description:
0002 #  test gct sequence: digi -> raw -> digi
0003 #  check consistency of input and output rct,gct digi collections
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("gctDigiToDigi")
0008 
0009 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0010 process.load("L1Trigger.HardwareValidation.L1Comparator_cfi")
0011 
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(-1)
0014 )
0015 process.source = cms.Source("PoolSource",
0016     fileNames = cms.untracked.vstring('file:calodigis.root')
0017 )
0018 
0019 process.gctDigiToRaw = cms.EDProducer("GctDigiToRaw",
0020     rctInputLabel = cms.InputTag("rctDigis"),
0021     gctInputLabel = cms.InputTag("gctDigis"),
0022     gctFedId = cms.int32(745),
0023     verbose = cms.untracked.bool(False)
0024 )
0025 
0026 process.l1GctHwDigis = cms.EDProducer("GctRawToDigi",
0027     gctFedId = cms.int32(745),
0028     unpackInternEm = cms.untracked.bool(True),
0029     inputLabel = cms.InputTag("gctDigiToRaw"),
0030     verbose = cms.untracked.bool(False),
0031     unpackFibres = cms.untracked.bool(True)
0032 )
0033 
0034 process.dump = cms.EDAnalyzer("DumpFEDRawDataProduct",
0035     feds = cms.untracked.vint32(745),
0036     dumpPayload = cms.untracked.bool(True)
0037 )
0038 
0039 process.l1compare.GCTsourceEmul = 'gctDigis'                          
0040 process.l1compare.GCTsourceData = 'l1GctHwDigis'                      
0041 process.l1compare.DumpFile = 'dump.txt'                               
0042 process.l1compare.DumpMode = 1                                        
0043                                                                       
0044 process.l1compare.COMPARE_COLLS = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]
0045 
0046 process.outputEvents = cms.OutputModule("PoolOutputModule",
0047     fileName = cms.untracked.string('gctDigiToDigi.root')
0048 )
0049 
0050 process.p = cms.Path(
0051     process.gctDigiToRaw
0052     *process.dump
0053     *process.l1GctHwDigis
0054     *process.l1compare
0055     )
0056 
0057 process.outpath = cms.EndPath(process.outputEvents)                   
0058                                                                       
0059 
0060