8 def MV2TagCfg( flags, name = 'MV2c10', scheme = '', useBTagFlagsDefaults = True, **options ):
9 """Sets up a MV2c10Tag tool and returns it.
11 The following options have BTaggingFlags defaults:
13 Runmodus default: BTagging.RunModus
14 taggerNameBase default: "MV2c10"
15 forceMV2CalibrationAlias default: BTaggingFlags.ForceMV2CalibrationAlias
16 MV2CalibAlias default: BTaggingFlags.MV2CalibAlias
18 input: name: The name of the tool (should be unique).
19 useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
20 **options: Python dictionary with options for the tool.
21 output: The actual tool."""
23 options[
'name'] = name +
'Tag'
25 ForceMV2CalibrationAlias =
False
26 MV2CalibAlias =
'AntiKt4EMTopo'
27 options[
'xAODBaseName'] = basename
29 options[
'HistosKey'] =
'JetTagTrigCalibHistosKey'
31 if useBTagFlagsDefaults:
32 defaults = {
'Runmodus' : flags.BTagging.RunModus,
33 'taggerNameBase' : basename,
34 'forceMV2CalibrationAlias' : ForceMV2CalibrationAlias,
35 'MV2CalibAlias' : MV2CalibAlias,
36 'defaultvals' : default_values,
37 'MVTMvariableNames' : MVTM_varNames,
39 for option
in defaults:
40 options.setdefault(option, defaults[option])
41 acc.setPrivateTools(CompFactory.Analysis.MV2Tag(**options))