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 readGeometryFromDB = False
0008
0009
0010
0011
0012
0013 if readGeometryFromDB:
0014
0015 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0016 from Configuration.AlCa.GlobalTag import GlobalTag
0017 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0018 else:
0019 process.load('Configuration.Geometry.GeometryExtended2026D46Reco_cff')
0020
0021 process.load('FWCore.MessageService.MessageLogger_cfi')
0022
0023
0024 process.XMLIdealGeometryESSource.geomXMLFiles.extend(['SimTracker/TrackerMaterialAnalysis/data/trackingMaterialGroups_ForPhaseII.xml'])
0025
0026
0027 process.load("SimTracker.TrackerMaterialAnalysis.trackingMaterialAnalyser_ForHGCalPhaseII_cff")
0028 process.trackingMaterialAnalyser.SplitMode = "NearestLayer"
0029 process.trackingMaterialAnalyser.SaveParameters = True
0030 process.trackingMaterialAnalyser.SaveXML = True
0031 process.trackingMaterialAnalyser.SaveDetailedPlots = False
0032
0033 process.source = cms.Source("PoolSource",
0034 fileNames = cms.untracked.vstring('file:material.root')
0035 )
0036 process.maxEvents = cms.untracked.PSet(
0037 input = cms.untracked.int32(-1)
0038 )
0039
0040 process.path = cms.Path(process.trackingMaterialAnalyser)
0041
0042
0043 def customizeMessageLogger(process):
0044
0045
0046
0047 process.MessageLogger.debugModules.extend(['*'])
0048
0049 how_to_debug = cms.untracked.PSet(threshold = cms.untracked.string("DEBUG"),
0050 DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0051 default = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0052 )
0053
0054 process.MessageLogger.files.debugTrackingMaterialAnalyzer= how_to_debug
0055
0056 log_debug_categories = ['TrackingMaterialAnalyser', 'MaterialAccountingGroup']
0057
0058
0059
0060
0061
0062 unlimit_debug = cms.untracked.PSet(limit = cms.untracked.int32(-1))
0063 for val in log_debug_categories:
0064 setattr(process.MessageLogger.files.debugTrackingMaterialAnalyzer,val, unlimit_debug)
0065
0066 return process
0067
0068
0069
0070
0071