ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
python.HelperConfigToolParams.HelperConfigToolParams Class Reference
Collaboration diagram for python.HelperConfigToolParams.HelperConfigToolParams:

Public Member Functions

def __init__ (self, treevec=[], repcondargs=[], filterparams=[], filterparam_inds=[])
 
def treevec (self)
 
def leafvec (self)
 
def treevec (self, treevec)
 
def repcondargs (self)
 
def repcondargs (self, repcondargs)
 
def filterparams (self)
 
def filterparams (self, filterparams)
 
def filterparam_inds (self)
 
def filterparam_inds (self, filterparam_inds)
 
def __str__ (self)
 

Public Attributes

 treevec
 
 repcondargs
 
 filterparams
 
 filterparam_inds
 

Private Attributes

 __treevec
 
 __leafVec
 
 __leafvec
 
 __repcondargs
 
 __filterparams
 
 __filterparam_inds
 

Detailed Description

Class used to transport parameters required to construct
a HelperConfigTool object.
This includes  the tree_vector, leaf_vector and parameters
for the RepeatedConditions, both for FastReduction Condition nodes,
and Conditions that will filter for the node.

Definition at line 9 of file HelperConfigToolParams.py.

Constructor & Destructor Documentation

◆ __init__()

def python.HelperConfigToolParams.HelperConfigToolParams.__init__ (   self,
  treevec = [],
  repcondargs = [],
  filterparams = [],
  filterparam_inds = [] 
)

Definition at line 17 of file HelperConfigToolParams.py.

17  def __init__(self,
18  treevec=[],
19  repcondargs=[],
20  filterparams=[],
21  filterparam_inds=[]):
22 
23 
24  self.treevec = treevec
25  self.repcondargs = repcondargs
26  self.filterparams = filterparams
27  self.filterparam_inds = filterparam_inds
28 

Member Function Documentation

◆ __str__()

def python.HelperConfigToolParams.HelperConfigToolParams.__str__ (   self)

Definition at line 88 of file HelperConfigToolParams.py.

88  def __str__(self):
89 
90  s = [self.__class__.__name__ + ':']
91  to_show = ['treevec', 'leafvec', 'repcondargs', 'filterparams',
92  'filterparam_inds']
93  width = max([len(a) for a in to_show])
94  [s.append('%s %s' % (a.ljust(width), getattr(self, a))) for a in to_show]
95  return '\n'.join(s)

◆ filterparam_inds() [1/2]

def python.HelperConfigToolParams.HelperConfigToolParams.filterparam_inds (   self)

Definition at line 80 of file HelperConfigToolParams.py.

80  def filterparam_inds(self):
81  return self.__filterparam_inds
82 

◆ filterparam_inds() [2/2]

def python.HelperConfigToolParams.HelperConfigToolParams.filterparam_inds (   self,
  filterparam_inds 
)

Definition at line 84 of file HelperConfigToolParams.py.

84  def filterparam_inds(self, filterparam_inds):
85  self.__filterparam_inds = filterparam_inds
86 
87 

◆ filterparams() [1/2]

def python.HelperConfigToolParams.HelperConfigToolParams.filterparams (   self)

Definition at line 71 of file HelperConfigToolParams.py.

71  def filterparams(self):
72  return self.__filterparams
73 

◆ filterparams() [2/2]

def python.HelperConfigToolParams.HelperConfigToolParams.filterparams (   self,
  filterparams 
)

Definition at line 75 of file HelperConfigToolParams.py.

75  def filterparams(self, filterparams):
76  self.__filterparams = filterparams
77 
78 

◆ leafvec()

def python.HelperConfigToolParams.HelperConfigToolParams.leafvec (   self)

Definition at line 34 of file HelperConfigToolParams.py.

34  def leafvec(self):
35  return self.__leafvec
36 

◆ repcondargs() [1/2]

def python.HelperConfigToolParams.HelperConfigToolParams.repcondargs (   self)

Definition at line 60 of file HelperConfigToolParams.py.

60  def repcondargs(self):
61  return self.__repcondargs
62 

◆ repcondargs() [2/2]

def python.HelperConfigToolParams.HelperConfigToolParams.repcondargs (   self,
  repcondargs 
)

Definition at line 64 of file HelperConfigToolParams.py.

64  def repcondargs(self, repcondargs):
65  for ca in repcondargs:
66  assert ca.tree_id <= len(self.treevec)
67  assert ca.tree_pid <= len(self.treevec) - 1
68  self.__repcondargs = repcondargs
69 

◆ treevec() [1/2]

def python.HelperConfigToolParams.HelperConfigToolParams.treevec (   self)

Definition at line 30 of file HelperConfigToolParams.py.

30  def treevec(self):
31  return self.__treevec
32 

◆ treevec() [2/2]

def python.HelperConfigToolParams.HelperConfigToolParams.treevec (   self,
  treevec 
)

Definition at line 38 of file HelperConfigToolParams.py.

38  def treevec(self, treevec):
39 
40  if not treevec:
41  self.__treevec = []
42  self.__leafVec = []
43  return
44 
45  assert len(treevec) > 1 # root plus at least one node
46  assert treevec[0] == 0
47  for i in range(1, len(treevec)):
48  assert treevec[i] >= 0, 'bad tree vec: %s' % str(treevec)
49  assert treevec[i] < i, 'bad tree vec: %s' % str(treevec)
50 
51  is_leaf = [True for i in range(len(treevec))]
52  is_leaf[0] = False
53  for i in treevec[1:]:
54  is_leaf[i] = False
55 
56  self.__leafvec = [i for i in range(len(is_leaf)) if is_leaf[i]]
57  self.__treevec = treevec
58 

Member Data Documentation

◆ __filterparam_inds

python.HelperConfigToolParams.HelperConfigToolParams.__filterparam_inds
private

Definition at line 85 of file HelperConfigToolParams.py.

◆ __filterparams

python.HelperConfigToolParams.HelperConfigToolParams.__filterparams
private

Definition at line 76 of file HelperConfigToolParams.py.

◆ __leafVec

python.HelperConfigToolParams.HelperConfigToolParams.__leafVec
private

Definition at line 42 of file HelperConfigToolParams.py.

◆ __leafvec

python.HelperConfigToolParams.HelperConfigToolParams.__leafvec
private

Definition at line 56 of file HelperConfigToolParams.py.

◆ __repcondargs

python.HelperConfigToolParams.HelperConfigToolParams.__repcondargs
private

Definition at line 68 of file HelperConfigToolParams.py.

◆ __treevec

python.HelperConfigToolParams.HelperConfigToolParams.__treevec
private

Definition at line 41 of file HelperConfigToolParams.py.

◆ filterparam_inds

python.HelperConfigToolParams.HelperConfigToolParams.filterparam_inds

Definition at line 23 of file HelperConfigToolParams.py.

◆ filterparams

python.HelperConfigToolParams.HelperConfigToolParams.filterparams

Definition at line 22 of file HelperConfigToolParams.py.

◆ repcondargs

python.HelperConfigToolParams.HelperConfigToolParams.repcondargs

Definition at line 21 of file HelperConfigToolParams.py.

◆ treevec

python.HelperConfigToolParams.HelperConfigToolParams.treevec

Definition at line 20 of file HelperConfigToolParams.py.


The documentation for this class was generated from the following file:
max
#define max(a, b)
Definition: cfImp.cxx:41
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
str
Definition: BTagTrackIpAccessor.cxx:11