Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-02-14 04:12:17

0001 ###############################################################################
0002 # Way to use this:
0003 #   cmsRun digiClient_cfg.py geometry=D99
0004 #
0005 #   Options for geometry D98, D99, D108, D94, D103, D104, D106, D109
0006 #
0007 ###############################################################################
0008 import FWCore.ParameterSet.Config as cms
0009 import os, sys, importlib, re
0010 import FWCore.ParameterSet.VarParsing as VarParsing
0011 ####################################################################
0012 ### SETUP OPTIONS
0013 options = VarParsing.VarParsing('standard')
0014 options.register('geometry',
0015                  "D99",
0016                   VarParsing.VarParsing.multiplicity.singleton,
0017                   VarParsing.VarParsing.varType.string,
0018                   "geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109")
0019 
0020 ### get and parse the command line arguments
0021 options.parseArguments()
0022 
0023 print(options)
0024 
0025 ####################################################################
0026 # Use the options
0027 
0028 if (options.geometry == "D94"):
0029     from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9
0030     process = cms.Process('Client',Phase2C20I13M9)
0031 elif (options.geometry == "D104"):
0032     from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
0033     process = cms.Process('Client',PhaseC22I13M9)
0034 elif (options.geometry == "D106"):
0035     from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
0036     process = cms.Process('Client',PhaseC22I13M9)
0037 elif (options.geometry == "D109"):
0038     from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
0039     process = cms.Process('Client',PhaseC22I13M9)
0040 else:
0041     from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0042     process = cms.Process('Client',Phase2C17I13M9)
0043 
0044 geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff"
0045 fileInput = "file:DigiVal" + options.geometry + ".root"
0046 
0047 print("Geometry file: ", geomFile)
0048 print("Input file:    ", fileInput)
0049 
0050 process.load("Configuration.StandardSequences.Reconstruction_cff") 
0051 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0052 process.load(geomFile)
0053 process.load('FWCore.MessageService.MessageLogger_cfi')
0054 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0055 
0056 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0057 from Configuration.AlCa.GlobalTag import GlobalTag
0058 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0059 
0060 process.load("Validation.HGCalValidation.HGCalDigiClient_cff")
0061 process.hgcalDigiClientEE.Verbosity     = 2
0062 process.hgcalDigiClientHEF.Verbosity    = 2
0063 process.hgcalDigiClientHEB.Verbosity    = 2
0064 
0065 process.load("DQMServices.Core.DQM_cfg")
0066 
0067 # summary
0068 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) ##
0069 
0070 process.maxEvents = cms.untracked.PSet(
0071     input = cms.untracked.int32(-1)
0072     )
0073 
0074 process.source = cms.Source("PoolSource",
0075                             fileNames = cms.untracked.vstring( fileInput )
0076                             )
0077 
0078 process.load("Configuration.StandardSequences.EDMtoMEAtRunEnd_cff")
0079 process.dqmSaver.referenceHandling = cms.untracked.string('all')
0080 
0081 cmssw_version = os.environ.get('CMSSW_VERSION','CMSSW_X_Y_Z')
0082 Workflow = '/HGCalValidation/'+'Harvesting/'+str(cmssw_version)
0083 process.dqmSaver.workflow = Workflow
0084 
0085 process.load("Validation.HGCalValidation.HGCalDigiClient_cfi")
0086 
0087 process.p = cms.Path(process.EDMtoME *
0088                      process.hgcalDigiClientEE *
0089                      process.hgcalDigiClientHEF *
0090                      process.hgcalDigiClientHEB *
0091                      process.dqmSaver)