ATLAS Offline Software
BTagMuonAugmenterAlgConfig.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 def BTagMuonAugmenterAlgCfg(ConfigFlags, BTagCollection, Associator, MuonCollection):
7 
8  name = (BTagCollection + 'augment' + MuonCollection).lower()
9 
10  aug = CompFactory.FlavorTagDiscriminants.BTagMuonAugmenterTool(
11  name=name,
12  MuonAssociationName=Associator,
13  )
14 
15  decorAlg = CompFactory.FlavorTagDiscriminants.BTagDecoratorAlg(
16  name=f'{name}_alg',
17  container=BTagCollection,
18  constituentContainer=MuonCollection,
19  decorator=aug,
20  )
21  # -- create the augmentation algorithm
22  acc = ComponentAccumulator()
23  acc.addEventAlgo(decorAlg)
24 
25  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.BTagMuonAugmenterAlgConfig.BTagMuonAugmenterAlgCfg
def BTagMuonAugmenterAlgCfg(ConfigFlags, BTagCollection, Associator, MuonCollection)
Definition: BTagMuonAugmenterAlgConfig.py:6