Skip to content

Commit

Permalink
Merge pull request #32185 from Dr15Jones/newMessageLoggerConfig_Align…
Browse files Browse the repository at this point in the history
…ment

Updated configurations in Alignment to new MessageLogger syntax
  • Loading branch information
cmsbuild authored Dec 2, 2020
2 parents e6e67ba + 4a793e6 commit aa368a5
Show file tree
Hide file tree
Showing 16 changed files with 235 additions and 198 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,37 +118,39 @@
)


process.MessageLogger = cms.Service(
"MessageLogger",
statistics = cms.untracked.vstring('cout', 'alignment'),
categories = cms.untracked.vstring('Alignment'),
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
threshold = cms.untracked.string('DEBUG'),
noLineBreaks = cms.untracked.bool(True)
),
alignment = cms.untracked.PSet(
INFO = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
enable = cms.untracked.bool(True),
enableStatistics = cms.untracked.bool(True),
noLineBreaks = cms.untracked.bool(True),
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
threshold = cms.untracked.string('DEBUG')
),
files = cms.untracked.PSet(
alignment = cms.untracked.PSet(
Alignment = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
WARNING = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
ERROR = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
ERROR = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
threshold = cms.untracked.string('INFO'),
Alignment = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
)
),
destinations = cms.untracked.vstring(
'cout', ## .log automatically
'alignment')
INFO = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
WARNING = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
enableStatistics = cms.untracked.bool(True),
noLineBreaks = cms.untracked.bool(True),
threshold = cms.untracked.string('INFO')
)
)
)


### speficy the source
Expand Down
52 changes: 28 additions & 24 deletions Alignment/CommonAlignmentAlgorithm/test/apeSetting_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,33 +37,37 @@

# to be refined...
process.MessageLogger = cms.Service("MessageLogger",
statistics = cms.untracked.vstring('cout', 'alignment'),
categories = cms.untracked.vstring('Alignment'),
cout = cms.untracked.PSet(
threshold = cms.untracked.string('DEBUG'),
noLineBreaks = cms.untracked.bool(True)
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
alignment = cms.untracked.PSet(
INFO = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
enableStatistics = cms.untracked.bool(True),
noLineBreaks = cms.untracked.bool(True),
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
WARNING = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
ERROR = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
threshold = cms.untracked.string('INFO'),
Alignment = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
)
threshold = cms.untracked.string('DEBUG')
),
destinations = cms.untracked.vstring('cout', ## .log automatically
'alignment')
files = cms.untracked.PSet(
alignment = cms.untracked.PSet(
Alignment = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
ERROR = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
INFO = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
WARNING = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
enableStatistics = cms.untracked.bool(True),
noLineBreaks = cms.untracked.bool(True),
threshold = cms.untracked.string('INFO')
)
)
)

process.source = cms.Source("EmptySource")
Expand Down
54 changes: 28 additions & 26 deletions Alignment/CommonAlignmentProducer/test/alignment_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,37 @@

# initialize MessageLogger
process.MessageLogger = cms.Service("MessageLogger",
statistics = cms.untracked.vstring('cout',
'alignment'),
categories = cms.untracked.vstring('Alignment'),
cout = cms.untracked.PSet(
threshold = cms.untracked.string('DEBUG'),
noLineBreaks = cms.untracked.bool(True)
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
alignment = cms.untracked.PSet(
INFO = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
enableStatistics = cms.untracked.bool(True),
noLineBreaks = cms.untracked.bool(True),
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
WARNING = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
ERROR = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
threshold = cms.untracked.string('INFO'),
Alignment = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
)
threshold = cms.untracked.string('DEBUG')
),
destinations = cms.untracked.vstring('cout', ## .log automatically

'alignment')
files = cms.untracked.PSet(
alignment = cms.untracked.PSet(
Alignment = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
ERROR = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
INFO = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
WARNING = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
enableStatistics = cms.untracked.bool(True),
noLineBreaks = cms.untracked.bool(True),
threshold = cms.untracked.string('INFO')
)
)
)

# we need conditions
Expand Down
13 changes: 11 additions & 2 deletions Alignment/HIPAlignmentAlgorithm/test/serialGeomCompare_tpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,17 @@
process.load("CondCore.DBCommon.CondDBSetup_cfi")

process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring('detailedInfo',
'cout')
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True)
),
files = cms.untracked.PSet(
detailedInfo = cms.untracked.PSet(

)
)
)

process.source = cms.Source("EmptySource")
Expand Down
13 changes: 11 additions & 2 deletions Alignment/HIPAlignmentAlgorithm/test/serialIntoNtuples_tpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,17 @@
process.load("CondCore.DBCommon.CondDBSetup_cfi")

process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring('detailedInfo',
'cout')
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True)
),
files = cms.untracked.PSet(
detailedInfo = cms.untracked.PSet(

)
)
)

