File indexing completed on 2024-11-27 03:17:53
0001
0002
0003
0004
0005
0006
0007
0008
0009 import FWCore.ParameterSet.Config as cms
0010
0011
0012 process = cms.Process('L1GlobalTagTest')
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 useGlobalTag = 'GR_P_V37'
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037 printL1Rct = True
0038
0039
0040 printL1Gct = True
0041
0042
0043
0044 printL1DtTPG = False
0045
0046
0047 printL1DtTF = True
0048
0049
0050 printL1CscTF= True
0051
0052
0053 printL1Rpc = True
0054
0055
0056 printL1Gmt = True
0057
0058
0059 printL1Gt = True
0060
0061
0062
0063
0064
0065 useRunNumber = True
0066
0067
0068 if useRunNumber == True :
0069
0070 cmsSource = 'EmptySource'
0071
0072 firstRunNumber = 109087
0073 lastRunNumber = 109087
0074
0075 else :
0076
0077 cmsSource = 'PoolSource'
0078
0079 readFiles = cms.untracked.vstring()
0080 secFiles = cms.untracked.vstring()
0081
0082 readFiles.extend( [
0083 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/847/6A699BB9-2072-DE11-995B-001D09F34488.root'
0084
0085 ] );
0086
0087
0088
0089
0090
0091
0092 process.maxEvents = cms.untracked.PSet(
0093 input = cms.untracked.int32(1)
0094 )
0095
0096 if cmsSource == 'EmptySource' :
0097 process.source = cms.Source("EmptyIOVSource",
0098 timetype = cms.string('runnumber'),
0099 firstValue = cms.uint64(firstRunNumber),
0100 lastValue = cms.uint64(lastRunNumber),
0101 interval = cms.uint64(1)
0102 )
0103 else :
0104 process.source = cms.Source ('PoolSource', fileNames=readFiles, secondaryFileNames=secFiles)
0105
0106
0107
0108
0109 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0110 process.GlobalTag.globaltag = useGlobalTag + '::All'
0111
0112
0113 process.load('L1Trigger.Configuration.L1GlobalTagTest_cff')
0114
0115
0116 process.printGTagL1Rct = cms.Path(process.printGlobalTagL1Rct)
0117 process.printGTagL1Gct = cms.Path(process.printGlobalTagL1Gct)
0118
0119
0120 process.printGTagL1DtTF = cms.Path(process.printGlobalTagL1DtTF)
0121
0122 process.printGTagL1CscTF = cms.Path(process.printGlobalTagL1CscTF)
0123
0124 process.printGTagL1Rpc = cms.Path(process.printGlobalTagL1Rpc)
0125
0126 process.printGTagL1Gmt = cms.Path(process.printGlobalTagL1Gmt)
0127 process.printGTagL1Gt = cms.Path(process.printGlobalTagL1Gt)
0128
0129
0130 process.schedule = cms.Schedule()
0131
0132 print('')
0133
0134 if printL1Rct == True :
0135 process.schedule.extend([process.printGTagL1Rct])
0136 print("Printing L1 RCT content of global tag ", useGlobalTag)
0137 else :
0138 print("L1 RCT content of global tag ", useGlobalTag, " not requested to be printed")
0139
0140
0141 if printL1Gct == True :
0142 process.schedule.extend([process.printGTagL1Gct])
0143 print("Printing L1 GCT content of global tag ", useGlobalTag)
0144 else :
0145 print("L1 GCT content of global tag ", useGlobalTag, " not requested to be printed")
0146
0147
0148
0149 if printL1DtTPG == True :
0150
0151 print("Printing L1 DtTPG content of global tag ", useGlobalTag, ": MISSING")
0152 else :
0153 print("L1 DtTPG content of global tag ", useGlobalTag, " not requested to be printed")
0154
0155
0156 if printL1DtTF == True :
0157 process.schedule.extend([process.printGTagL1DtTF])
0158 print("Printing L1 DtTF content of global tag ", useGlobalTag)
0159 else :
0160 print("L1 DtTF content of global tag ", useGlobalTag, " not requested to be printed")
0161
0162
0163
0164 if printL1CscTF == True :
0165 process.schedule.extend([process.printGTagL1CscTF])
0166 print("Printing L1 CscTF content of global tag ", useGlobalTag)
0167 else :
0168 print("L1 CscTF content of global tag ", useGlobalTag, " not requested to be printed")
0169
0170
0171
0172 if printL1Rpc == True :
0173 process.schedule.extend([process.printGTagL1Rpc])
0174 print("Printing L1 RPC content of global tag ", useGlobalTag)
0175 else :
0176 print("L1 RPC content of global tag ", useGlobalTag, " not requested to be printed")
0177
0178
0179
0180 if printL1Gmt == True :
0181 process.schedule.extend([process.printGTagL1Gmt])
0182 print("Printing L1 GMT content of global tag ", useGlobalTag)
0183 else :
0184 print("L1 GMT content of global tag ", useGlobalTag, " not requested to be printed")
0185
0186
0187
0188 if printL1Gt == True :
0189 process.schedule.extend([process.printGTagL1Gt])
0190 print("Printing L1 GT content of global tag ", useGlobalTag)
0191 else :
0192 print("L1 GT content of global tag ", useGlobalTag, " not requested to be printed")
0193
0194 print('')
0195
0196
0197
0198 process.load('FWCore.MessageService.MessageLogger_cfi')
0199 process.MessageLogger.debugModules = ['*']
0200
0201 process.MessageLogger.cerr.threshold = 'DEBUG'
0202
0203
0204
0205
0206 process.MessageLogger.cerr.DEBUG = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0207 process.MessageLogger.cerr.INFO = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0208 process.MessageLogger.cerr.WARNING = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0209 process.MessageLogger.cerr.ERROR = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0210