ATLAS Offline Software
makeConditionFilterConfigurer.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
3 """ create a ConditionFilter configurer"""
4 
5 from TrigHLTJetHypo.FastReductionAlgToolFactory import toolfactory
6 
7 from TrigHLTJetHypo.make_repeatedCondConfigurer import (
8  make_repeatedCondCfgFromParams,
9 )
10 
11 
13 
14  assert filterparams.typename == 'ConditionFilter'
15 
16  # one Repeated Condition
17  assert len(filterparams.args) == 1
18 
19  repcond_arg = filterparams.args[0]
20 
21  # check that there are contained conditions
22  assert repcond_arg.condargs, \
23  'no elemental conditions, use PassThroughFilter?'
24 
25  repeatedConditionConfigurer = make_repeatedCondCfgFromParams(
26  repcond_arg)
27 
28  toolclass, name = toolfactory('ConditionFilterConfigTool')
29  vals = {'name' : name,
30  'conditionMakers': [repeatedConditionConfigurer]}
31 
32 
33  # return a ConditionFilter configuration AlgTool that has one
34  # RepeatedCondition and zero or more internal conditions
35 
36  return toolclass(**vals)
python.makeConditionFilterConfigurer.makeConditionFilterConfigurer
def makeConditionFilterConfigurer(filterparams)
Definition: makeConditionFilterConfigurer.py:12
python.make_repeatedCondConfigurer.make_repeatedCondCfgFromParams
def make_repeatedCondCfgFromParams(repcondarg)
Definition: make_repeatedCondConfigurer.py:44
python.FastReductionAlgToolFactory.toolfactory
toolfactory
Definition: FastReductionAlgToolFactory.py:106