ATLAS Offline Software
MultiSVTagConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 
7 def MultiSVTagCfg(flags, name = 'MultiSVbb1Tag', taggerNameBase = 'MultiSVbb1', scheme = '', useBTagFlagsDefaults = True, **options):
8  """Sets up a MultiSVTag tool and returns it.
9 
10  The following options have BTaggingFlags defaults:
11 
12  Runmodus default: BTagging.RunModus
13  taggerNameBase default: "MultiSVbb1"
14  SecVxFinderName default: "MSV"
15 
16  input: name: The name of the tool (should be unique).
17  useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
18  **options: Python dictionary with options for the tool.
19  output: The actual tool"""
20  acc = ComponentAccumulator()
21  options['name'] = name
22  options['xAODBaseName'] = 'MSV'
23  if scheme == 'Trig':
24  options['HistosKey'] = 'JetTagTrigCalibHistosKey'
25 
26  if useBTagFlagsDefaults:
27  defaults = { 'Runmodus' : flags.BTagging.RunModus,
28  'taggerNameBase' : taggerNameBase,
29  'SecVxFinderName' : 'MSV' }
30  for option in defaults:
31  options.setdefault(option, defaults[option])
32  acc.setPrivateTools(CompFactory.Analysis.MultiSVTag( **options))
33 
34  return acc
35 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MultiSVTagConfig.MultiSVTagCfg
def MultiSVTagCfg(flags, name='MultiSVbb1Tag', taggerNameBase='MultiSVbb1', scheme='', useBTagFlagsDefaults=True, **options)
Definition: MultiSVTagConfig.py:7