File indexing completed on 2024-04-06 12:10:31
0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003
0004 process = cms.Process("AnalyzeVFATFrames")
0005
0006
0007 options = VarParsing.VarParsing ('analysis')
0008 options.inputFiles= 'file:/eos/cms/store/group/dpg_ctpps/comm_ctpps/TotemTiming/Minidaq/306/run312306_ls0015_streamA_StorageManager.dat',
0009 options.outputFile = 'this_is_not_used'
0010 options.maxEvents = 10
0011
0012
0013 options.parseArguments()
0014
0015
0016 process.MessageLogger = cms.Service("MessageLogger",
0017 statistics = cms.untracked.vstring(),
0018 destinations = cms.untracked.vstring('cerr'),
0019 cerr = cms.untracked.PSet(
0020 threshold = cms.untracked.string('WARNING')
0021 )
0022 )
0023
0024
0025 process.source = cms.Source("NewEventStreamFileReader",
0026 fileNames = cms.untracked.vstring(options.inputFiles)
0027 )
0028
0029 process.maxEvents = cms.untracked.PSet(
0030 input = cms.untracked.int32(options.maxEvents)
0031 )
0032
0033
0034 process.totemVFATFrameAnalyzer = cms.EDAnalyzer("TotemVFATFrameAnalyzer",
0035 rawDataTag = cms.InputTag("rawDataCollector"),
0036 fedIds = cms.vuint32(587),
0037 RawUnpacking = cms.PSet()
0038 )
0039
0040
0041 process.p = cms.Path(
0042 process.totemVFATFrameAnalyzer
0043 )
0044