Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:14

0001 #
0002 # This configuration is intended to be used to check pattern tests with the GCT emulator 
0003 #
0004 # Alex Tapper 8/9/10
0005 #
0006 
0007 process = cms.Process('GctPatternTester')
0008 
0009 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0010 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0011 process.MessageLogger.cout.threshold = cms.untracked.string('DEBUG')
0012 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0013 
0014 process.source = cms.Source ( "EmptySource" )
0015 
0016 # One orbit of data is default for capture 
0017 process.maxEvents = cms.untracked.PSet ( input = cms.untracked.int32 ( 3563 ) )
0018 
0019 # Input captured ascii file
0020 process.gctRaw = cms.EDProducer( "TextToRaw",
0021                                    filename = cms.untracked.string ( "patternCapture_ts__2010_09_03__13h19m20s.txt" ),
0022                                    GctFedId = cms.untracked.int32 ( 745 )
0023                                    )
0024 
0025 # Settings for pattern test (corresponds to V38_FS_Int11_Tau2_AllPipes_VME key)
0026 process.load('L1Trigger.L1GctAnalyzer.gctPatternTestConfig_cff')
0027 
0028 # GCT emulator
0029 import L1Trigger.GlobalCaloTrigger.gctDigis_cfi
0030 process.valGctDigis = L1Trigger.GlobalCaloTrigger.gctDigis_cfi.gctDigis.clone()
0031 process.valGctDigis.inputLabel = cms.InputTag("l1GctHwDigis")
0032 process.valGctDigis.writeInternalData = cms.bool(True)
0033 process.valGctDigis.preSamples = cms.uint32(0)
0034 process.valGctDigis.postSamples = cms.uint32(0)
0035 process.valGctDigis.useImprovedTauAlgorithm = cms.bool(True)
0036 
0037 # GCT unpacker
0038 process.load('EventFilter.GctRawToDigi.l1GctHwDigis_cfi')
0039 process.l1GctHwDigis.inputLabel = cms.InputTag( "gctRaw" )
0040 
0041 # L1Comparator
0042 process.load('L1Trigger.HardwareValidation.L1Comparator_cfi')
0043 process.l1compare.GCTsourceData = cms.InputTag("l1GctHwDigis")
0044 process.l1compare.COMPARE_COLLS = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]
0045 process.l1compare.DumpMode = cms.untracked.int32(1)
0046 process.l1compare.DumpFile = cms.untracked.string('dump.txt')
0047 process.l1compare.VerboseFlag = cms.untracked.int32(0)
0048 
0049 # Dump GCT digis
0050 process.load('L1Trigger.L1GctAnalyzer.dumpGctDigis_cfi')
0051 process.dumpGctDigis.doRctEm = cms.untracked.bool(False)
0052 process.dumpGctDigis.doEm = cms.untracked.bool(True)
0053 process.dumpGctDigis.doJets = cms.untracked.bool(True)
0054 process.dumpGctDigis.doEmulated = cms.untracked.bool(True)
0055 process.dumpGctDigis.emuGctInput = cms.untracked.InputTag("valGctDigis")
0056 process.dumpGctDigis.doRegions = cms.untracked.bool(False)
0057 process.dumpGctDigis.doInternEm = cms.untracked.bool(False)
0058 process.dumpGctDigis.doEnergySums = cms.untracked.bool(True)
0059 process.dumpGctDigis.doFibres = cms.untracked.bool(False)
0060 process.dumpGctDigis.outFile = cms.untracked.string('gctDigis.txt')
0061 
0062 # GCTErrorAnalyzer
0063 process.load('L1Trigger.L1GctAnalyzer.gctErrorAnalyzer_cfi')
0064 
0065 # Output ROOT file
0066 process.TFileService = cms.Service("TFileService",
0067    fileName = cms.string( 'gctErrorAnalyzer.root' )
0068 )
0069 
0070 process.p = cms.Path(process.gctRaw*
0071                      process.l1GctHwDigis*
0072                      process.valGctDigis*
0073                      process.l1compare*
0074                      process.dumpGctDigis*
0075                      process.gctErrorAnalyzer)
0076 
0077 
0078 process.output = cms.OutputModule( "PoolOutputModule",
0079                                    outputCommands = cms.untracked.vstring (
0080     "drop *",
0081     "keep *_*_*_GctPatternTester",
0082     ),
0083                                    fileName = cms.untracked.string( "gctPatternTester.root" ),
0084                                    )
0085 
0086 process.out = cms.EndPath( process.output )