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 170 of file parseRunArgs.py.

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

◆ addFPGATrackSimBanksArgs()

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

Definition at line 77 of file parseRunArgs.py.

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

◆ addFPGATrackSimHitFilteringArgs()

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

Definition at line 208 of file parseRunArgs.py.

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

◆ addFPGATrackSimMapsArgs()

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

Definition at line 45 of file parseRunArgs.py.

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

◆ 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 230 of file parseRunArgs.py.

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

Variable Documentation

◆ _FPGATrackSimAlgorithmsArgs

python.parseRunArgs._FPGATrackSimAlgorithmsArgs
private

FPGATrackSimAlgorithms.

Definition at line 99 of file parseRunArgs.py.

◆ _FPGATrackSimBanksArgs

python.parseRunArgs._FPGATrackSimBanksArgs
private

FPGATrackSimBanks.

Definition at line 66 of file parseRunArgs.py.

◆ _FPGATrackSimHitFilteringArgs

python.parseRunArgs._FPGATrackSimHitFilteringArgs
private

Definition at line 194 of file parseRunArgs.py.

◆ _FPGATrackSimHoughTransformArgs

python.parseRunArgs._FPGATrackSimHoughTransformArgs
private

Definition at line 125 of file parseRunArgs.py.

◆ _FPGATrackSimLRTArgs

python.parseRunArgs._FPGATrackSimLRTArgs
private

Definition at line 152 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:208
python.parseRunArgs.parseFPGATrackSimArgs
def parseFPGATrackSimArgs(runArgs)
Parsing.
Definition: parseRunArgs.py:230
python.parseRunArgs.addFPGATrackSimBanksArgs
def addFPGATrackSimBanksArgs(parser)
Definition: parseRunArgs.py:77
python.parseRunArgs.addFPGATrackSimAlgorithmsArgs
def addFPGATrackSimAlgorithmsArgs(parser)
Definition: parseRunArgs.py:170
python.parseRunArgs.addFPGATrackSimMapsArgs
def addFPGATrackSimMapsArgs(parser)
Definition: parseRunArgs.py:45