File indexing completed on 2024-04-06 12:20:04
0001 from __future__ import print_function
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 import FWCore.ParameterSet.Config as cms
0015 import sys
0016
0017 process = cms.Process('TestL1GtBeamModeFilter')
0018
0019 print('\n')
0020 from L1Trigger.GlobalTriggerAnalyzer.UserOptions_cff import *
0021 if errorUserOptions == True :
0022 print('\nError returned by UserOptions_cff\n')
0023 sys.exit()
0024
0025
0026
0027 if dataType == 'StreamFile' :
0028 process.source = cms.Source("NewEventStreamFileReader", fileNames=readFiles)
0029 else :
0030 process.source = cms.Source ('PoolSource', fileNames=readFiles, secondaryFileNames=secFiles)
0031
0032
0033
0034 process.maxEvents = cms.untracked.PSet(
0035 input=cms.untracked.int32(maxNumberEvents)
0036 )
0037
0038
0039
0040
0041 process.load("Configuration.StandardSequences.GeometryDB_cff")
0042
0043 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0044
0045 process.GlobalTag.globaltag = useGlobalTag
0046
0047
0048
0049
0050
0051
0052 process.load('L1Trigger.GlobalTriggerAnalyzer.l1GtBeamModeFilter_cfi')
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065 process.l1GtBeamModeFilter.AllowedBeamMode = cms.vuint32(9, 10, 11)
0066
0067
0068
0069
0070
0071
0072 if (dataType == 'RAW') and not (useRelValSample) :
0073 process.load('Configuration/StandardSequences/RawToDigi_Data_cff')
0074 process.gtEvmDigis.UnpackBxInEvent = cms.int32(1)
0075
0076 process.gtEvmDigis.Verbosity = cms.untracked.int32(1)
0077
0078 process.p = cms.Path(process.RawToDigi * process.l1GtBeamModeFilter)
0079
0080 elif (dataType == 'RAW') and (useRelValSample) :
0081 process.load('Configuration/StandardSequences/RawToDigi_cff')
0082 process.gtEvmDigis.UnpackBxInEvent = cms.int32(1)
0083
0084 process.gtEvmDigis.Verbosity = cms.untracked.int32(1)
0085
0086 process.p = cms.Path(process.RawToDigi * process.l1GtBeamModeFilter)
0087
0088 else :
0089
0090 process.p = cms.Path(process.l1GtBeamModeFilter)
0091
0092
0093
0094
0095 process.load('FWCore.MessageService.MessageLogger_cfi')
0096 process.MessageLogger.debugModules = ['gtEvmDigis', 'l1GtBeamModeFilter']
0097 process.MessageLogger.L1GlobalTriggerEvmRawToDigi=dict()
0098 process.MessageLogger.L1GtBeamModeFilter=dict()
0099
0100 process.MessageLogger.cerr.threshold = 'DEBUG'
0101
0102
0103
0104
0105 process.MessageLogger.cerr.DEBUG = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0106 process.MessageLogger.cerr.INFO = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0107 process.MessageLogger.cerr.WARNING = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0108 process.MessageLogger.cerr.ERROR = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0109
0110 process.MessageLogger.cerr.L1GlobalTriggerEvmRawToDigi = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0111 process.MessageLogger.cerr.L1GtBeamModeFilter = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0112
0113