Skip to content

Commit

Permalink
Update MessageLogger_cfi to new syntax
Browse files Browse the repository at this point in the history
Updated all configuration files which were dependent upon the old
syntax.
  • Loading branch information
Dr15Jones committed Dec 7, 2020
1 parent 6776544 commit eb0725a
Show file tree
Hide file tree
Showing 727 changed files with 1,848 additions and 2,112 deletions.
4 changes: 2 additions & 2 deletions Alignment/APEEstimation/test/SkimProducer/skimProducer_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
## Message Logger
##
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.categories.append('AlignmentTrackSelector')
#process.MessageLogger.categories.append('')

#
process.MessageLogger.cerr.INFO.limit = 0
process.MessageLogger.cerr.default.limit = -1
process.MessageLogger.cerr.AlignmentTrackSelector = cms.untracked.PSet(limit = cms.untracked.int32(-1))
Expand Down
4 changes: 2 additions & 2 deletions Alignment/APEEstimation/test/apeTreeCreateDefault_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
## Message Logger
##
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.categories.append('DefaultAPETree')
process.MessageLogger.categories.append('SectorBuilder')


process.MessageLogger.cerr.INFO.limit = 0
process.MessageLogger.cerr.default.limit = 0
process.MessageLogger.cerr.DefaultAPETree = cms.untracked.PSet(limit = cms.untracked.int32(-1))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
## Message Logger
##
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.categories.append('CalculateAPE')

process.MessageLogger.cerr.INFO.limit = 0
process.MessageLogger.cerr.default.limit = 0
process.MessageLogger.cerr.CalculateAPE = cms.untracked.PSet(limit = cms.untracked.int32(-1))
Expand Down
14 changes: 7 additions & 7 deletions Alignment/APEEstimation/test/cfgTemplate/apeEstimator_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@
## Message Logger
##
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.categories.append('SectorBuilder')
process.MessageLogger.categories.append('ResidualErrorBinning')
process.MessageLogger.categories.append('HitSelector')
process.MessageLogger.categories.append('CalculateAPE')
process.MessageLogger.categories.append('ApeEstimator')
process.MessageLogger.categories.append('TrackRefitter')
process.MessageLogger.categories.append('AlignmentTrackSelector')







process.MessageLogger.cerr.threshold = 'WARNING'
process.MessageLogger.cerr.INFO.limit = 0
process.MessageLogger.cerr.default.limit = -1
Expand Down
4 changes: 2 additions & 2 deletions Alignment/APEEstimation/test/testApeestimatorSummary_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
## Message Logger
##
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.categories.append('CalculateAPE')
#process.MessageLogger.categories.append('ApeEstimatorSummary')

#
process.MessageLogger.cerr.INFO.limit = 0
process.MessageLogger.cerr.default.limit = -1
process.MessageLogger.cerr.CalculateAPE = cms.untracked.PSet(limit = cms.untracked.int32(-1))
Expand Down
14 changes: 7 additions & 7 deletions Alignment/APEEstimation/test/testApeestimator_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
## Message Logger
##
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.categories.append('SectorBuilder')
process.MessageLogger.categories.append('ResidualErrorBinning')
process.MessageLogger.categories.append('HitSelector')
process.MessageLogger.categories.append('CalculateAPE')
process.MessageLogger.categories.append('ApeEstimator')
#process.MessageLogger.categories.append('TrackRefitter')
process.MessageLogger.categories.append('AlignmentTrackSelector')





#

process.MessageLogger.cerr.INFO.limit = 0
process.MessageLogger.cerr.default.limit = -1 # Do not use =0, else all error messages (except those listed below) are supressed
process.MessageLogger.cerr.SectorBuilder = cms.untracked.PSet(limit = cms.untracked.int32(-1))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.GlobalTag.globaltag = '%%%GLOBALTAG%%%'

