Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-28 04:16:10

0001 ###############################################################################
0002 # Way to use this:
0003 #   cmsRun testHGCalCellDumpDDD_cfg.py geometry=D86
0004 #
0005 #   Options for geometry D49, D68, D77, D83, D84, D86
0006 #
0007 ###############################################################################
0008 import FWCore.ParameterSet.Config as cms
0009 import os, sys, imp, re
0010 import FWCore.ParameterSet.VarParsing as VarParsing
0011 
0012 ####################################################################
0013 ### SETUP OPTIONS
0014 options = VarParsing.VarParsing('standard')
0015 options.register('geometry',
0016                  "D86",
0017                   VarParsing.VarParsing.multiplicity.singleton,
0018                   VarParsing.VarParsing.varType.string,
0019                   "geometry of operations: D49, D68, D84, D77, D83, D86")
0020 
0021 ### get and parse the command line arguments
0022 options.parseArguments()
0023 
0024 print(options)
0025 
0026 ####################################################################
0027 # Use the options
0028 
0029 if (options.geometry == "D49"):
0030     from Configuration.Eras.Era_Phase2C9_cff import Phase2C9
0031     process = cms.Process('PROD',Phase2C9)
0032     process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff')
0033 elif (options.geometry == "D68"):
0034     from Configuration.Eras.Era_Phase2C12_cff import Phase2C12
0035     process = cms.Process('PROD',Phase2C12)
0036     process.load('Configuration.Geometry.GeometryExtended2026D68Reco_cff')
0037 elif (options.geometry == "D83"):
0038     from Configuration.Eras.Era_Phase2C11M9_cff import Phase2C11M9
0039     process = cms.Process('PROD',Phase2C11M9)
0040     process.load('Configuration.Geometry.GeometryExtended2026D83Reco_cff')
0041 elif (options.geometry == "D84"):
0042     from Configuration.Eras.Era_Phase2C11_cff import Phase2C11
0043     process = cms.Process('PROD',Phase2C11)
0044     process.load('Configuration.Geometry.GeometryExtended2026D84Reco_cff')
0045 elif (options.geometry == "D86"):
0046     from Configuration.Eras.Era_Phase2C11M9_cff import Phase2C11M9
0047     process = cms.Process('PROD',Phase2C11M9)
0048     process.load('Configuration.Geometry.GeometryExtended2026D86Reco_cff')
0049 else:
0050     from Configuration.Eras.Era_Phase2C11M9_cff import Phase2C11M9
0051     process = cms.Process('PROD',Phase2C11M9)
0052     process.load('Configuration.Geometry.GeometryExtended2026D77Reco_cff')
0053 
0054 process.load("Geometry.HGCalGeometry.hgcalGeometryDump_cfi")
0055 process.load('FWCore.MessageService.MessageLogger_cfi')
0056 
0057 if hasattr(process,'MessageLogger'):
0058     process.MessageLogger.HGCalGeom=dict()
0059 
0060 process.source = cms.Source("EmptySource")
0061 process.maxEvents = cms.untracked.PSet(
0062     input = cms.untracked.int32(1)
0063     )
0064 process.Timing = cms.Service("Timing")
0065 
0066 process.p1 = cms.Path(process.hgcalGeometryDump)