Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("GCTAnalyzerTest")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 process.MessageLogger = cms.Service("MessageLogger",
0007     cerr = cms.untracked.PSet(
0008         enable = cms.untracked.bool(False)
0009     ),
0010     files = cms.untracked.PSet(
0011         detailedInfo = cms.untracked.PSet(
0012             extension = cms.untracked.string('txt')
0013         )
0014     ),
0015     threshold = cms.untracked.string('WARNING')
0016 )
0017 
0018 process.source = cms.Source ( "EmptySource" )
0019 
0020 # Number of events
0021 process.maxEvents = cms.untracked.PSet ( input = cms.untracked.int32 ( 3563 ) ) #use 3563 for whole orbit
0022 
0023 # raw data
0024 process.gctRaw = cms.OutputModule( "TextToRaw",
0025   filename = cms.untracked.string("slinkOutput.txt"),
0026   GctFedId = cms.untracked.int32 ( 745 ),
0027   FileEventOffset = cms.untracked.int32 ( 0 )
0028 )
0029 
0030 # unpacker
0031 process.load('EventFilter.GctRawToDigi.l1GctHwDigis_cfi')
0032 process.l1GctHwDigis.unpackerVersion = cms.uint32(3)
0033 #process.l1GctHwDigis.unpackSharedRegions = cms.bool ( True )
0034 process.l1GctHwDigis.numberOfGctSamplesToUnpack = cms.uint32(5)
0035 process.l1GctHwDigis.hltMode = cms.bool( False )
0036 process.l1GctHwDigis.inputLabel = cms.InputTag( "gctRaw" )
0037 process.l1GctHwDigis.verbose = cms.untracked.bool ( False )
0038 process.l1GctHwDigis.unpackFibres = cms.untracked.bool ( True )
0039 process.l1GctHwDigis.unpackInternEm = cms.untracked.bool ( True )
0040 process.l1GctHwDigis.unpackInternJets = cms.untracked.bool ( True )
0041 
0042 # GCT emulator
0043 process.load('L1Trigger.Configuration.L1StartupConfig_cff')
0044 import L1Trigger.GlobalCaloTrigger.gctDigis_cfi
0045 process.valGctDigis = L1Trigger.GlobalCaloTrigger.gctDigis_cfi.gctDigis.clone()
0046 process.valGctDigis.writeInternalData = cms.bool(True)
0047 process.valGctDigis.inputLabel = cms.InputTag( "l1GctHwDigis" )
0048 process.valGctDigis.preSamples = cms.uint32(0)
0049 process.valGctDigis.postSamples = cms.uint32(0)
0050 
0051 # my analyzer
0052 process.TFileService = cms.Service("TFileService",
0053    fileName = cms.string( 'raw_gctAnalyzer.root' )
0054 )
0055 
0056 # GCT Error Analyzer
0057 process.load('L1Trigger.L1GctAnalyzer.gctErrorAnalyzer_cfi')
0058 process.gctErrorAnalyzer.doEmuMBx = cms.untracked.bool(True)
0059 process.gctErrorAnalyzer.doGCTMBx = cms.untracked.bool(True)
0060 process.gctErrorAnalyzer.doExtraMissingHTDebug = cms.untracked.bool(True)
0061 
0062 process.defaultPath = cms.Sequence ( 
0063 # Text to Raw
0064 process.gctRaw *
0065 # Unpacker
0066 process.l1GctHwDigis *
0067 # Emulator
0068 process.valGctDigis *
0069 # GCTErrorAnalyzer
0070 process.gctErrorAnalyzer
0071 )
0072 
0073 process.p = cms.Path(process.defaultPath)