process.MessageLogger.cerr = cms.untracked.PSet(placeholder = cms.untracked.bool(True))
process.MessageLogger.cerr = cms.untracked.PSet(enable = cms.untracked.bool(False))
process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring("%%%LOGFILE%%%"),
%%%LOGFILE%%% = cms.untracked.PSet(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@

# initialize MessageLogger
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.destinations = ['alignment']
process.MessageLogger.statistics = ['alignment']
process.MessageLogger.categories = ['Alignment']
process.MessageLogger.alignment = cms.untracked.PSet(

process.MessageLogger.files.alignment = cms.untracked.PSet(
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
Expand All @@ -32,11 +30,12 @@
),
Alignment = cms.untracked.PSet(
limit = cms.untracked.int32(-1),
)
),
enableStatistics = cms.untracked.bool(True)
)


process.MessageLogger.cerr.placeholder = cms.untracked.bool(True)
process.MessageLogger.cerr.enable = cms.untracked.bool(False)
process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

# Messages
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.destinations = ['cout', 'cerr']
process.MessageLogger.cerr.FwkReport.reportEvery = 10000

process.load("Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi")
Expand Down
4 changes: 2 additions & 2 deletions Alignment/LaserAlignment/test/testTkLasBeamFitter_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
## Message Logger
##
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cerr = cms.untracked.PSet(placeholder = cms.untracked.bool(True))
process.MessageLogger.cerr = cms.untracked.PSet(enable = cms.untracked.bool(False))
process.MessageLogger.cout = cms.untracked.PSet(INFO = cms.untracked.PSet(
reportEvery = cms.untracked.int32(100) # every 100th only
# limit = cms.untracked.int32(10) # or limit to 10 printouts...
))
process.MessageLogger.statistics.append('cout')
process.MessageLogger.cout.enableStatistics = cms.untracked.bool(True)

##
## Process options
Expand Down
11 changes: 5 additions & 6 deletions Alignment/MillePedeAlignmentAlgorithm/test/alignment_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# initialize MessageLogger
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.alignment = cms.untracked.PSet(
process.MessageLogger.files.alignment = cms.untracked.PSet(
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
Expand All @@ -27,12 +27,11 @@
Alignment = cms.untracked.PSet(
limit = cms.untracked.int32(-1),
reportEvery = cms.untracked.int32(1)
)
),
enableStatistics = cms.untracked.bool(True)
)
process.MessageLogger.cerr.placeholder = cms.untracked.bool(True)
process.MessageLogger.destinations = ['alignment']
process.MessageLogger.statistics = ['alignment']
process.MessageLogger.categories = ['Alignment']
process.MessageLogger.cerr.enable = cms.untracked.bool(False)



# initialize magnetic field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# initialize MessageLogger
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.alignment = cms.untracked.PSet(
process.MessageLogger.files.alignment = cms.untracked.PSet(
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
Expand All @@ -31,12 +31,9 @@
Alignment = cms.untracked.PSet(
limit = cms.untracked.int32(-1),
reportEvery = cms.untracked.int32(1)
)
),
enableStatistics = cms.untracked.bool(True)
)
process.MessageLogger.cerr.placeholder = cms.untracked.bool(True)
process.MessageLogger.destinations = ['alignment']
process.MessageLogger.statistics = ['alignment']
process.MessageLogger.categories = ['Alignment']


# initialize magnetic field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# initialize MessageLogger
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.alignment = cms.untracked.PSet(
process.MessageLogger.files.alignment = cms.untracked.PSet(
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
Expand All @@ -27,12 +27,11 @@
Alignment = cms.untracked.PSet(
limit = cms.untracked.int32(-1),
reportEvery = cms.untracked.int32(1)
)
),
enableStatistics = cms.untracked.bool(True)
)
process.MessageLogger.cerr.placeholder = cms.untracked.bool(True)
process.MessageLogger.destinations = ['alignment']
process.MessageLogger.statistics = ['alignment']
process.MessageLogger.categories = ['Alignment']
process.MessageLogger.cerr.enable = cms.untracked.bool(False)



