File indexing completed on 2024-11-27 03:17:45
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 import FWCore.ParameterSet.Config as cms
0011 import sys
0012
0013 process = cms.Process("TestL1GtUnpacker")
0014
0015 print('\n')
0016 from L1Trigger.GlobalTriggerAnalyzer.UserOptions_cff import *
0017 if errorUserOptions == True :
0018 print('\nError returned by UserOptions_cff\n')
0019 sys.exit()
0020
0021
0022 if dataType == 'StreamFile' :
0023 process.source = cms.Source("NewEventStreamFileReader", fileNames=readFiles)
0024 else :
0025 process.source = cms.Source ('PoolSource',
0026 fileNames=readFiles,
0027 secondaryFileNames=secFiles,
0028 eventsToProcess = selectedEvents
0029 )
0030
0031
0032
0033 process.maxEvents = cms.untracked.PSet(
0034 input=cms.untracked.int32(maxNumberEvents)
0035 )
0036
0037
0038
0039
0040
0041 process.load("Configuration.StandardSequences.GeometryDB_cff")
0042 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0043
0044 process.GlobalTag.globaltag = useGlobalTag
0045
0046
0047 process.load("EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi")
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057 daqGtInputTag = 'rawDataCollector'
0058
0059 process.l1GtUnpack.DaqGtInputTag = daqGtInputTag
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086
0087
0088
0089
0090 process.l1GtUnpack.Verbosity = cms.untracked.int32(1)
0091
0092
0093
0094
0095
0096 process.load("L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi")
0097
0098
0099
0100
0101
0102
0103
0104
0105
0106 process.l1GtTrigReport.L1GtRecordInputTag = "l1GtUnpack"
0107
0108
0109
0110
0111
0112
0113
0114
0115 process.p = cms.Path(process.l1GtUnpack*process.l1GtTrigReport)
0116
0117
0118 process.load('FWCore.MessageService.MessageLogger_cfi')
0119 process.MessageLogger.debugModules = ['l1GtUnpack', 'l1GtTrigReport']
0120 process.MessageLogger.cerr.enable = False
0121
0122 process.MessageLogger.files.L1GtUnpacker_errors = cms.untracked.PSet(
0123 threshold = cms.untracked.string('ERROR'),
0124 ERROR = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0125 L1GlobalTriggerRawToDigi = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0126 )
0127
0128 process.MessageLogger.files.L1GtUnpacker_warnings = cms.untracked.PSet(
0129 threshold = cms.untracked.string('WARNING'),
0130 WARNING = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0131 ERROR = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0132 L1GlobalTriggerRawToDigi = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0133 )
0134
0135 process.MessageLogger.files.L1GtUnpacker_info = cms.untracked.PSet(
0136 threshold = cms.untracked.string('INFO'),
0137 INFO = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0138 WARNING = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0139 ERROR = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0140 L1GtTrigReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0141 )
0142
0143 process.MessageLogger.files.L1GtUnpacker = cms.untracked.PSet(
0144 threshold = cms.untracked.string('DEBUG'),
0145 DEBUG = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0146 INFO = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0147 WARNING = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0148 ERROR = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0149 L1GlobalTriggerRawToDigi = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0150 )
0151
0152
0153
0154 process.options = cms.untracked.PSet(
0155 wantSummary = cms.untracked.bool(True)
0156 )
0157
0158
0159
0160 process.outputL1GtUnpack = cms.OutputModule("PoolOutputModule",
0161 fileName = cms.untracked.string('L1GtUnpacker.root'),
0162
0163 outputCommands = cms.untracked.vstring('drop *',
0164 'keep *_l1GtUnpack_*_*')
0165 )
0166
0167 process.outpath = cms.EndPath(process.outputL1GtUnpack)
0168