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 ( "PoolSource",
0019 #   fileNames = cms.untracked.vstring('/store/data/Commissioning09/Calo/RAW/v1/000/096/889/FCF95AAE-0E44-DE11-BE87-000423D8FA38.root')
0020 #   fileNames = cms.untracked.vstring('/store/data/Commissioning09/Calo/RAW/v2/000/100/329/FE4BEE2D-815B-DE11-8C71-001D09F2AD84.root')
0021     fileNames = cms.untracked.vstring('/store/data/Commissioning10/MinimumBias/RAW-RECO/v8/000/132/602/08C1CF7A-D940-DF11-91F1-00E08178C01B.root')
0022 )
0023 
0024 # Number of events
0025 process.maxEvents = cms.untracked.PSet ( input = cms.untracked.int32 ( 100 ) )
0026 
0027 # unpacker
0028 process.load('EventFilter.GctRawToDigi.l1GctHwDigis_cfi')
0029 process.l1GctHwDigis.unpackerVersion = cms.uint32(3)
0030 #process.l1GctHwDigis.unpackSharedRegions = cms.bool ( True )
0031 process.l1GctHwDigis.inputLabel = cms.InputTag( "source" )
0032 process.l1GctHwDigis.numberOfGctSamplesToUnpack = cms.uint32(5)
0033 process.l1GctHwDigis.hltMode = cms.bool( False )
0034 process.l1GctHwDigis.verbose = cms.untracked.bool ( False )
0035 process.l1GctHwDigis.unpackFibres = cms.untracked.bool ( True )
0036 process.l1GctHwDigis.unpackInternEm = cms.untracked.bool ( True )
0037 process.l1GctHwDigis.unpackInternJets = cms.untracked.bool ( True )
0038 
0039 # GCT emulator
0040 process.load('L1Trigger.Configuration.L1StartupConfig_cff')
0041 import L1Trigger.GlobalCaloTrigger.gctDigis_cfi
0042 process.valGctDigis = L1Trigger.GlobalCaloTrigger.gctDigis_cfi.gctDigis.clone()
0043 process.valGctDigis.inputLabel = cms.InputTag( "l1GctHwDigis" )
0044 process.valGctDigis.writeInternalData = cms.bool(True)
0045 process.valGctDigis.useImprovedTauAlgorithm = cms.bool(False)
0046 process.valGctDigis.preSamples = cms.uint32(0)
0047 process.valGctDigis.postSamples = cms.uint32(0)
0048 
0049 # my analyzer
0050 process.TFileService = cms.Service("TFileService",
0051    fileName = cms.string( 'gctAnalyzer.root' )
0052 )
0053 
0054 process.load('L1Trigger.L1GctAnalyzer.gctErrorAnalyzer_cfi')
0055 
0056 process.defaultPath = cms.Sequence ( 
0057 # Unpacker
0058 process.l1GctHwDigis *
0059 # Emulator
0060 process.valGctDigis *
0061 # GCTErrorAnalyzer
0062 process.gctErrorAnalyzer
0063 )
0064 
0065 process.p = cms.Path(process.defaultPath)