Skip to content

Commit

Permalink
Merge pull request #32235 from Dr15Jones/newMessageLoggerConfig_Reco
Browse files Browse the repository at this point in the history
Updated configurations in Reco* to new MessageLogger syntax
  • Loading branch information
cmsbuild authored Dec 2, 2020
2 parents 567b016 + ba649e4 commit 7e8bd6f
Show file tree
Hide file tree
Showing 20 changed files with 171 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@

process.testGsfElectronConversionFinder = cms.EDAnalyzer("TestGsfElectronConversionFinder")

process.MessageLogger = cms.Service(
"MessageLogger",
destinations=cms.untracked.vstring("conversions"),
conversions=cms.untracked.PSet(threshold=cms.untracked.string("INFO")),
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
files = cms.untracked.PSet(
conversions = cms.untracked.PSet(
threshold = cms.untracked.string('INFO')
)
)
)

process.p = cms.Path(process.testGsfElectronConversionFinder)
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@

# MESSAGELOGGER
process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring('cout'),
cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING'))
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('WARNING')
)
)

# DQMSTORE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@

# MESSAGELOGGER
process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring('cout'),
cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING'))
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('WARNING')
)
)

# DQMSTORE
Expand Down
10 changes: 8 additions & 2 deletions RecoLocalCalo/HcalRecAlgos/test/hcalsevlvlanalyzer_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@

process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring("cout"),
cout = cms.untracked.PSet(threshold = cms.untracked.string("INFO")))
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('INFO')
)
)

process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,15 @@
)

# debug
process.MessageLogger = cms.Service('MessageLogger',
debugModules = cms.untracked.vstring('siPhase2Clusters'),
destinations = cms.untracked.vstring('cout'),
cout = cms.untracked.PSet(
threshold = cms.untracked.string('ERROR')
)
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('ERROR')
),
debugModules = cms.untracked.vstring('siPhase2Clusters')
)

# Analyzer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,25 @@

# debug
process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring("debugVH_PU200"),
debugModules = cms.untracked.vstring("*"),
categories = cms.untracked.vstring("VectorHitsBuilderValidation"),
debugVH_PU200 = cms.untracked.PSet(threshold = cms.untracked.string("DEBUG"),
DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0)),
default = cms.untracked.PSet(limit = cms.untracked.int32(0)),
VectorHitsBuilderValidation = cms.untracked.PSet(limit = cms.untracked.int32(-1))
)
)
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
debugModules = cms.untracked.vstring('*'),
files = cms.untracked.PSet(
debugVH_PU200 = cms.untracked.PSet(
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
VectorHitsBuilderValidation = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
default = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
threshold = cms.untracked.string('DEBUG')
)
)
)

# Analyzer
process.analysis = cms.EDAnalyzer('VectorHitsBuilderValidation',
Expand Down
13 changes: 6 additions & 7 deletions RecoLocalTracker/SiPixelClusterizer/test/testClusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,14 @@
)

process.MessageLogger = cms.Service("MessageLogger",
debugModules = cms.untracked.vstring('siPixelClusters'),
destinations = cms.untracked.vstring('cout'),
# destinations = cms.untracked.vstring("log","cout"),
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('ERROR')
)
# log = cms.untracked.PSet(
# threshold = cms.untracked.string('DEBUG')
# )
),
debugModules = cms.untracked.vstring('siPixelClusters')
)

process.source = cms.Source("PoolSource",
Expand Down
11 changes: 4 additions & 7 deletions RecoLocalTracker/SiPixelClusterizer/test/testTracks_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@
)

process.MessageLogger = cms.Service("MessageLogger",
# debugModules = cms.untracked.vstring('TestPixTracks'),
destinations = cms.untracked.vstring('cout'),
# destinations = cms.untracked.vstring("log","cout"),
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
# threshold = cms.untracked.string('DEBUG')
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('ERROR')
)
# log = cms.untracked.PSet(
# threshold = cms.untracked.string('DEBUG')
# )
)

import HLTrigger.HLTfilters.hltHighLevel_cfi as hlt
Expand Down
14 changes: 8 additions & 6 deletions RecoLuminosity/LumiProducer/test/TestLumiProducerFromBrilcalc_cfg.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring("cout"),
categories = cms.untracked.vstring("LumiProducerFromBrilcalc"),
debugModules = cms.untracked.vstring("LumiInfo"),
cout = cms.untracked.PSet(
threshold = cms.untracked.string('DEBUG')
)
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('DEBUG')
),
debugModules = cms.untracked.vstring('LumiInfo')
)

# just use a random relval which has meaningless run/LS numbers, and then a corresponding test file
Expand Down
27 changes: 17 additions & 10 deletions RecoLuminosity/LumiProducer/test/testLumiCalculator_cfg.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,23 @@
)

