1 from FWCore.ParameterSet.VarParsing
import VarParsing
6 ALLOWED_GEOMETRIES = [
'run2',
'Phase1',
'Phase2']
8 options.register(
'geometry',
10 VarParsing.multiplicity.singleton,
11 VarParsing.varType.string,
12 """ Specify which geometry scenario to use. The different geometry 13 will automatically load also the correct XML grouping 14 files for the material description. Currently supported values are %s""" %
" ".
join(ALLOWED_GEOMETRIES)
17 options.parseArguments()
19 if not options.geometry
in ALLOWED_GEOMETRIES:
20 print(
"\n**** ERROR ****\nUnknown geometry %s. Quitting.\n**** ERROR ****\n" % options.geometry)
S & print(S &os, JobReport::InputFile const &f)
static std::string join(char **cmd)