From 152f24ac0841bfc55c73cd91aae9339af626d286 Mon Sep 17 00:00:00 2001 From: Sunanda Date: Sun, 11 Feb 2024 07:09:05 +0100 Subject: [PATCH] Modify some of the cfg's in Validation/HGCalValidation to work for V16, V17, V18 scenarios of HGCal Geometry --- .../test/python/runHGCGeomCheck_cfg.py | 27 +++++++++++---- .../test/python/runHGCHitAnalyzer_cfg.py | 27 +++++++++++---- .../test/python/runHGCMissingRecHit_cfg.py | 25 +++++++++++--- .../test/python/runHGCalDigiStudy_cfg.py | 27 +++++++++++---- .../test/python/runHGCalHitCalibration_cfg.py | 34 +++++++++++++------ .../test/python/runHGCalRecHitStudy_cfg.py | 27 +++++++++++---- .../test/python/runHGCalSimHitStudy_cfg.py | 27 +++++++++++---- .../test/python/runHGCalWaferHitCheck_cfg.py | 29 +++++++++++----- .../test/python/runHGCalWaferStudy_cfg.py | 27 +++++++++++---- 9 files changed, 184 insertions(+), 66 deletions(-) diff --git a/Validation/HGCalValidation/test/python/runHGCGeomCheck_cfg.py b/Validation/HGCalValidation/test/python/runHGCGeomCheck_cfg.py index e3eda8a486619..02187cb9a6254 100644 --- a/Validation/HGCalValidation/test/python/runHGCGeomCheck_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCGeomCheck_cfg.py @@ -1,22 +1,22 @@ ############################################################################### # Way to use this: -# cmsRun runHGCGeomCheck_cfg.py geometry=D88 +# cmsRun runHGCGeomCheck_cfg.py geometry=D99 # -# Options for geometry D88, D92, D93 +# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109 # ############################################################################### import FWCore.ParameterSet.Config as cms -import os, sys, imp, re +import os, sys, importlib, re import FWCore.ParameterSet.VarParsing as VarParsing #################################################################### ### SETUP OPTIONS options = VarParsing.VarParsing('standard') options.register('geometry', - "D88", + "D99", VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, - "geometry of operations: D88, D92, D93") + "geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109") ### get and parse the command line arguments options.parseArguments() @@ -25,8 +25,21 @@ #################################################################### # Use the options -from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 -process = cms.Process('GeomCheck',Phase2C17I13M9) +if (options.geometry == "D94"): + from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9 + process = cms.Process('Client',Phase2C20I13M9) +elif (options.geometry == "D104"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D106"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D109"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +else: + from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 + process = cms.Process('Client',Phase2C17I13M9) geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff" inFile = "file:testHGCalSimWatcher" + options.geometry + ".root" diff --git a/Validation/HGCalValidation/test/python/runHGCHitAnalyzer_cfg.py b/Validation/HGCalValidation/test/python/runHGCHitAnalyzer_cfg.py index ab7d6b8ee95c2..bcaa51531659d 100644 --- a/Validation/HGCalValidation/test/python/runHGCHitAnalyzer_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCHitAnalyzer_cfg.py @@ -1,22 +1,22 @@ ############################################################################### # Way to use this: -# cmsRun runHGCHitAnalyzer_cfg.py geometry=D88 +# cmsRun runHGCHitAnalyzer_cfg.py geometry=D99 # -# Options for geometry D88, D92, D93 +# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109 # ############################################################################### import FWCore.ParameterSet.Config as cms -import os, sys, imp, re +import os, sys, importlib, re import FWCore.ParameterSet.VarParsing as VarParsing #################################################################### ### SETUP OPTIONS options = VarParsing.VarParsing('standard') options.register('geometry', - "D88", + "D99", VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, - "geometry of operations: D88, D92, D93") + "geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109") ### get and parse the command line arguments options.parseArguments() @@ -25,8 +25,21 @@ #################################################################### # Use the options -from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 -process = cms.Process('HGCHitAnalyzer',Phase2C17I13M9) +if (options.geometry == "D94"): + from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9 + process = cms.Process('Client',Phase2C20I13M9) +elif (options.geometry == "D104"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D106"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D109"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +else: + from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 + process = cms.Process('Client',Phase2C17I13M9) geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff" inFile = "file:step3" + options.geometry + ".root" diff --git a/Validation/HGCalValidation/test/python/runHGCMissingRecHit_cfg.py b/Validation/HGCalValidation/test/python/runHGCMissingRecHit_cfg.py index 0bfdd92001141..0f190c47bc7d0 100644 --- a/Validation/HGCalValidation/test/python/runHGCMissingRecHit_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCMissingRecHit_cfg.py @@ -1,22 +1,22 @@ ############################################################################### # Way to use this: -# cmsRun runHGCMissingRecHit_cfg.py geometry=D88 +# cmsRun runHGCMissingRecHit_cfg.py geometry=D99 # -# Options for geometry D88, D92, D93 +# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109 # ############################################################################### import FWCore.ParameterSet.Config as cms -import os, sys, imp, re +import os, sys, importlib, re import FWCore.ParameterSet.VarParsing as VarParsing #################################################################### ### SETUP OPTIONS options = VarParsing.VarParsing('standard') options.register('geometry', - "D88", + "D99", VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, - "geometry of operations: D88, D92, D93") + "geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109") ### get and parse the command line arguments options.parseArguments() @@ -25,6 +25,21 @@ #################################################################### # Use the options +if (options.geometry == "D94"): + from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9 + process = cms.Process('Client',Phase2C20I13M9) +elif (options.geometry == "D104"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D106"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D109"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +else: + from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 + process = cms.Process('Client',Phase2C17I13M9) from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 process = cms.Process('HGCHitAnalysis',Phase2C17I13M9) diff --git a/Validation/HGCalValidation/test/python/runHGCalDigiStudy_cfg.py b/Validation/HGCalValidation/test/python/runHGCalDigiStudy_cfg.py index 7a9d39f230423..ece7e970b83c1 100644 --- a/Validation/HGCalValidation/test/python/runHGCalDigiStudy_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCalDigiStudy_cfg.py @@ -1,22 +1,22 @@ ############################################################################### # Way to use this: -# cmsRun runHGCalDigiStudy_cfg.py geometry=D88 +# cmsRun runHGCalDigiStudy_cfg.py geometry=D99 # -# Options for geometry D88, D92, D93 +# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109 # ############################################################################### import FWCore.ParameterSet.Config as cms -import os, sys, imp, re +import os, sys, importlib, re import FWCore.ParameterSet.VarParsing as VarParsing #################################################################### ### SETUP OPTIONS options = VarParsing.VarParsing('standard') options.register('geometry', - "D93", + "D99", VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, - "geometry of operations: D88, D92, D93") + "geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109") ### get and parse the command line arguments options.parseArguments() @@ -25,8 +25,21 @@ #################################################################### # Use the options -from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 -process = cms.Process('DigiStudy',Phase2C17I13M9) +if (options.geometry == "D94"): + from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9 + process = cms.Process('Client',Phase2C20I13M9) +elif (options.geometry == "D104"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D106"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D109"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +else: + from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 + process = cms.Process('Client',Phase2C17I13M9) geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff" fileInput = "file:step2" + options.geometry + "tt.root" diff --git a/Validation/HGCalValidation/test/python/runHGCalHitCalibration_cfg.py b/Validation/HGCalValidation/test/python/runHGCalHitCalibration_cfg.py index c10fdbaf34add..254b19a2f849a 100644 --- a/Validation/HGCalValidation/test/python/runHGCalHitCalibration_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCalHitCalibration_cfg.py @@ -1,12 +1,12 @@ ############################################################################### # Way to use this: -# cmsRun runHGCalHitCalibration_cfg.py geometry=D88 +# cmsRun runHGCalHitCalibration_cfg.py geometry=D99 # -# Options for geometry D88, D92, D93 +# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109 # ############################################################################### import FWCore.ParameterSet.Config as cms -import os, sys, imp, re +import os, sys, importlib, re import FWCore.ParameterSet.VarParsing as VarParsing import FWCore.Utilities.FileUtils as FileUtils @@ -14,10 +14,10 @@ ### SETUP OPTIONS options = VarParsing.VarParsing('standard') options.register('geometry', - "D93", + "D99", VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, - "geometry of operations: D88, D92, D93") + "geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109") ### get and parse the command line arguments options.parseArguments() @@ -26,8 +26,21 @@ #################################################################### # Use the options -from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 -process = cms.Process('HitCalibration',Phase2C17I13M9) +if (options.geometry == "D94"): + from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9 + process = cms.Process('Client',Phase2C20I13M9) +elif (options.geometry == "D104"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D106"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D109"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +else: + from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 + process = cms.Process('Client',Phase2C17I13M9) geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff" fileInput = "file:step3" + options.geometry + "tt.root" @@ -43,11 +56,10 @@ process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Configuration.EventContent.EventContent_cff') process.load('Configuration.StandardSequences.MagneticField_cff') -process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') - +process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") from Configuration.AlCa.GlobalTag import GlobalTag -##Global Tag used for production in -process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '') +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') process.MessageLogger.cerr.FwkReport.reportEvery = 100 diff --git a/Validation/HGCalValidation/test/python/runHGCalRecHitStudy_cfg.py b/Validation/HGCalValidation/test/python/runHGCalRecHitStudy_cfg.py index 0037e5b131e1d..b1093c809450e 100644 --- a/Validation/HGCalValidation/test/python/runHGCalRecHitStudy_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCalRecHitStudy_cfg.py @@ -1,22 +1,22 @@ ############################################################################### # Way to use this: -# cmsRun runHGCalRecHitStudy_cfg.py geometry=D82 +# cmsRun runHGCalRecHitStudy_cfg.py geometry=D99 # -# Options for geometry D88, D92, D93 +# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109 # ############################################################################### import FWCore.ParameterSet.Config as cms -import os, sys, imp, re +import os, sys, importlib, re import FWCore.ParameterSet.VarParsing as VarParsing #################################################################### ### SETUP OPTIONS options = VarParsing.VarParsing('standard') options.register('geometry', - "D93", + "D99", VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, - "geometry of operations: D88, D92, D93") + "geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109") ### get and parse the command line arguments options.parseArguments() @@ -25,8 +25,21 @@ #################################################################### # Use the options -from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 -process = cms.Process('RecHitSTudy',Phase2C17I13M9) +if (options.geometry == "D94"): + from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9 + process = cms.Process('Client',Phase2C20I13M9) +elif (options.geometry == "D104"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D106"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D109"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +else: + from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 + process = cms.Process('Client',Phase2C17I13M9) geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff" fileInput = "file:step3" + options.geometry + "tt.root" diff --git a/Validation/HGCalValidation/test/python/runHGCalSimHitStudy_cfg.py b/Validation/HGCalValidation/test/python/runHGCalSimHitStudy_cfg.py index 365330801dd78..cb30d49c27e99 100644 --- a/Validation/HGCalValidation/test/python/runHGCalSimHitStudy_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCalSimHitStudy_cfg.py @@ -1,22 +1,22 @@ ############################################################################### # Way to use this: -# cmsRun runHGCalSimHitStudy_cfg.py geometry=D92 +# cmsRun runHGCalSimHitStudy_cfg.py geometry=D99 # -# Options for geometry D88, D92, D93 +# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109 # ############################################################################### import FWCore.ParameterSet.Config as cms -import os, sys, imp, re +import os, sys, importlib, re import FWCore.ParameterSet.VarParsing as VarParsing #################################################################### ### SETUP OPTIONS options = VarParsing.VarParsing('standard') options.register('geometry', - "D93", + "D99", VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, - "geometry of operations: D88, D92, D93") + "geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109") ### get and parse the command line arguments options.parseArguments() @@ -25,8 +25,21 @@ #################################################################### # Use the options -from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 -process = cms.Process('SimHitStudy',Phase2C17I13M9) +if (options.geometry == "D94"): + from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9 + process = cms.Process('Client',Phase2C20I13M9) +elif (options.geometry == "D104"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D106"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D109"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +else: + from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 + process = cms.Process('Client',Phase2C17I13M9) geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff" fileInput = "file:step1" + options.geometry + "tt.root" diff --git a/Validation/HGCalValidation/test/python/runHGCalWaferHitCheck_cfg.py b/Validation/HGCalValidation/test/python/runHGCalWaferHitCheck_cfg.py index 7c385b36a02a2..0bf220bf8d803 100644 --- a/Validation/HGCalValidation/test/python/runHGCalWaferHitCheck_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCalWaferHitCheck_cfg.py @@ -1,12 +1,12 @@ ############################################################################### # Way to use this: -# cmsRun runHGCalWaferHitCheck_cfg.py geometry=D88 +# cmsRun runHGCalWaferHitCheck_cfg.py geometry=D99 # -# Options for geometry D88, D92, D93 +# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109 # ############################################################################### import FWCore.ParameterSet.Config as cms -import os, sys, imp, re +import os, sys, importlib, re import FWCore.ParameterSet.VarParsing as VarParsing #################################################################### @@ -16,7 +16,7 @@ "D93", VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, - "geometry of operations: D88, D92, D93") + "geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109") ### get and parse the command line arguments options.parseArguments() @@ -25,8 +25,21 @@ #################################################################### # Use the options -from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 -process = cms.Process('WaferHitCheck',Phase2C17I13M9) +if (options.geometry == "D94"): + from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9 + process = cms.Process('Client',Phase2C20I13M9) +elif (options.geometry == "D104"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D106"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D109"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +else: + from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 + process = cms.Process('Client',Phase2C17I13M9) geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff" fileInput = "file:step1" + options.geometry + "tt.root" @@ -41,8 +54,8 @@ process.load('Configuration.StandardSequences.RawToDigi_cff') process.load('Validation.HGCalValidation.hgcWaferHitCheck_cfi') process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") -from Configuration.AlCa.autoCond import autoCond -process.GlobalTag.globaltag = autoCond['phase2_realistic'] +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '') if hasattr(process,'MessageLogger'): process.MessageLogger.HGCalValidation=dict() diff --git a/Validation/HGCalValidation/test/python/runHGCalWaferStudy_cfg.py b/Validation/HGCalValidation/test/python/runHGCalWaferStudy_cfg.py index 748400ba691b0..8b16b22b77b59 100644 --- a/Validation/HGCalValidation/test/python/runHGCalWaferStudy_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCalWaferStudy_cfg.py @@ -1,22 +1,22 @@ ############################################################################### # Way to use this: -# cmsRun runHGCalWaferStudy_cfg.py geometry=D88 +# cmsRun runHGCalWaferStudy_cfg.py geometry=D99 # -# Options for geometry D88, D92, D93 +# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109 # ############################################################################### import FWCore.ParameterSet.Config as cms -import os, sys, imp, re +import os, sys, importlib, re import FWCore.ParameterSet.VarParsing as VarParsing ############################################################ ### SETUP OPTIONS options = VarParsing.VarParsing('standard') options.register('geometry', - "D93", + "D99", VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, - "geometry of operations: D88, D92 D93") + "geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109") ### get and parse the command line arguments options.parseArguments() @@ -25,8 +25,21 @@ ############################################################ # Use the options -from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 -process = cms.Process('HGCGeomAnalysis',Phase2C17I13M9) +if (options.geometry == "D94"): + from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9 + process = cms.Process('Client',Phase2C20I13M9) +elif (options.geometry == "D104"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D106"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +elif (options.geometry == "D109"): + from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 + process = cms.Process('Client',PhaseC22I13M9) +else: + from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 + process = cms.Process('Client',Phase2C17I13M9) geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff" fileInput = "file:step2" + options.geometry + "tt.root"