Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:27

0001 from __future__ import print_function
0002 #! /usr/bin/env cmsRun
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     # Add our custom detector grouping to DDD
0014     process.XMLIdealGeometryESSource.geomXMLFiles.extend(['SimTracker/TrackerMaterialAnalysis/data/trackingMaterialGroups.xml'])
0015 elif options.geometry == 'Phase1':
0016     process.load('Configuration.Geometry.GeometryExtended2017Reco_cff')
0017     # Add our custom detector grouping to DDD
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     # Add our custom detector grouping to DDD
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)