Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:15:01

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('testAnalysis')
0004 
0005 #Logger thingy
0006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 process.MessageLogger = cms.Service ("MessageLogger", 
0008   destinations = cms.untracked.vstring( "detailedInfo.txt" ),
0009   threshold = cms.untracked.string ( 'WARNING' )
0010 )
0011 
0012 process.source = cms.Source ( "PoolSource",
0013    fileNames = cms.untracked.vstring('/store/data/Commissioning08/Calo/RAW/v1/000/066/279/000B8879-AB9A-DD11-80EE-001617C3B778.root') 
0014 )
0015 
0016 # Number of events
0017 process.maxEvents = cms.untracked.PSet ( input = cms.untracked.int32 ( 5 ) )
0018 
0019 # GCT Unpacker
0020 process.load('EventFilter.GctRawToDigi.l1GctHwDigis_cfi')
0021 process.l1GctHwDigis.inputLabel = cms.InputTag( "rawDataCollector" )
0022 process.l1GctHwDigis.verbose = cms.untracked.bool ( False )
0023 process.l1GctHwDigis.unpackFibres = cms.untracked.bool ( True )
0024 process.l1GctHwDigis.unpackInternEm = cms.untracked.bool ( True )
0025 process.l1GctHwDigis.unpackInternJets = cms.untracked.bool ( True )
0026 
0027 # GCT emulator
0028 process.load('L1Trigger.Configuration.L1StartupConfig_cff')
0029 import L1Trigger.GlobalCaloTrigger.gctDigis_cfi
0030 process.valGctDigis = L1Trigger.GlobalCaloTrigger.gctDigis_cfi.gctDigis.clone()
0031 process.valGctDigis.inputLabel = cms.InputTag( "l1GctHwDigis" )#use this when running over random trigger data
0032 process.valGctDigis.preSamples = cms.uint32(0)
0033 process.valGctDigis.postSamples = cms.uint32(0)
0034 
0035 # comparator
0036 process.load('L1Trigger.HardwareValidation.L1Comparator_cfi')
0037 process.l1compare.GCTsourceData = cms.InputTag( "l1GctHwDigis" )
0038 process.l1compare.GCTsourceEmul = cms.InputTag( "valGctDigis" )
0039 #process.l1compare.RCTsourceData = cms.InputTag( "l1GctHwDigis" )
0040 #process.l1compare.RCTsourceEmul = cms.InputTag( "l1GctHwDigis" )
0041 process.l1compare.VerboseFlag = cms.untracked.int32(0)
0042 process.l1compare.DumpMode = cms.untracked.int32(0) #was -1 (shows failed + worked) or 1 (shows failed only)
0043 process.l1compare.DumpFile = cms.untracked.string( "l1compare_dump.txt" )
0044 process.l1compare.COMPARE_COLLS = cms.untracked.vuint32(
0045 # ETP,HTP,RCT,GCT,DTP,DTF,CTP,CTF,RPC,LTC,GMT,GT
0046     0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0
0047 )
0048 
0049 # GCT DQM
0050 process.load('DQMServices.Core.DQM_cfg')
0051 process.load('DQM.L1TMonitor.L1TGCT_cfi')
0052 process.l1tgct.disableROOToutput = cms.untracked.bool(False)
0053 process.l1tgct.outputFile = cms.untracked.string('gctDqm_testAnalysis.root')
0054 process.l1tgct.gctCentralJetsSource = cms.InputTag("l1GctHwDigis","cenJets")
0055 process.l1tgct.gctNonIsoEmSource = cms.InputTag("l1GctHwDigis","nonIsoEm")
0056 process.l1tgct.gctForwardJetsSource = cms.InputTag("l1GctHwDigis","forJets")
0057 process.l1tgct.gctIsoEmSource = cms.InputTag("l1GctHwDigis","isoEm")
0058 process.l1tgct.gctEnergySumsSource = cms.InputTag("l1GctHwDigis","")
0059 process.l1tgct.gctTauJetsSource = cms.InputTag("l1GctHwDigis","tauJets")
0060 
0061 # RCT DQM
0062 process.load('DQM.L1TMonitor.L1TRCT_cfi')
0063 process.l1trct.disableROOToutput = cms.untracked.bool(False)
0064 process.l1trct.outputFile = cms.untracked.string('gctDqm_testAnalysis.root')
0065 process.l1trct.rctSource = cms.InputTag("l1GctHwDigis","")
0066 #process.l1trct.rctSource = cms.InputTag("valGctDigis","")
0067 
0068 # GCT EXPERT EMU DQM
0069 process.load('DQM.L1TMonitor.L1TdeGCT_cfi')
0070 process.l1demongct.VerboseFlag = cms.untracked.int32(0)
0071 process.l1demongct.DataEmulCompareSource = cms.InputTag("l1compare")
0072 process.l1demongct.HistFile = cms.untracked.string('gctDqm_testAnalysis.root')
0073 process.l1demongct.disableROOToutput = cms.untracked.bool( False )
0074 
0075 process.defaultPath = cms.Sequence (
0076 process.l1GctHwDigis *
0077 process.valGctDigis * 
0078 process.l1compare * 
0079 process.l1trct * 
0080 process.l1tgct * 
0081 process.l1demongct)
0082 
0083 process.p = cms.Path(process.defaultPath)
0084 
0085 process.output = cms.OutputModule( "PoolOutputModule",
0086   outputCommands = cms.untracked.vstring (
0087   "drop *",
0088   "keep *_*_*_testAnalysis"  
0089   ),
0090   fileName = cms.untracked.string( "run68288_10M_V01-15-16.root" ) #/castor/cern.ch/user/j/jad/run68288_09val/
0091 )
0092 
0093 #process.out = cms.EndPath( process.output )