ATLAS Offline Software
Functions | Variables
python.parseRunArgs Namespace Reference

Functions

def addFPGATrackSimMapsArgs (parser)
 
def addFPGATrackSimBanksArgs (parser)
 
def addFPGATrackSimAlgorithmsArgs (parser)
 
def addFPGATrackSimHitFilteringArgs (parser)
 
def parseFPGATrackSimArgs (runArgs)
 Parsing. More...
 

Variables

 _FPGATrackSimMapsArgs
 FPGATrackSimMaps. More...
 
 _FPGATrackSimBanksArgs
 FPGATrackSimBanks. More...
 
 _FPGATrackSimAlgorithmsArgs
 FPGATrackSimAlgorithms. More...
 
 _FPGATrackSimHoughTransformArgs
 
 _FPGATrackSimLRTArgs
 
 _FPGATrackSimHitFilteringArgs
 

Function Documentation

◆ addFPGATrackSimAlgorithmsArgs()

def python.parseRunArgs.addFPGATrackSimAlgorithmsArgs (   parser)
Adds arguments used by FPGATrackSimAlgorithms to a transform parser.

Definition at line 173 of file parseRunArgs.py.

174  '''
175  Adds arguments used by FPGATrackSimAlgorithms to a transform parser.
176  '''
177 
178  parser.defineArgGroup('FPGATrackSimAlgorithms', 'Options for FPGATrackSimAlgorithms configuration')
179  parser.defineArgGroup('FPGATrackSimHoughTransform', 'Options for FPGATrackSim Hough transform')
180  parser.defineArgGroup('FPGATrackSimLRT', 'Options for FPGATrackSim Hough transform')
181 
182  def addArg(group, argName, argType, helpText=""):
183  parser.add_argument('--' + argName,
184  type=trfArgClasses.argFactory(argType, runarg=True),
185  help=helpText,
186  group=group)
187 
188  for arg in _FPGATrackSimAlgorithmsArgs:
189  addArg('FPGATrackSimAlgorithms', *arg)
190 
191  for arg in _FPGATrackSimHoughTransformArgs:
192  addArg('FPGATrackSimHoughTransform', *arg)
193 
194  for arg in _FPGATrackSimLRTArgs:
195  addArg('FPGATrackSimLRT', *arg)
196 

◆ addFPGATrackSimBanksArgs()

def python.parseRunArgs.addFPGATrackSimBanksArgs (   parser)
Adds arguments used by FPGATrackSimBanks to a transform parser.

Definition at line 78 of file parseRunArgs.py.

78 def addFPGATrackSimBanksArgs(parser):
79  '''
80  Adds arguments used by FPGATrackSimBanks to a transform parser.
81  '''
82 
83  parser.defineArgGroup('FPGATrackSimBanks', 'Optional overrides for FPGATrackSimBanks. '
84  'These options will override the default configuration specified in FPGATrackSimBankTags.')
85 
86  def addArg(argName, argType, helpText=""):
87  parser.add_argument('--' + argName,
88  type=trfArgClasses.argFactory(argType, runarg=True),
89  help=helpText,
90  group='FPGATrackSimBanks')
91 
92  for arg in _FPGATrackSimBanksArgs:
93  addArg(*arg)
94 
95 

◆ addFPGATrackSimHitFilteringArgs()

def python.parseRunArgs.addFPGATrackSimHitFilteringArgs (   parser)
Adds arguments used by FPGATrackSimHitFiltering to a transform parser.

Definition at line 211 of file parseRunArgs.py.

212  '''
213  Adds arguments used by FPGATrackSimHitFiltering to a transform parser.
214  '''
215 
216  parser.defineArgGroup('FPGATrackSimHitFiltering', 'Options for FPGATrackSimHitFiltering configuration')
217 
218  def addArg(group, argName, argType, helpText=""):
219  parser.add_argument('--' + argName,
220  type=trfArgClasses.argFactory(argType, runarg=True),
221  help=helpText,
222  group=group)
223 
224  for arg in _FPGATrackSimHitFilteringArgs:
225  addArg('FPGATrackSimHitFiltering', *arg)
226 
227 
228 

