Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:47

0001 #
0002 # cfg file for a module to produce a raw GT DAQ or EVM record 
0003 # starting from a text (ASCII) file
0004 #
0005 
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 # process
0009 process = cms.Process("TestGtTextToRaw")
0010 
0011 # number of events to be processed and source file
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(10)
0014 )
0015 
0016 # source file: ASCII file, hex format, one 64bits word per line
0017 # some standard dumps could be given directly and will be cleaned  
0018 process.source = cms.Source("EmptySource")
0019 
0020 # load and configure modules
0021 
0022 # L1 EventSetup
0023 process.load("L1Trigger.Configuration.L1DummyConfig_cff")
0024 
0025 # L1GtTextToRaw
0026 process.load("EventFilter.L1GlobalTriggerRawToDigi.l1GtTextToRaw_cfi")
0027 
0028 # text file type: indicate the producer of the file
0029 # for standard dumps, the module will clean the file
0030 #process.l1GtTextToRaw.TextFileType = 'VmeSpyDump'
0031 
0032 process.l1GtTextToRaw.TextFileName = '/afs/cern.ch/user/g/ghete/scratch0/CmsswTestFiles/testGt_TextToRaw_source.txt'
0033 
0034 # FED Id (default 813)
0035 #process.l1GtTextToRaw.DaqGtFedId = 813
0036     
0037 # FED raw data size (in 8bits units, including header and trailer)
0038 # If negative value, the size is retrieved from the trailer.        
0039 #process.l1GtTextToRaw.RawDataSize = 872
0040 
0041 # path to be run
0042 process.p = cms.Path(process.l1GtTextToRaw)
0043 
0044 # services
0045 
0046 # Message Logger
0047 # uncomment / comment messages with DEBUG mode to run in DEBUG mode
0048 process.MessageLogger = cms.Service("MessageLogger",
0049     cerr = cms.untracked.PSet(
0050         enable = cms.untracked.bool(False)
0051     ),
0052     debugModules = cms.untracked.vstring('l1GtTextToRaw'),
0053     files = cms.untracked.PSet(
0054         testGt_TextToRaw = cms.untracked.PSet(
0055             DEBUG = cms.untracked.PSet(
0056                 limit = cms.untracked.int32(-1)
0057             ),
0058             INFO = cms.untracked.PSet(
0059                 limit = cms.untracked.int32(-1)
0060             ),
0061             threshold = cms.untracked.string('DEBUG')
0062         )
0063     )
0064 )
0065 
0066 # output 
0067 process.outputL1GtTextToRaw = cms.OutputModule("PoolOutputModule",
0068     fileName = cms.untracked.string('testGt_TextToRaw_output.root'),
0069     # keep only packed data in the ROOT file
0070     outputCommands = cms.untracked.vstring('drop *', 
0071         'keep *_l1GtTextToRaw_*_*')
0072 )
0073 
0074 process.outpath = cms.EndPath(process.outputL1GtTextToRaw)
0075