ATLAS Offline Software
Loading...
Searching...
No Matches
RepeatedConditionParams.py
Go to the documentation of this file.
1# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
3from AthenaCommon.Logging import logging
4from AthenaCommon.Constants import DEBUG
5
6logger = logging.getLogger( __name__)
7logger.setLevel(DEBUG)
8
10 """Class used to transport parameters required to construct
11 a RepeatedCondition object. These parameters are the toolfactory keys
12 to construct the elemental conditions and their constructor values, and
13 the integer ids for the tree and parent nodes.
14 """
15
16 def __init__(self, tree_id, tree_pid, clique=-1,
17 chainPartInd=-1, multiplicity=1,
18 condargs=[], invert=False):
19
20 self.tree_id = tree_id
21 self.tree_pid = tree_pid
22 self.clique = clique # Conditions with the same args form a clique
23 self.chainPartInd = chainPartInd
24 self.multiplicity = multiplicity
25
26 # condargs is a list with elements (key, values)
27 # key is a string values is a dict
28 self.condargs = condargs
29 self.invert = invert
30
31 def __str__(self):
32
33 s = [self.__class__.__name__ + ':']
34
35 width = max([len(k) for k in self.__dict__])
36
37 [s.append('%s %s' % (k.ljust(width), str(v)))
38 for k, v in self.__dict__.items()]
39 return '\n'.join(s)
40
#define max(a, b)
Definition cfImp.cxx:41
__init__(self, tree_id, tree_pid, clique=-1, chainPartInd=-1, multiplicity=1, condargs=[], invert=False)