File indexing completed on 2024-11-27 03:17:54
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 import FWCore.ParameterSet.Config as cms
0011 import sys
0012
0013
0014 process = cms.Process('L1GtTrigReport')
0015
0016 print('\n')
0017 from L1Trigger.GlobalTriggerAnalyzer.UserOptions_cff import *
0018 if errorUserOptions == True :
0019 print('\nError returned by UserOptions_cff\n')
0020 sys.exit()
0021
0022
0023
0024 if dataType == 'StreamFile' :
0025 process.source = cms.Source("NewEventStreamFileReader", fileNames=readFiles)
0026 else :
0027 process.source = cms.Source ('PoolSource', fileNames=readFiles, secondaryFileNames=secFiles)
0028
0029
0030
0031 process.maxEvents = cms.untracked.PSet(
0032 input=cms.untracked.int32(maxNumberEvents)
0033 )
0034
0035
0036
0037
0038 process.load('Configuration.StandardSequences.GeometryDB_cff')
0039 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0040
0041 process.GlobalTag.globaltag = useGlobalTag
0042
0043
0044
0045
0046
0047 process.load("L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi")
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057 process.l1GtTrigReport.L1GtRecordInputTag = "simGtDigis"
0058
0059
0060
0061
0062
0063 if (dataType == 'RAW') and not (useRelValSample) :
0064 process.load('Configuration/StandardSequences/RawToDigi_Data_cff')
0065 process.l1GtTrigReport.L1GtRecordInputTag = "gtDigis"
0066 process.p = cms.Path(process.RawToDigi+process.l1GtTrigReport)
0067
0068 elif (dataType == 'RAW') and (useRelValSample) :
0069 process.load('Configuration/StandardSequences/RawToDigi_cff')
0070 process.l1GtTrigReport.L1GtRecordInputTag = "gtDigis"
0071 process.p = cms.Path(process.RawToDigi+process.l1GtTrigReport)
0072
0073 else :
0074
0075 process.p = cms.Path(process.l1GtTrigReport)
0076
0077
0078 process.load('FWCore.MessageService.MessageLogger_cfi')
0079 process.MessageLogger.debugModules = ['l1GtTrigReport']
0080
0081
0082 process.MessageLogger.cerr.threshold = 'INFO'
0083
0084
0085
0086 process.MessageLogger.cerr.DEBUG = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0087 process.MessageLogger.cerr.INFO = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0088 process.MessageLogger.cerr.WARNING = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0089 process.MessageLogger.cerr.ERROR = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0090
0091 process.MessageLogger.cerr.L1GtTrigReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0092
0093
0094
0095 process.options = cms.untracked.PSet(
0096 wantSummary=cms.untracked.bool(True)
0097 )
0098