7 def SV1TagCfg( flags, name = 'SV1Tag', scheme = '', useBTagFlagsDefaults = True, **options ):
8 """Sets up a SV1Tag tool and returns it.
10 The following options have BTaggingFlags defaults:
12 Runmodus default: BTagging.RunModus
13 referenceType default: BTagging.ReferenceType
14 SVAlgType default: "SV1"
15 jetCollectionList default: BTaggingFlags.Jets
16 LikelihoodTool default: None
17 SecVxFinderName default: "SV1"
18 UseCHypo default: True
20 input: name: The name of the tool (should be unique).
21 useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
22 **options: Python dictionary with options for the tool.
23 output: The actual tool."""
25 options[
'name'] = name
27 options[
'xAODBaseName'] =
'SV1Flip'
29 options[
'xAODBaseName'] =
'SV1'
31 if flags.BTagging.SaveSV1Probabilities:
32 likelihood = acc.popToolsAndMerge(
NewLikelihoodToolCfg(flags,
'SV1NewLikelihoodTool',
'SV1', scheme))
37 'Runmodus' : flags.BTagging.RunModus,
38 'referenceType' : flags.BTagging.ReferenceType,
39 'jetPtMinRef' : flags.BTagging.JetPtMinRef,
40 'SaveProbabilities' : flags.BTagging.SaveSV1Probabilities,
42 'jetCollectionList' : [],
43 'SecVxFinderName' :
'SV1',
45 'LikelihoodTool' : likelihood
48 defaults[
'SecVxFinderName'] =
'SV1Flip'
49 for option
in defaults:
50 options.setdefault(option, defaults[option])
51 acc.setPrivateTools(CompFactory.Analysis.SVTag(**options))