◆ addFPGATrackSimMapsArgs()

def python.parseRunArgs.addFPGATrackSimMapsArgs (   parser)
Adds arguments used by FPGATrackSimMaps to a transform parser.

Definition at line 46 of file parseRunArgs.py.

46 def addFPGATrackSimMapsArgs(parser):
47  '''
48  Adds arguments used by FPGATrackSimMaps to a transform parser.
49  '''
50 
51  parser.defineArgGroup('FPGATrackSimMaps', 'Options for FPGATrackSimMaps. '
52  'These options will override the default configuration specified in FPGATrackSimMapTags.')
53 
54  def addArg(argName, argType, helpText=""):
55  parser.add_argument('--' + argName,
56  type=trfArgClasses.argFactory(argType, runarg=True),
57  help=helpText,
58  group='FPGATrackSimMaps')
59 
60  for arg in _FPGATrackSimMapsArgs:
61  addArg(*arg)
62 

◆ parseFPGATrackSimArgs()

def python.parseRunArgs.parseFPGATrackSimArgs (   runArgs)

Parsing.

Collects FPGATrackSim arguments from runArgs into a dictionary of (parameter: value) pairs.
Use the corresponding add***Args() functions above to add arguments to a transform parser.

Definition at line 233 of file parseRunArgs.py.

233 def parseFPGATrackSimArgs(runArgs):
234  '''
235  Collects FPGATrackSim arguments from runArgs into a dictionary of (parameter: value) pairs.
236  Use the corresponding add***Args() functions above to add arguments to a transform parser.
237  '''
238  opts = {}
239  for arg in itertools.chain(_FPGATrackSimMapsArgs, _FPGATrackSimBanksArgs, _FPGATrackSimAlgorithmsArgs, _FPGATrackSimHoughTransformArgs, _FPGATrackSimHitFilteringArgs, _FPGATrackSimLRTArgs):
240  key = arg[0]
241  if hasattr(runArgs, key):
242  opts[key] = getattr(runArgs, key)
243  msg.info("Final pars: ", opts)
244  return opts

Variable Documentation

◆ _FPGATrackSimAlgorithmsArgs

python.parseRunArgs._FPGATrackSimAlgorithmsArgs
private

FPGATrackSimAlgorithms.

Definition at line 100 of file parseRunArgs.py.

◆ _FPGATrackSimBanksArgs

python.parseRunArgs._FPGATrackSimBanksArgs
private

FPGATrackSimBanks.

Definition at line 67 of file parseRunArgs.py.

◆ _FPGATrackSimHitFilteringArgs

python.parseRunArgs._FPGATrackSimHitFilteringArgs
private

Definition at line 197 of file parseRunArgs.py.

◆ _FPGATrackSimHoughTransformArgs

python.parseRunArgs._FPGATrackSimHoughTransformArgs
private

Definition at line 128 of file parseRunArgs.py.

◆ _FPGATrackSimLRTArgs

python.parseRunArgs._FPGATrackSimLRTArgs
private

Definition at line 155 of file parseRunArgs.py.

◆ _FPGATrackSimMapsArgs

python.parseRunArgs._FPGATrackSimMapsArgs
private

FPGATrackSimMaps.

Definition at line 32 of file parseRunArgs.py.

python.parseRunArgs.addFPGATrackSimHitFilteringArgs
def addFPGATrackSimHitFilteringArgs(parser)
Definition: parseRunArgs.py:211
python.parseRunArgs.parseFPGATrackSimArgs
def parseFPGATrackSimArgs(runArgs)
Parsing.
Definition: parseRunArgs.py:233
python.parseRunArgs.addFPGATrackSimBanksArgs
def addFPGATrackSimBanksArgs(parser)
Definition: parseRunArgs.py:78
python.parseRunArgs.addFPGATrackSimAlgorithmsArgs
def addFPGATrackSimAlgorithmsArgs(parser)
Definition: parseRunArgs.py:173
python.parseRunArgs.addFPGATrackSimMapsArgs
def addFPGATrackSimMapsArgs(parser)
Definition: parseRunArgs.py:46