File indexing completed on 2024-04-06 12:31:04
0001 from __future__ import print_function
0002 from FWCore.ParameterSet.VarParsing import VarParsing
0003 import sys
0004
0005 options = VarParsing('analysis')
0006
0007 ALLOWED_GEOMETRIES = ['run2', 'Phase1', 'Phase2']
0008
0009 options.register('geometry',
0010 'run2',
0011 VarParsing.multiplicity.singleton,
0012 VarParsing.varType.string,
0013 """ Specify which geometry scenario to use. The different geometry
0014 will automatically load also the correct XML grouping
0015 files for the material description. Currently supported values are %s""" % " ".join(ALLOWED_GEOMETRIES)
0016 )
0017
0018 options.parseArguments()
0019
0020 if not options.geometry in ALLOWED_GEOMETRIES:
0021 print("\n**** ERROR ****\nUnknown geometry %s. Quitting.\n**** ERROR ****\n" % options.geometry)
0022 sys.exit(1)