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.register(
'ESGain',
41 VarParsing.VarParsing.multiplicity.singleton,
42 VarParsing.VarParsing.varType.string,
43 "Preshower gain : HIGH or LOW")
44 options.register(
'ESLowGainTag',
46 VarParsing.VarParsing.multiplicity.singleton,
47 VarParsing.VarParsing.varType.string,
48 "the tag name used to retrieve the reference payload for preshower in Low Gain.")
49 options.register(
'ESHighGainTag',
51 VarParsing.VarParsing.multiplicity.singleton,
52 VarParsing.VarParsing.varType.string,
53 "the tag name used to retrieve the reference payload for preshower in High Gain.")
54 options.parseArguments()