Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-09-22 23:03:58

0001 ###############################################################################
0002 # Way to use this:
0003 #   cmsRun digiClient_cfg.py geometry=D92
0004 #
0005 #   Options for geometry D88, D92, D93
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                  "D88",
0017                   VarParsing.VarParsing.multiplicity.singleton,
0018                   VarParsing.VarParsing.varType.string,
0019                   "geometry of operations: D88, D92, D93")
0020 
0021 ### get and parse the command line arguments
0022 options.parseArguments()
0023 
0024 print(options)
0025 
0026 ####################################################################
0027 # Use the options
0028 
0029 from Configuration.Eras.Era_Phase2C11M9_cff import Phase2C11M9
0030 process = cms.Process('Client',Phase2C11M9)
0031 
0032 geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff"
0033 fileInput = "file:DigiVal" + options.geometry + ".root"
0034 
0035 print("Geometry file: ", geomFile)
0036 print("Input file:    ", fileInput)
0037 
0038 process.load("Configuration.StandardSequences.Reconstruction_cff") 
0039 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0040 process.load(geomFile)
0041 process.load('FWCore.MessageService.MessageLogger_cfi')
0042 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0043 
0044 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0045 from Configuration.AlCa.GlobalTag import GlobalTag
0046 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0047 
0048 process.load("Validation.HGCalValidation.HGCalDigiClient_cff")
0049 process.hgcalDigiClientEE.Verbosity     = 2
0050 process.hgcalDigiClientHEF.Verbosity    = 2
0051 process.hgcalDigiClientHEB.Verbosity    = 2
0052 
0053 process.load("DQMServices.Core.DQM_cfg")
0054 
0055 # summary
0056 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) ##
0057 
0058 process.maxEvents = cms.untracked.PSet(
0059     input = cms.untracked.int32(-1)
0060     )
0061 
0062 process.source = cms.Source("PoolSource",
0063                             fileNames = cms.untracked.vstring( fileInput )
0064                             )
0065 
0066 process.load("Configuration.StandardSequences.EDMtoMEAtRunEnd_cff")
0067 process.dqmSaver.referenceHandling = cms.untracked.string('all')
0068 
0069 cmssw_version = os.environ.get('CMSSW_VERSION','CMSSW_X_Y_Z')
0070 Workflow = '/HGCalValidation/'+'Harvesting/'+str(cmssw_version)
0071 process.dqmSaver.workflow = Workflow
0072 
0073 process.load("Validation.HGCalValidation.HGCalDigiClient_cfi")
0074 
0075 process.p = cms.Path(process.EDMtoME *
0076                      process.hgcalDigiClientEE *
0077                      process.hgcalDigiClientHEF *
0078                      process.hgcalDigiClientHEB *
0079                      process.dqmSaver)