CMS 3D CMS Logo

conddb_init.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.VarParsing as VarParsing
2 
3 options = VarParsing.VarParsing()
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.parseArguments()