Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:14:47

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 process = cms.Process("AnalyzeVFATFrames")
0005 
0006 # default options
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 # parse command-line options
0013 options.parseArguments()
0014 
0015 # minimum of logs
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 # raw data source
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 # frame analyzer
0034 process.totemVFATFrameAnalyzer = cms.EDAnalyzer("TotemVFATFrameAnalyzer",
0035     rawDataTag = cms.InputTag("rawDataCollector"),
0036     fedIds = cms.vuint32(587),
0037     RawUnpacking = cms.PSet()
0038 )
0039 
0040 # execution configuration
0041 process.p = cms.Path(
0042     process.totemVFATFrameAnalyzer
0043 )
0044