Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:46:20

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TrackerGeometryAnalyzer")
0004 
0005 #===============================================================================
0006 # Logging
0007 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0008 process.MessageLogger = cms.Service("MessageLogger",
0009     cerr = cms.untracked.PSet(
0010         enable = cms.untracked.bool(False)
0011     ),
0012     files = cms.untracked.PSet(
0013         trackerGeometryAnalyzer = cms.untracked.PSet(
0014             AlignableBuildProcess = cms.untracked.PSet(
0015                 limit = cms.untracked.int32(-1)
0016             ),
0017             DEBUG = cms.untracked.PSet(
0018                 limit = cms.untracked.int32(-1)
0019             ),
0020             ERROR = cms.untracked.PSet(
0021                 limit = cms.untracked.int32(-1)
0022             ),
0023             INFO = cms.untracked.PSet(
0024                 limit = cms.untracked.int32(0)
0025             ),
0026             TrackerGeometryAnalyzer = cms.untracked.PSet(
0027                 limit = cms.untracked.int32(-1)
0028             ),
0029             WARNING = cms.untracked.PSet(
0030                 limit = cms.untracked.int32(0)
0031             ),
0032             threshold = cms.untracked.string('DEBUG')
0033         )
0034     )
0035 )
0036 
0037 #===============================================================================
0038 # Geometry
0039 process.load("Configuration.Geometry.GeometryIdeal_cff") # uses ESProducer XMLIdealGeometryESSource
0040 # current geometry:
0041 process.load("Geometry.CMSCommonData.cmsExtendedGeometryXML_cfi")
0042 # phase-I upgrade geometry:
0043 #process.load("Geometry.CMSCommonData.cmsExtendedGeometry2016XML_cfi")
0044 #process.load("Geometry.CMSCommonData.cmsExtendedGeometry2017XML_cfi")
0045 #process.load("Geometry.CMSCommonData.cmsExtendedGeometry2019XML_cfi")
0046 # not working: is PhaseI geometry, but TID values are faulty
0047 #process.load("Geometry.CMSCommonData.cmsExtendedGeometry2023XML_cfi")
0048 
0049 #===============================================================================
0050 # Event data
0051 process.source = cms.Source("EmptySource")
0052 process.maxEvents = cms.untracked.PSet(
0053   input = cms.untracked.int32(1)
0054 )
0055 
0056 #===============================================================================
0057 # Condition Data
0058 
0059 #===============================================================================
0060 # The actual modules to run
0061 process.TrackerGeometryAnalyzer = cms.EDAnalyzer(
0062   "TrackerGeometryAnalyzer",
0063 
0064   analyzeAlignables     = cms.bool(True),
0065   printTrackerStructure = cms.bool(False),
0066   maxPrintDepth         = cms.int32(10),
0067 
0068   analyzeGeometry = cms.bool(False),
0069   analyzePXB      = cms.bool(False),
0070   analyzePXE      = cms.bool(False),
0071   analyzeTIB      = cms.bool(False),
0072   analyzeTID      = cms.bool(False),
0073   analyzeTOB      = cms.bool(False),
0074   analyzeTEC      = cms.bool(False)
0075 )
0076 process.p1 = cms.Path(
0077   process.TrackerGeometryAnalyzer
0078 )