1 import FWCore.ParameterSet.VarParsing
as VarParsing
4 options.register(
'runNumber',
6 VarParsing.VarParsing.multiplicity.singleton,
7 VarParsing.VarParsing.varType.int,
8 "the run number to be uploaded.")
9 options.register(
'destinationDatabase',
11 VarParsing.VarParsing.multiplicity.singleton,
12 VarParsing.VarParsing.varType.string,
13 "the destination database connection string.")
14 options.register(
'destinationTag',
16 VarParsing.VarParsing.multiplicity.singleton,
17 VarParsing.VarParsing.varType.string,
18 "the destination tag name.")
19 options.register(
'tagForRunInfo',
21 VarParsing.VarParsing.multiplicity.singleton,
22 VarParsing.VarParsing.varType.string,
23 "the tag name used to retrieve the RunInfo payload and the magnet current therein.")
24 options.register(
'tagForBOff',
26 VarParsing.VarParsing.multiplicity.singleton,
27 VarParsing.VarParsing.varType.string,
28 "the tag name used to retrieve the reference payload for magnet off.")
29 options.register(
'tagForBOn',
31 VarParsing.VarParsing.multiplicity.singleton,
32 VarParsing.VarParsing.varType.string,
33 "the tag name used to retrieve the reference payload for magnet on.")
34 options.register(
'currentThreshold',
36 VarParsing.VarParsing.multiplicity.singleton,
37 VarParsing.VarParsing.varType.float,
38 "the threshold on the magnet current for considering a switch of the magnetic field.")
39 options.parseArguments()