# initialize magnetic field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# MessageLogger
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.cerr.threshold = 'INFO'
process.MessageLogger.categories.append('TrackerTreeGenerator')

process.MessageLogger.cerr.INFO.limit = 0
process.MessageLogger.cerr.default.limit = -1
process.MessageLogger.cerr.TrackerTreeGenerator = cms.untracked.PSet(limit = cms.untracked.int32(-1))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@
)
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.destinations = ['cout', 'cerr']
process.MessageLogger.cerr.FwkReport.reportEvery = 1000
process.MessageLogger.statistics.append('cout')
process.MessageLogger.cout.enableStatistics = cms.untracked.bool(True)
"""


Expand Down
1 change: 0 additions & 1 deletion Alignment/OfflineValidation/test/GeometryCentering_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
process.load("Configuration.Geometry.GeometryDB_cff")

process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.destinations = ['cout', 'cerr']

### needed to get the geometry
from Configuration.AlCa.GlobalTag import GlobalTag
Expand Down
1 change: 0 additions & 1 deletion Alignment/OfflineValidation/test/PVValidation_TEMPL_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def customiseKinksAndBows(process):
# Messages
###################################################################
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.destinations = ['cout', 'cerr']
process.MessageLogger.cerr.FwkReport.reportEvery = 1000

####################################################################
Expand Down
1 change: 0 additions & 1 deletion Alignment/OfflineValidation/test/PVValidation_T_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def customiseKinksAndBows(process):
# Messages
###################################################################
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.destinations = ['cout', 'cerr']
process.MessageLogger.cerr.FwkReport.reportEvery = 1000

####################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def best_match(rcd):
print("maxEvents : ", options.maxEvents)

process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.cerr = cms.untracked.PSet(placeholder = cms.untracked.bool(True))
process.MessageLogger.cerr = cms.untracked.PSet(enable = cms.untracked.bool(False))
process.MessageLogger.cout = cms.untracked.PSet(INFO = cms.untracked.PSet(
reportEvery = cms.untracked.int32(1000) # every 100th only
# limit = cms.untracked.int32(10) # or limit to 10 printouts...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def best_match(rcd):
print("outputFile : ", options.outputRootFile)

process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.cerr = cms.untracked.PSet(placeholder = cms.untracked.bool(True))
process.MessageLogger.cerr = cms.untracked.PSet(enable = cms.untracked.bool(False))
process.MessageLogger.cout = cms.untracked.PSet(INFO = cms.untracked.PSet(
reportEvery = cms.untracked.int32(1000) # every 100th only
# limit = cms.untracked.int32(10) # or limit to 10 printouts...
Expand Down
4 changes: 2 additions & 2 deletions Alignment/OfflineValidation/test/dqmOfflinevalidator_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
## Message Logger
##
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cerr = cms.untracked.PSet(placeholder = cms.untracked.bool(True))
process.MessageLogger.cerr = cms.untracked.PSet(enable = cms.untracked.bool(False))
process.MessageLogger.cout = cms.untracked.PSet(INFO = cms.untracked.PSet(
reportEvery = cms.untracked.int32(100) # every 100th only
# limit = cms.untracked.int32(10) # or limit to 10 printouts...
))
process.MessageLogger.statistics.append('cout')
process.MessageLogger.cout.enableStatistics = cms.untracked.bool(True)


##
Expand Down
2 changes: 1 addition & 1 deletion Alignment/OfflineValidation/test/eopTreeWriter_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.cerr.threshold = 'ERROR'
process.MessageLogger.cerr.FwkReport.reportEvery = 10000
process.MessageLogger.categories.append('TrackRefitter')


process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(False) )

Expand Down
2 changes: 1 addition & 1 deletion Alignment/OfflineValidation/test/inspectData_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# Message logger service
###################################################################
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cerr = cms.untracked.PSet(placeholder = cms.untracked.bool(True))
process.MessageLogger.cerr = cms.untracked.PSet(enable = cms.untracked.bool(False))
process.MessageLogger.cout = cms.untracked.PSet(INFO = cms.untracked.PSet(
reportEvery = cms.untracked.int32(1000) # every 100th only
# limit = cms.untracked.int32(10) # or limit to 10 printouts...
Expand Down
4 changes: 2 additions & 2 deletions Alignment/OfflineValidation/test/offlinevalidator_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
## Message Logger
####################################################################
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cerr = cms.untracked.PSet(placeholder = cms.untracked.bool(True))
process.MessageLogger.cerr = cms.untracked.PSet(enable = cms.untracked.bool(False))
process.MessageLogger.cout = cms.untracked.PSet(INFO = cms.untracked.PSet(
reportEvery = cms.untracked.int32(1000) # every 100th only
# limit = cms.untracked.int32(10) # or limit to 10 printouts...
))


process.MessageLogger.statistics.append('cout')
process.MessageLogger.cout.enableStatistics = cms.untracked.bool(True)
process.options = cms.untracked.PSet(
Rethrow = cms.untracked.vstring("ProductNotFound") # make this exception fatal
# , fileMode = cms.untracked.string('FULLMERGE') # any file order (default): caches all lumi/run products (memory!)
Expand Down
13 changes: 7 additions & 6 deletions Alignment/OfflineValidation/test/test_all_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,22 @@ class RefitType(Enum):
# Messages
###################################################################
process.load('FWCore.MessageService.MessageLogger_cfi')
process.MessageLogger.categories.append("PrimaryVertexValidation")
process.MessageLogger.categories.append("SplitVertexResolution")
process.MessageLogger.categories.append("FilterOutLowPt")
process.MessageLogger.destinations = cms.untracked.vstring("cout")



process.MessageLogger.cerr.enable = False
process.MessageLogger.cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string("INFO"),
default = cms.untracked.PSet(limit = cms.untracked.int32(0)),
FwkReport = cms.untracked.PSet(limit = cms.untracked.int32(-1),
reportEvery = cms.untracked.int32(1000)
),
PrimaryVertexValidation = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
SplitVertexResolution = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
FilterOutLowPt = cms.untracked.PSet( limit = cms.untracked.int32(-1))
FilterOutLowPt = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
enableStatistics = cms.untracked.bool(True)
)
process.MessageLogger.statistics.append('cout')

####################################################################
# Produce the Transient Track Record in the event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
usedGlobalTag = process.GlobalTag.globaltag.value()

process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.LOGFILE = cms.untracked.PSet(
process.MessageLogger.files.LOGFILE = cms.untracked.PSet(
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
Expand All @@ -44,12 +44,11 @@
Alignment = cms.untracked.PSet(
limit = cms.untracked.int32(-1),
reportEvery = cms.untracked.int32(1)
)
),
enableStatistics = cms.untracked.bool(True)
)
process.MessageLogger.cerr.placeholder = cms.untracked.bool(True)
process.MessageLogger.destinations = ['LOGFILE']
process.MessageLogger.statistics = ['LOGFILE']
process.MessageLogger.categories = ['Alignment']
process.MessageLogger.cerr.enable = cms.untracked.bool(False)


## if alignment constants not from global tag, add this
from CondCore.CondDB.CondDB_cfi import *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
##
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.cerr.threshold = 'INFO'
process.MessageLogger.categories.append('TrackerTreeGenerator')

process.MessageLogger.cerr.INFO.limit = 0
process.MessageLogger.cerr.default.limit = -1
process.MessageLogger.cerr.TrackerTreeGenerator = cms.untracked.PSet(limit = cms.untracked.int32(-1))
Expand Down
Loading

0 comments on commit eb0725a

Please sign in to comment.