CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
conddb_init.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.VarParsing as VarParsing
2 
4 options.register('runNumber',
5  1,
6  VarParsing.VarParsing.multiplicity.singleton,
7  VarParsing.VarParsing.varType.int,
8  "the run number to be uploaded.")
9 options.register('destinationDatabase',
10  '',
11  VarParsing.VarParsing.multiplicity.singleton,
12  VarParsing.VarParsing.varType.string,
13  "the destination database connection string.")
14 options.register('destinationTag',
15  '',
16  VarParsing.VarParsing.multiplicity.singleton,
17  VarParsing.VarParsing.varType.string,
18  "the destination tag name.")
19 options.register('tagForRunInfo',
20  '',
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',
25  '',
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',
30  '',
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',
35  7000.0,
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',
40  '',
41  VarParsing.VarParsing.multiplicity.singleton,
42  VarParsing.VarParsing.varType.string,
43  "Preshower gain : HIGH or LOW")
44 options.register('ESLowGainTag',
45  '',
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',
50  '',
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()