File indexing completed on 2024-04-06 12:31:05
0001
0002
0003 import FWCore.ParameterSet.Config as cms
0004
0005 process = cms.Process("MaterialAnalyser")
0006
0007
0008
0009
0010
0011
0012 process.load('Configuration.Geometry.GeometryExtended2016Reco_cff')
0013 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0014 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0015 process.load('FWCore.MessageService.MessageLogger_cfi')
0016
0017 from Configuration.AlCa.GlobalTag import GlobalTag
0018 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0019
0020
0021 process.XMLIdealGeometryESSource.geomXMLFiles.extend(['SimTracker/TrackerMaterialAnalysis/data/trackingMaterialGroups.xml'])
0022
0023
0024 process.load("SimTracker.TrackerMaterialAnalysis.trackingMaterialAnalyser_cff")
0025 process.trackingMaterialAnalyser.SplitMode = "NearestLayer"
0026 process.trackingMaterialAnalyser.SaveParameters = True
0027 process.trackingMaterialAnalyser.SaveXML = True
0028 process.trackingMaterialAnalyser.SaveDetailedPlots = False
0029
0030 process.source = cms.Source("PoolSource",
0031 fileNames = cms.untracked.vstring('file:material.root')
0032 )
0033 process.maxEvents = cms.untracked.PSet(
0034 input = cms.untracked.int32(-1)
0035 )
0036
0037 process.path = cms.Path(process.trackingMaterialAnalyser)
0038
0039
0040 def customizeMessageLogger(process):
0041
0042
0043
0044 process.MessageLogger.debugModules.extend(['*'])
0045
0046 how_to_debug = cms.untracked.PSet(threshold = cms.untracked.string("DEBUG"),
0047 DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0048 default = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0049 )
0050
0051 process.MessageLogger.files.debugTrackingMaterialAnalyzer = how_to_debug
0052
0053 log_debug_categories = ['TrackingMaterialAnalyser']
0054
0055
0056
0057
0058
0059 unlimit_debug = cms.untracked.PSet(limit = cms.untracked.int32(-1))
0060 for val in log_debug_categories:
0061 setattr(process.MessageLogger.files.debugTrackingMaterialAnalyzer,val, unlimit_debug)
0062
0063 return process
0064
0065
0066 process = customizeMessageLogger(process)