File indexing completed on 2023-03-17 11:25:50
0001 from __future__ import print_function
0002
0003
0004 import sys
0005 import FWCore.ParameterSet.Config as cms
0006
0007 from SimTracker.TrackerMaterialAnalysis.trackingMaterialVarParsing import options
0008
0009 process = cms.Process("MaterialAnalyser")
0010
0011 if options.geometry == 'run2':
0012 process.load('Configuration.Geometry.GeometryExtended2016Reco_cff')
0013
0014 process.XMLIdealGeometryESSource.geomXMLFiles.extend(['SimTracker/TrackerMaterialAnalysis/data/trackingMaterialGroups.xml'])
0015 elif options.geometry == 'Phase1':
0016 process.load('Configuration.Geometry.GeometryExtended2017Reco_cff')
0017
0018 process.XMLIdealGeometryESSource.geomXMLFiles.extend(['SimTracker/TrackerMaterialAnalysis/data/trackingMaterialGroups_ForPhaseI/v1/trackingMaterialGroups_ForPhaseI.xml'])
0019 elif options.geometry == 'Phase2':
0020 process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff')
0021
0022 process.XMLIdealGeometryESSource.geomXMLFiles.extend(['SimTracker/TrackerMaterialAnalysis/data/trackingMaterialGroups_ForPhaseII.xml'])
0023 else:
0024 print("Unknow geometry, quitting.")
0025 sys.exit(1)
0026
0027 process.load("Configuration.StandardSequences.MagneticField_cff")
0028
0029
0030 process.source = cms.Source("EmptySource")
0031 process.maxEvents = cms.untracked.PSet(
0032 input = cms.untracked.int32(1)
0033 )
0034
0035 process.listGroups = cms.EDAnalyzer("ListGroups",
0036 SaveSummaryPlot = cms.untracked.bool(True))
0037 process.path = cms.Path(process.listGroups)