process.MessageLogger = cms.Service("MessageLogger",
suppressInfo = cms.untracked.vstring(),
destinations = cms.untracked.vstring('lumioutput'),
categories = cms.untracked.vstring('LumiReport'),
lumioutput = cms.untracked.PSet(
threshold = cms.untracked.string('INFO'),
noLineBreaks = cms.untracked.bool(True),
noTimeStamps = cms.untracked.bool(True),
INFO = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
LumiReport = cms.untracked.PSet( limit = cms.untracked.int32(10000000) )
)
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
files = cms.untracked.PSet(
lumioutput = cms.untracked.PSet(
INFO = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
LumiReport = cms.untracked.PSet(
limit = cms.untracked.int32(10000000)
),
noLineBreaks = cms.untracked.bool(True),
noTimeStamps = cms.untracked.bool(True),
threshold = cms.untracked.string('INFO')
)
),
suppressInfo = cms.untracked.vstring()
)
process.source= cms.Source("PoolSource",
processingMode=cms.untracked.string('RunsAndLumis'),
Expand Down
12 changes: 7 additions & 5 deletions RecoPPS/Local/test/re_alignment/reco_align_corr_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@

# minimum of logs
process.MessageLogger = cms.Service("MessageLogger",
statistics = cms.untracked.vstring(),
destinations = cms.untracked.vstring("cout"),
cout = cms.untracked.PSet(
threshold = cms.untracked.string("WARNING")
)
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('WARNING')
)
)

# raw data source
Expand Down
12 changes: 7 additions & 5 deletions RecoPPS/Local/test/re_alignment/reco_base_align_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@

# minimum of logs
process.MessageLogger = cms.Service("MessageLogger",
statistics = cms.untracked.vstring(),
destinations = cms.untracked.vstring("cout"),
cout = cms.untracked.PSet(
threshold = cms.untracked.string("WARNING")
)
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('WARNING')
)
)

# raw data source
Expand Down
12 changes: 7 additions & 5 deletions RecoPPS/Local/test/re_alignment/reco_full_align_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@

# minimum of logs
process.MessageLogger = cms.Service("MessageLogger",
statistics = cms.untracked.vstring(),
destinations = cms.untracked.vstring("cout"),
cout = cms.untracked.PSet(
threshold = cms.untracked.string("WARNING")
)
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('WARNING')
)
)

# raw data source
Expand Down
10 changes: 8 additions & 2 deletions RecoPPS/Local/test/run_only_CTPPS_cfg_CLU_DB_real_mem.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@
)

process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring('cclu_info'),
cclu_info = cms.untracked.PSet( threshold = cms.untracked.string('INFO'))
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
files = cms.untracked.PSet(
cclu_info = cms.untracked.PSet(
threshold = cms.untracked.string('INFO')
)
)
)
process.source = cms.Source("EmptyIOVSource",
timetype = cms.string('runnumber'),
Expand Down
9 changes: 7 additions & 2 deletions RecoPPS/Local/test/run_only_CTPPS_cfg_CLU_REC_DAQ_TRK.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@
)

process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring('cout'),
cout = cms.untracked.PSet( threshold = cms.untracked.string('ERROR'))
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('ERROR')
)
)
process.source = cms.Source("EmptyIOVSource",
timetype = cms.string('runnumber'),
Expand Down
10 changes: 8 additions & 2 deletions RecoPPS/Local/test/run_only_CTPPS_cfg_CLU_REC_DB_real_mem.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@
)

process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring('rec_info'),
rec_info = cms.untracked.PSet( threshold = cms.untracked.string('INFO'))
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
files = cms.untracked.PSet(
rec_info = cms.untracked.PSet(
threshold = cms.untracked.string('INFO')
)
)
)
process.source = cms.Source("EmptyIOVSource",
timetype = cms.string('runnumber'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@
)

process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring('cout'),
cout = cms.untracked.PSet( threshold = cms.untracked.string('ERROR'))
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('ERROR')
)
)
process.source = cms.Source("EmptyIOVSource",
timetype = cms.string('runnumber'),
Expand Down
14 changes: 8 additions & 6 deletions RecoPixelVertexing/PixelTrackFitting/test/test_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
process.GlobalTag.globaltag = 'DESIGN_36_V3::All'

process.MessageLogger = cms.Service("MessageLogger",
#debugModules = cms.untracked.vstring('pixelVertices'),
#debugModules = cms.untracked.vstring('pixelTracks'),
#debugModules = cms.untracked.vstring('*'),
debugModules = cms.untracked.vstring(''),
destinations = cms.untracked.vstring('cout'),
cout = cms.untracked.PSet( threshold = cms.untracked.string('INFO'))
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('INFO')
),
debugModules = cms.untracked.vstring('')
)

process.load("RecoTracker.Configuration.RecoTracker_cff")
Expand Down
17 changes: 10 additions & 7 deletions RecoTracker/GeometryESProducer/test/testTrackerRecoGeometry_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@

process.load('FWCore.MessageLogger.MessageLogger_cfi')
process.MessageLogger = cms.Service("MessageLogger",
debugModules = cms.untracked.vstring('TrackerRecoGeometryAnalyzer'),
destinations = cms.untracked.vstring('TrackerRecoGeometryAnalyzer_infos'),
TrackerRecoGeometryAnalyzer_infos = cms.untracked.PSet(
threshold = cms.untracked.string('INFO')
),
categories = cms.untracked.vstring('TrackerRecoGeometryAnalyzer')
)
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
debugModules = cms.untracked.vstring('TrackerRecoGeometryAnalyzer'),
files = cms.untracked.PSet(
TrackerRecoGeometryAnalyzer_infos = cms.untracked.PSet(
threshold = cms.untracked.string('INFO')
)
)
)

process.source = cms.Source("EmptySource")

Expand Down
Loading

0 comments on commit 7e8bd6f

Please sign in to comment.