process.PoolDBESSource = cms.ESSource("PoolDBESSource",
Expand Down
14 changes: 6 additions & 8 deletions Alignment/LaserAlignment/test/LaserAlignmentEventFilter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,15 @@
)

## message logger
process.MessageLogger = cms.Service(
"MessageLogger",
destinations = cms.untracked.vstring( 'cout', 'cerr' ),
#destinations = cms.untracked.vstring( 'cerr' ),
debugModules = cms.untracked.vstring( 'LaserAlignmentEventFilter' ),
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
threshold = cms.untracked.string( 'ERROR' )
threshold = cms.untracked.string('ERROR')
),
cout = cms.untracked.PSet(
threshold = cms.untracked.string( 'INFO' )
)
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('INFO')
),
debugModules = cms.untracked.vstring('LaserAlignmentEventFilter')
)


Expand Down
14 changes: 6 additions & 8 deletions Alignment/LaserAlignment/test/RawDataConverter_full_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,15 @@
)

## message logger
process.MessageLogger = cms.Service(
"MessageLogger",
destinations = cms.untracked.vstring( 'cout', 'cerr' ),
#destinations = cms.untracked.vstring( 'cerr' ),
debugModules = cms.untracked.vstring( 'RawDataConverter' ),
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
threshold = cms.untracked.string( 'ERROR' )
threshold = cms.untracked.string('ERROR')
),
cout = cms.untracked.PSet(
threshold = cms.untracked.string( 'INFO' )
)
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('INFO')
),
debugModules = cms.untracked.vstring('RawDataConverter')
)


Expand Down
16 changes: 8 additions & 8 deletions Alignment/LaserAlignment/test/t0ProducerStandalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

process = cms.Process( "laserAlignmentT0ProducerProcess" )

process.MessageLogger = cms.Service( "MessageLogger",
cerr = cms.untracked.PSet(
threshold = cms.untracked.string( 'ERROR' )
),
cout = cms.untracked.PSet(
threshold = cms.untracked.string( 'INFO' )
),
destinations = cms.untracked.vstring( 'cout', 'cerr' )
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
threshold = cms.untracked.string('ERROR')
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('INFO')
)
)

process.source = cms.Source( "PoolSource",
Expand Down
16 changes: 8 additions & 8 deletions Alignment/LaserAlignment/test/t0ProducerStandalone_LASFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

process = cms.Process( "laserAlignmentT0ProducerProcess" )

process.MessageLogger = cms.Service( "MessageLogger",
cerr = cms.untracked.PSet(
threshold = cms.untracked.string( 'ERROR' )
),
cout = cms.untracked.PSet(
threshold = cms.untracked.string( 'INFO' )
),
destinations = cms.untracked.vstring( 'cout', 'cerr' )
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
threshold = cms.untracked.string('ERROR')
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('INFO')
)
)

process.source = cms.Source( "PoolSource",
Expand Down
65 changes: 26 additions & 39 deletions Alignment/MillePedeAlignmentAlgorithm/test/alignment_las_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,46 +12,33 @@
# process.load("FWCore.MessageLogger.MessageLogger_cfi")
# This whole mess does not really work - I do not get rid of FwkReport and TrackProducer info...
process.MessageLogger = cms.Service("MessageLogger",
statistics = cms.untracked.vstring('alignment'), ##, 'cout')

categories = cms.untracked.vstring('Alignment',
'LogicError',
'FwkReport',
'TrackProducer'),
# FwkReport = cms.untracked.PSet( threshold = cms.untracked.string('WARNING') ),
# TrackProducer = cms.untracked.PSet( threshold = cms.untracked.string('WARNING') ),
# cout = cms.untracked.PSet(
# threshold = cms.untracked.string('DEBUG'),
# FwkReport = cms.untracked.PSet(
# threshold = cms.untracked.string('ERROR')
# ),
# TrackProducer = cms.untracked.PSet(
# threshold = cms.untracked.string('ERROR')
# )
# ),
alignment = cms.untracked.PSet(
INFO = cms.untracked.PSet(
limit = cms.untracked.int32(10)
),
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
WARNING = cms.untracked.PSet(
limit = cms.untracked.int32(10)
),
ERROR = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
threshold = cms.untracked.string('DEBUG'),
LogicError = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
Alignment = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
)
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
destinations = cms.untracked.vstring('alignment') ## (, 'cout')

files = cms.untracked.PSet(
alignment = cms.untracked.PSet(
Alignment = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
DEBUG = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
ERROR = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
INFO = cms.untracked.PSet(
limit = cms.untracked.int32(10)
),
LogicError = cms.untracked.PSet(
limit = cms.untracked.int32(-1)
),
WARNING = cms.untracked.PSet(
limit = cms.untracked.int32(10)
),
enableStatistics = cms.untracked.bool(True),
threshold = cms.untracked.string('DEBUG')
)
)
)

# initialize magnetic field
Expand Down
Loading

0 comments on commit aa368a5

Please sign in to comment.