Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:41

0001 #
0002 # test_RawToDigi_Emulator_Data.py
0003 #
0004 # Test 3 : Run unpacker on raw data and compare with emulator
0005 #
0006 
0007 
0008 import FWCore.ParameterSet.Config as cms
0009 
0010 process = cms.Process('testRawToDigiEmulatorData')
0011 
0012 #Logger thingy
0013 #process.load("FWCore.MessageLogger.MessageLogger_cfi")
0014 #process.MessageLogger = cms.Service ("MessageLogger", 
0015 #  destinations = cms.untracked.vstring( "detailedInfo.txt" ),
0016 #  threshold = cms.untracked.string ( 'WARNING' )
0017 #)
0018 
0019 # Number of events
0020 process.maxEvents = cms.untracked.PSet ( input = cms.untracked.int32 ( 10000 ) )
0021 
0022 # GCT Unpacker
0023 process.load('EventFilter.GctRawToDigi.l1GctHwDigis_cfi')
0024 process.l1GctHwDigis.inputLabel = cms.InputTag( "rawDataCollector" )
0025 process.l1GctHwDigis.verbose = cms.untracked.bool ( False )
0026 #process.l1GctHwDigis.unpackFibres = cms.untracked.bool ( True )
0027 #process.l1GctHwDigis.unpackInternEm = cms.untracked.bool ( True )
0028 #process.l1GctHwDigis.unpackInternJets = cms.untracked.bool ( True )
0029 
0030 # GCT emulator
0031 process.load('L1Trigger.Configuration.L1StartupConfig_cff')
0032 import L1Trigger.GlobalCaloTrigger.gctDigis_cfi
0033 process.valGctDigis = L1Trigger.GlobalCaloTrigger.gctDigis_cfi.gctDigis.clone()
0034 process.valGctDigis.inputLabel = cms.InputTag( "l1GctHwDigis" )
0035 process.valGctDigis.preSamples = cms.uint32(0)
0036 process.valGctDigis.postSamples = cms.uint32(0)
0037 
0038 # comparator
0039 process.load('L1Trigger.HardwareValidation.L1Comparator_cfi')
0040 process.l1compare.GCTsourceData = cms.InputTag( "l1GctHwDigis" )
0041 process.l1compare.GCTsourceEmul = cms.InputTag( "valGctDigis" )
0042 process.l1compare.VerboseFlag = cms.untracked.int32(0)
0043 process.l1compare.DumpMode = cms.untracked.int32(0) #was -1 (shows failed + worked) or 1 (shows failed only)
0044 process.l1compare.DumpFile = cms.untracked.string( "l1compare_dump.txt" )
0045 process.l1compare.COMPARE_COLLS = cms.untracked.vuint32(
0046 # ETP,HTP,RCT,GCT,DTP,DTF,CTP,CTF,RPC,LTC,GMT,GT
0047     0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0
0048 )
0049 
0050 # GCT DQM
0051 process.load('DQMServices.Core.DQM_cfg')
0052 process.load('DQM.L1TMonitor.L1TGCT_cfi')
0053 process.l1tgct.disableROOToutput = cms.untracked.bool(False)
0054 #process.l1tgct.outputFile = cms.untracked.string('test_RawToDigi_Emulator_Data.root')
0055 process.l1tgct.gctCentralJetsSource = cms.InputTag("l1GctHwDigis","cenJets")
0056 process.l1tgct.gctNonIsoEmSource = cms.InputTag("l1GctHwDigis","nonIsoEm")
0057 process.l1tgct.gctForwardJetsSource = cms.InputTag("l1GctHwDigis","forJets")
0058 process.l1tgct.gctIsoEmSource = cms.InputTag("l1GctHwDigis","isoEm")
0059 process.l1tgct.gctEnergySumsSource = cms.InputTag("l1GctHwDigis","")
0060 process.l1tgct.gctTauJetsSource = cms.InputTag("l1GctHwDigis","tauJets")
0061 
0062 # RCT DQM
0063 process.load('DQM.L1TMonitor.L1TRCT_cfi')
0064 process.l1trct.disableROOToutput = cms.untracked.bool(False)
0065 #process.l1trct.outputFile = cms.untracked.string('test_RawToDigi_Emulator_Data.root')
0066 process.l1trct.rctSource = cms.InputTag("l1GctHwDigis","")
0067 
0068 
0069 # GCT EXPERT EMU DQM
0070 process.load('DQM.L1TMonitor.L1TdeGCT_cfi')
0071 process.l1demongct.VerboseFlag = cms.untracked.int32(0)
0072 process.l1demongct.DataEmulCompareSource = cms.InputTag("l1compare")
0073 process.l1demongct.HistFile = cms.untracked.string('test_RawToDigi_Emulator_Data.root')
0074 process.l1demongct.disableROOToutput = cms.untracked.bool( False )
0075 
0076 process.defaultPath = cms.Sequence (
0077 process.l1GctHwDigis *
0078 process.valGctDigis * 
0079 process.l1compare * 
0080 process.l1trct * 
0081 process.l1tgct * 
0082 process.l1demongct)
0083 
0084 process.p = cms.Path(process.defaultPath)
0085 
0086 process.out = cms.OutputModule(
0087     "PoolOutputModule",
0088     fileName = cms.untracked.string("test_emu.root")
0089     )
0090 
0091 #process.outpath=cms.EndPath(process.out)
0092 
0093 # Global Tag
0094 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0095 process.GlobalTag.globaltag = cms.string('GR09_P_V6::All')
0096 
0097 process.source = cms.Source ( "PoolSource",
0098    fileNames = cms.untracked.vstring(
0099     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/FEF2404B-6AD3-DE11-AF58-0019B9F72BFF.root',
0100     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/FEBBDD2C-32D3-DE11-B400-003048678098.root',
0101     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/FAF3C91A-51D3-DE11-ABFD-0030487A3C9A.root',
0102     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/F6897A24-46D3-DE11-BB1F-001617C3B6CC.root',
0103     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/EEC707FF-52D3-DE11-A4B1-000423D94A20.root',
0104     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/EE99A5FC-67D3-DE11-A646-000423D6BA18.root',
0105     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/ECCA99CC-4CD3-DE11-8FE6-001D09F253C0.root',
0106     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/EA9112F9-5FD3-DE11-AEB6-001D09F2AD7F.root',
0107     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/E899B5C2-5BD3-DE11-A050-001D09F28D54.root',
0108     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/E86A0E64-68D3-DE11-8909-000423D990CC.root',
0109     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/E8616DF1-39D3-DE11-9DEA-003048D375AA.root',
0110     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/E81667B5-4ED3-DE11-A38A-003048D2BED6.root',
0111     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/E2C46F28-67D3-DE11-A5F0-001D09F24F1F.root',
0112     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/E2B9AEB3-52D3-DE11-AA03-001D09F25456.root',
0113     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/DC4F2D74-47D3-DE11-8802-001D09F28F1B.root',
0114     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/DA50FAAC-60D3-DE11-BA9F-0019B9F709A4.root',
0115     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/D69D8696-33D3-DE11-8413-0030486730C6.root',
0116     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/D4D087E7-3CD3-DE11-8C87-0030487A18A4.root',
0117     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/D4C27D28-50D3-DE11-AB46-000423D991F0.root',
0118     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/D41993FC-41D3-DE11-9108-001D09F2516D.root',
0119     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/D27974A9-69D3-DE11-B313-0019B9F72BFF.root',
0120     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/D0DEBA11-5DD3-DE11-903C-001D09F28D54.root',
0121     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/C649CA22-45D3-DE11-84D1-001D09F24399.root',
0122     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/C647923B-3ED3-DE11-8FBB-001D09F24763.root',
0123     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/C457514D-55D3-DE11-95FE-001D09F24F1F.root',
0124     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/C028C572-44D3-DE11-9E5C-001D09F29114.root',
0125     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/B41BAF03-42D3-DE11-B4E3-0030487C5CFA.root',
0126     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/B247A836-64D3-DE11-8A0D-000423D996C8.root',
0127     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/B2028696-66D3-DE11-9361-001D09F24F1F.root',
0128     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/AADABA16-4BD3-DE11-AEB7-003048D2BE12.root',
0129     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/A8D8F539-3CD3-DE11-8384-001D09F27003.root',
0130     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/A4FDF10A-5DD3-DE11-84E7-0019B9F7312C.root',
0131     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/A47CD26A-57D3-DE11-B8CC-000423D60FF6.root',
0132     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/A2BCB4E2-32D3-DE11-8FEC-003048D37560.root',
0133     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/9CCB1F6B-59D3-DE11-9315-001D09F24FBA.root',
0134     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/9A8BB7B9-37D3-DE11-BEBD-001D09F290CE.root',
0135     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/927CBBBF-53D3-DE11-AA01-001D09F2AF1E.root',
0136     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/8EFD131B-4BD3-DE11-9A7C-003048D2C0F4.root',
0137     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/8C0739A0-43D3-DE11-A453-000423D6CA42.root',
0138     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/8AF60D81-46D3-DE11-B852-001D09F252DA.root',
0139     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/88F92AD3-53D3-DE11-A5C3-0030487D0D3A.root',
0140     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/82F556C0-35D3-DE11-909C-001D09F2983F.root',
0141     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/820AF02E-64D3-DE11-A05F-000423D986A8.root',
0142     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/7ECE87CC-64D3-DE11-862C-000423D987FC.root',
0143     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/7EAD91F3-36D3-DE11-9E6F-001D09F2462D.root',
0144     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/7AE69694-65D3-DE11-94E9-001D09F34488.root',
0145     '/store/data/BeamCommissioning09/Calo/RAW/v1/000/121/238/7A92A028-67D3-DE11-BDCE-000423D987E0.root'
0146     
0147     )
0148 )
0149