Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:53

0001 import FWCore.ParameterSet.VarParsing as VarParsing
0002 
0003 options = VarParsing.VarParsing()
0004 options.register('runNumber',
0005                 1,
0006                 VarParsing.VarParsing.multiplicity.singleton,
0007                 VarParsing.VarParsing.varType.int,
0008                 "the run number to be uploaded.")
0009 options.register('destinationDatabase',
0010                 '',
0011                 VarParsing.VarParsing.multiplicity.singleton,
0012                 VarParsing.VarParsing.varType.string,
0013                 "the destination database connection string.")
0014 options.register('destinationTag',
0015                 '',
0016                 VarParsing.VarParsing.multiplicity.singleton,
0017                 VarParsing.VarParsing.varType.string,
0018                 "the destination tag name.")
0019 options.register('tagForRunInfo',
0020                 '',
0021                 VarParsing.VarParsing.multiplicity.singleton,
0022                 VarParsing.VarParsing.varType.string,
0023                 "the tag name used to retrieve the RunInfo payload and the magnet current therein.")
0024 options.register('tagForBOff',
0025                 '',
0026                 VarParsing.VarParsing.multiplicity.singleton,
0027                 VarParsing.VarParsing.varType.string,
0028                 "the tag name used to retrieve the reference payload for magnet off.")
0029 options.register('tagForBOn',
0030                 '',
0031                 VarParsing.VarParsing.multiplicity.singleton,
0032                 VarParsing.VarParsing.varType.string,
0033                 "the tag name used to retrieve the reference payload for magnet on.")
0034 options.register('currentThreshold',
0035                 7000.0,
0036                 VarParsing.VarParsing.multiplicity.singleton,
0037                 VarParsing.VarParsing.varType.float,
0038                 "the threshold on the magnet current for considering a switch of the magnetic field.")
0039 options.register('ESGain',
0040                 '',
0041                 VarParsing.VarParsing.multiplicity.singleton,
0042                 VarParsing.VarParsing.varType.string,
0043                 "Preshower gain : HIGH or LOW")
0044 options.register('ESLowGainTag',
0045                 '',
0046                 VarParsing.VarParsing.multiplicity.singleton,
0047                 VarParsing.VarParsing.varType.string,
0048                 "the tag name used to retrieve the reference payload for preshower in Low Gain.")
0049 options.register('ESHighGainTag',
0050                 '',
0051                 VarParsing.VarParsing.multiplicity.singleton,
0052                 VarParsing.VarParsing.varType.string,
0053                 "the tag name used to retrieve the reference payload for preshower in High Gain.")
0054 options.parseArguments()