Skip to content
Snippets Groups Projects
Commit cb579460 authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'ActivateTaggers' into 'master'

AFT-522: Activate SV1 and JF LH

See merge request atlas/athena!39034
parents 606e0353 17f3abb0
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ def BTagToolCfg(ConfigFlags, TaggerList, PrimaryVertexCollectionName="", scheme ...@@ -45,7 +45,7 @@ def BTagToolCfg(ConfigFlags, TaggerList, PrimaryVertexCollectionName="", scheme
if 'JetFitterNN' in TaggerList: if 'JetFitterNN' in TaggerList:
from JetTagTools.JetFitterTagConfig import JetFitterTagCfg from JetTagTools.JetFitterTagConfig import JetFitterTagCfg
jetfitterNNtool = acc.popToolsAndMerge(JetFitterTagCfg(ConfigFlags, 'JetFitterTagNN', scheme)) jetfitterNNtool = acc.popToolsAndMerge(JetFitterTagCfg(ConfigFlags, 'JetFitterTagNN', scheme, runNN=ConfigFlags.BTagging.RunJetFitterNN))
tagToolList.append(jetfitterNNtool) tagToolList.append(jetfitterNNtool)
if 'SoftMu' in TaggerList: if 'SoftMu' in TaggerList:
......
...@@ -19,6 +19,9 @@ def createBTaggingConfigFlags(): ...@@ -19,6 +19,9 @@ def createBTaggingConfigFlags():
"InANDNInShared", "PixShared", "SctShared", "InANDNInShared", "PixShared", "SctShared",
"InANDNInSplit", "PixSplit", "InANDNInSplit", "PixSplit",
"Good"]) "Good"])
# Taggers for validation
btagcf.addFlag("BTagging.SaveSV1Probabilities",False)
btagcf.addFlag("BTagging.RunJetFitterNN",False)
#Do we really need this in AthConfigFlags? #Do we really need this in AthConfigFlags?
#Comments in BTaggingConfiguration.py #Comments in BTaggingConfiguration.py
btagcf.addFlag("BTagging.OutputFiles.Prefix", "BTagging_") btagcf.addFlag("BTagging.OutputFiles.Prefix", "BTagging_")
......
...@@ -23,7 +23,7 @@ def SV1TagCfg( flags, name = 'SV1Tag', scheme = '', useBTagFlagsDefaults = True, ...@@ -23,7 +23,7 @@ def SV1TagCfg( flags, name = 'SV1Tag', scheme = '', useBTagFlagsDefaults = True,
input: name: The name of the tool (should be unique). input: name: The name of the tool (should be unique).
useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified. useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
**options: Python dictionary with options for the tool. **options: Python dictionary with options for the tool.
output: The actual tool.""" output: The actual tool."""
acc = ComponentAccumulator() acc = ComponentAccumulator()
options['name'] = name options['name'] = name
options['xAODBaseName'] = 'SV1' options['xAODBaseName'] = 'SV1'
...@@ -32,6 +32,7 @@ def SV1TagCfg( flags, name = 'SV1Tag', scheme = '', useBTagFlagsDefaults = True, ...@@ -32,6 +32,7 @@ def SV1TagCfg( flags, name = 'SV1Tag', scheme = '', useBTagFlagsDefaults = True,
defaults = { 'Runmodus' : flags.BTagging.RunModus, defaults = { 'Runmodus' : flags.BTagging.RunModus,
'referenceType' : flags.BTagging.ReferenceType, 'referenceType' : flags.BTagging.ReferenceType,
'jetPtMinRef' : flags.BTagging.JetPtMinRef, 'jetPtMinRef' : flags.BTagging.JetPtMinRef,
'SaveProbabilities' : flags.BTagging.SaveSV1Probabilities,
'SVAlgType' : 'SV1', 'SVAlgType' : 'SV1',
'jetCollectionList' : [], #used only in reference mode 'jetCollectionList' : [], #used only in reference mode
'SecVxFinderName' : 'SV1', 'SecVxFinderName' : 'SV1',
......
...@@ -145,6 +145,9 @@ if jetOK and rec.doBTagging() and DetFlags.ID_on() and DetFlags.Muon_on(): ...@@ -145,6 +145,9 @@ if jetOK and rec.doBTagging() and DetFlags.ID_on() and DetFlags.Muon_on():
ConfigFlags.Input.Files = jps.AthenaCommonFlags.FilesInput.get_Value() ConfigFlags.Input.Files = jps.AthenaCommonFlags.FilesInput.get_Value()
ConfigFlags.IOVDb.GlobalTag=globalflags.ConditionsTag() ConfigFlags.IOVDb.GlobalTag=globalflags.ConditionsTag()
ConfigFlags.GeoModel.AtlasVersion = jps.Global.DetDescrVersion() ConfigFlags.GeoModel.AtlasVersion = jps.Global.DetDescrVersion()
# Additional b-tagging related flags
ConfigFlags.BTagging.SaveSV1Probabilities = True
ConfigFlags.BTagging.RunJetFitterNN = True
# Configure BTagging algorithm # Configure BTagging algorithm
from BTagging.BTagRun3Config import BTagRecoSplitCfg from BTagging.BTagRun3Config import BTagRecoSplitCfg
CAtoGlobalWrapper(BTagRecoSplitCfg, ConfigFlags) CAtoGlobalWrapper(BTagRecoSplitCfg, ConfigFlags)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment