ATLAS Offline Software
Loading...
Searching...
No Matches
SV1TagConfig Namespace Reference

Functions

 SV1TagCfg (flags, name='SV1Tag', scheme='', useBTagFlagsDefaults=True, **options)

Function Documentation

◆ SV1TagCfg()

SV1TagConfig.SV1TagCfg ( flags,
name = 'SV1Tag',
scheme = '',
useBTagFlagsDefaults = True,
** options )
Sets up a SV1Tag tool and returns it.

The following options have BTaggingFlags defaults:

Runmodus                            default: BTagging.RunModus
referenceType                       default: BTagging.ReferenceType
SVAlgType                           default: "SV1"
jetCollectionList                   default: BTaggingFlags.Jets
LikelihoodTool                      default: None
SecVxFinderName                     default: "SV1"
UseCHypo                            default: True

input:             name: The name of the tool (should be unique).
      useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
              **options: Python dictionary with options for the tool.
output: The actual tool.

Definition at line 7 of file SV1TagConfig.py.

7def SV1TagCfg( flags, name = 'SV1Tag', scheme = '', useBTagFlagsDefaults = True, **options ):
8 """Sets up a SV1Tag tool and returns it.
9
10 The following options have BTaggingFlags defaults:
11
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
19
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."""
24 acc = ComponentAccumulator()
25 options['name'] = name
26 if 'Flip' in name:
27 options['xAODBaseName'] = 'SV1Flip'
28 else:
29 options['xAODBaseName'] = 'SV1'
30
31 if flags.BTagging.SaveSV1Probabilities:
32 likelihood = acc.popToolsAndMerge(NewLikelihoodToolCfg(flags, 'SV1NewLikelihoodTool', 'SV1', scheme))
33 else:
34 likelihood = None
35
36 defaults = {
37 'Runmodus' : flags.BTagging.RunModus,
38 'referenceType' : flags.BTagging.ReferenceType,
39 'jetPtMinRef' : flags.BTagging.JetPtMinRef,
40 'SaveProbabilities' : flags.BTagging.SaveSV1Probabilities,
41 'SVAlgType' : 'SV1',
42 'jetCollectionList' : [], #used only in reference mode
43 'SecVxFinderName' : 'SV1',
44 'UseCHypo' : True,
45 'LikelihoodTool' : likelihood
46 }
47 if 'Flip' in name:
48 defaults['SecVxFinderName'] = 'SV1Flip'
49 for option in defaults:
50 options.setdefault(option, defaults[option])
51 acc.setPrivateTools(CompFactory.Analysis.SVTag(**options))
52
53 return acc
54