Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-27 03:18:08

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