The Gaudi Framework  master (9f3f8895)
Loading...
Searching...
No Matches
GaudiPartProp.Nodes Namespace Reference

Functions

 _decorate (nodes, opers)
 Decorate the nodes.

Variables

str __author__ = "Vanya BELYAEV <Ivan.Belyaev@nikhef.nl>"
str __version__ = ""
 Decays = cppyy.gbl.Gaudi.Decays
 std = cppyy.gbl.std
 Gaudi = GaudiPython.gbl.Gaudi
 _decorated
 decorate the nodes
 iNode = Decays.iNode
 full list of known nodes
 Node = Decays.Node
 Any = Decays.Nodes.Any()
 Pid = Decays.Nodes.Pid
 CC = Decays.Nodes.CC
 Lepton = Decays.Nodes.Lepton()
 Nu = Decays.Nodes.Nu()
 Ell = Decays.Nodes.Ell()
 EllPlus = Decays.Nodes.EllPlus()
 EllMinus = Decays.Nodes.EllMinus()
 Hadron = Decays.Nodes.Hadron()
 Meson = Decays.Nodes.Meson()
 Baryon = Decays.Nodes.Baryon()
 Charged = Decays.Nodes.Charged()
 Positive = Decays.Nodes.Positive()
 Negative = Decays.Nodes.Negative()
 Neutral = Decays.Nodes.Neutral()
 HasQuark = Decays.Nodes.HasQuark
 JSpin = Decays.Nodes.JSpin
 SSpin = Decays.Nodes.SSpin
 LSpin = Decays.Nodes.LSpin
 Nucleus = Decays.Nodes.Nucleus()
 Or = Decays.Nodes.Or
 And = Decays.Nodes.And
 Not = Decays.Nodes.Not
 Invalid = Decays.Nodes.Invalid()
 _Node = Decays.Nodes._Node
 PosId = Decays.Nodes.PosID()
 NegId = Decays.Nodes.NegID()
 Up = HasQuark(Gaudi.ParticleID.up)
 Down = HasQuark(Gaudi.ParticleID.down)
 Strange = HasQuark(Gaudi.ParticleID.strange)
 Charm = HasQuark(Gaudi.ParticleID.charm)
 Beauty = HasQuark(Gaudi.ParticleID.bottom)
 Bottom = HasQuark(Gaudi.ParticleID.bottom)
 Top = HasQuark(Gaudi.ParticleID.top)
 Xu = HasQuark(Gaudi.ParticleID.up)
 Xd = HasQuark(Gaudi.ParticleID.down)
 Xs = HasQuark(Gaudi.ParticleID.strange)
 Xc = HasQuark(Gaudi.ParticleID.charm)
 Xb = HasQuark(Gaudi.ParticleID.bottom)
 Xt = HasQuark(Gaudi.ParticleID.top)
 Scalar = JSpin(1)
 Spinor = JSpin(2)
 Vector = JSpin(3)
 Tensor = JSpin(5)
 OneHalf = JSpin(2)
 ThreeHalf = JSpin(4)
 FiveHalf = JSpin(6)
 CTau = Decays.Nodes.CTau
 LongLived_ = Decays.Nodes.LongLived_
 LongLived = Decays.Nodes.LongLived_()
 ShortLived_ = Decays.Nodes.ShortLived_
 ShortLived = Decays.Nodes.ShortLived_()
 Stable = Decays.Nodes.Stable()
 StableCharged = Decays.Nodes.StableCharged()
 Mass = Decays.Nodes.Mass
 Light = Decays.Nodes.Light
 Heavy = Decays.Nodes.Heavy
 Symbol = Decays.Nodes.Symbol
 NodeList = Decays.NodeList

Function Documentation

◆ _decorate()

_decorate ( nodes,
opers )
protected

Decorate the nodes.

Decorate the functions

Definition at line 44 of file Nodes.py.

44def _decorate(nodes, opers):
45 """
46 Decorate the functions
47 """
48
49
50 if hasattr(opers, "__call__"):
51
52 def _call_(self, arg):
53 """
54 Evaluate the functor
55
56 >>> fun = ... # get the functor
57 >>> arg = ... # get the argument
58 >>> res = fun ( arg )
59 """
60 result = opers.__call__(self, arg)
61 return True if result else False
62
63 _call_.__doc__ = opers.__call__.__doc__
64
65
66 if hasattr(opers, "__or__"):
67
68 def _or_(self, arg):
69 """
70 LOGICAL or
71
72 >>> fun1 = ... # get the functor
73 >>> fun2 = ... # get the functor
74 >>> fun = fun1 | fun2
75 """
76 return opers.__or__(self, arg)
77
78 _or_.__doc__ = opers.__or__.__doc__
79
80
81 if hasattr(opers, "__ror__"):
82
83 def _ror_(self, arg):
84 """
85 LOGICAL or
86
87 >>> fun1 = ... # get the functor
88 >>> fun2 = ... # get the functor
89 >>> fun = fun1 | fun2
90 """
91 return opers.__ror__(self, arg)
92
93 _or_.__doc__ = opers.__or__.__doc__
94
95
96 if hasattr(opers, "__and__"):
97
98 def _and_(self, arg):
99 """
100 LOGICAL and
101
102 >>> fun1 = ... # get the functor
103 >>> fun2 = ... # get the functor
104 >>> fun = fun1 & fun2
105 """
106 return opers.__and__(self, arg)
107
108 _and_.__doc__ = opers.__and__.__doc__
109
110
111 if hasattr(opers, "__rand__"):
112
113 def _rand_(self, arg):
114 """
115 LOGICAL and
116
117 >>> fun1 = ... # get the functor
118 >>> fun2 = ... # get the functor
119 >>> fun = fun1 & fun2
120 """
121 return opers.__rand__(self, arg)
122
123 _rand_.__doc__ = opers.__rand__.__doc__
124
125
126 if hasattr(opers, "__invert__"):
127
128 def _invert_(self, *arg):
129 """
130 LOGICAL negation
131
132 >>> fun1 = ... # get the functor
133 >>> fun = ~fun2
134 """
135 return opers.__invert__(self, *arg)
136
137 _invert_.__doc__ = opers.__invert__.__doc__
138
139
140 if hasattr(opers, "__rshift__"):
141
142 def _rshift_(self, arg):
143 """
144 Streamers
145
146 >>> fun1 = ... # get the functor
147 >>> fun1 = ... # get the functor
148 >>> fun = fun1 >> fun2
149 """
150 return opers.__rshift__(self, arg)
151
152 _rshift_.__doc__ = opers.__rshift__.__doc__
153
154
155 if hasattr(opers, "__rrshift__"):
156
157 def _rrshift_(self, arg):
158 """
159 Evaluate the functor as streametr shift
160
161 >>> fun = ... # get the functor
162 >>> arg = ... # get the argument
163 >>> res = arg >> fun
164 """
165 result = opers.__rrshift__(self, arg)
166 return True if result else False
167
168 _rrshift_.__doc__ = opers.__rrshift__.__doc__
169
170 for node in nodes:
171 if _call_:
172 node.__call__ = _call_
173 if _or_:
174 node.__or__ = _or_
175 if _ror_:
176 node.__ror__ = _ror_
177 if _and_:
178 node.__and__ = _and_
179 if _rand_:
180 node.__rand__ = _rand_
181 if _rshift_:
182 node.__rshift__ = _rshift_
183 if _rrshift_:
184 node.__rrshift__ = _rrshift_
185 if _invert_:
186 node.__invert__ = _invert_
187
188 node.__repr__ = lambda s: s.toString()
189 node.__str__ = lambda s: s.toString()
190
191 return nodes
192
193

Variable Documentation

◆ __author__

str GaudiPartProp.Nodes.__author__ = "Vanya BELYAEV <Ivan.Belyaev@nikhef.nl>"
private

Definition at line 23 of file Nodes.py.

◆ __version__

str GaudiPartProp.Nodes.__version__ = ""
private

Definition at line 24 of file Nodes.py.

◆ _decorated

GaudiPartProp.Nodes._decorated
protected

decorate the nodes

Definition at line 195 of file Nodes.py.

◆ _Node

GaudiPartProp.Nodes._Node = Decays.Nodes._Node
protected

Definition at line 271 of file Nodes.py.

◆ And

GaudiPartProp.Nodes.And = Decays.Nodes.And

Definition at line 268 of file Nodes.py.

◆ Any

GaudiPartProp.Nodes.Any = Decays.Nodes.Any()

Definition at line 247 of file Nodes.py.

◆ Baryon

GaudiPartProp.Nodes.Baryon = Decays.Nodes.Baryon()

Definition at line 257 of file Nodes.py.

◆ Beauty

GaudiPartProp.Nodes.Beauty = HasQuark(Gaudi.ParticleID.bottom)

Definition at line 280 of file Nodes.py.

◆ Bottom

GaudiPartProp.Nodes.Bottom = HasQuark(Gaudi.ParticleID.bottom)

Definition at line 281 of file Nodes.py.

◆ CC

GaudiPartProp.Nodes.CC = Decays.Nodes.CC

Definition at line 249 of file Nodes.py.

◆ Charged

GaudiPartProp.Nodes.Charged = Decays.Nodes.Charged()

Definition at line 258 of file Nodes.py.

◆ Charm

GaudiPartProp.Nodes.Charm = HasQuark(Gaudi.ParticleID.charm)

Definition at line 279 of file Nodes.py.

◆ CTau

GaudiPartProp.Nodes.CTau = Decays.Nodes.CTau

Definition at line 301 of file Nodes.py.

◆ Decays

GaudiPartProp.Nodes.Decays = cppyy.gbl.Gaudi.Decays

Definition at line 37 of file Nodes.py.

◆ Down

GaudiPartProp.Nodes.Down = HasQuark(Gaudi.ParticleID.down)

Definition at line 277 of file Nodes.py.

◆ Ell

GaudiPartProp.Nodes.Ell = Decays.Nodes.Ell()

Definition at line 252 of file Nodes.py.

◆ EllMinus

GaudiPartProp.Nodes.EllMinus = Decays.Nodes.EllMinus()

Definition at line 254 of file Nodes.py.

◆ EllPlus

GaudiPartProp.Nodes.EllPlus = Decays.Nodes.EllPlus()

Definition at line 253 of file Nodes.py.

◆ FiveHalf

GaudiPartProp.Nodes.FiveHalf = JSpin(6)

Definition at line 299 of file Nodes.py.

◆ Gaudi

GaudiPartProp.Nodes.Gaudi = GaudiPython.gbl.Gaudi

Definition at line 39 of file Nodes.py.

◆ Hadron

GaudiPartProp.Nodes.Hadron = Decays.Nodes.Hadron()

Definition at line 255 of file Nodes.py.

◆ HasQuark

GaudiPartProp.Nodes.HasQuark = Decays.Nodes.HasQuark

Definition at line 262 of file Nodes.py.

◆ Heavy

GaudiPartProp.Nodes.Heavy = Decays.Nodes.Heavy

Definition at line 310 of file Nodes.py.

◆ iNode

GaudiPartProp.Nodes.iNode = Decays.iNode

full list of known nodes

Definition at line 244 of file Nodes.py.

◆ Invalid

GaudiPartProp.Nodes.Invalid = Decays.Nodes.Invalid()

Definition at line 270 of file Nodes.py.

◆ JSpin

GaudiPartProp.Nodes.JSpin = Decays.Nodes.JSpin

Definition at line 263 of file Nodes.py.

◆ Lepton

GaudiPartProp.Nodes.Lepton = Decays.Nodes.Lepton()

Definition at line 250 of file Nodes.py.

◆ Light

GaudiPartProp.Nodes.Light = Decays.Nodes.Light

Definition at line 309 of file Nodes.py.

◆ LongLived

GaudiPartProp.Nodes.LongLived = Decays.Nodes.LongLived_()

Definition at line 303 of file Nodes.py.

◆ LongLived_

GaudiPartProp.Nodes.LongLived_ = Decays.Nodes.LongLived_

Definition at line 302 of file Nodes.py.

◆ LSpin

GaudiPartProp.Nodes.LSpin = Decays.Nodes.LSpin

Definition at line 265 of file Nodes.py.

◆ Mass

GaudiPartProp.Nodes.Mass = Decays.Nodes.Mass

Definition at line 308 of file Nodes.py.

◆ Meson

GaudiPartProp.Nodes.Meson = Decays.Nodes.Meson()

Definition at line 256 of file Nodes.py.

◆ Negative

GaudiPartProp.Nodes.Negative = Decays.Nodes.Negative()

Definition at line 260 of file Nodes.py.

◆ NegId

GaudiPartProp.Nodes.NegId = Decays.Nodes.NegID()

Definition at line 274 of file Nodes.py.

◆ Neutral

GaudiPartProp.Nodes.Neutral = Decays.Nodes.Neutral()

Definition at line 261 of file Nodes.py.

◆ Node

GaudiPartProp.Nodes.Node = Decays.Node

Definition at line 245 of file Nodes.py.

◆ NodeList

GaudiPartProp.Nodes.NodeList = Decays.NodeList

Definition at line 313 of file Nodes.py.

◆ Not

GaudiPartProp.Nodes.Not = Decays.Nodes.Not

Definition at line 269 of file Nodes.py.

◆ Nu

GaudiPartProp.Nodes.Nu = Decays.Nodes.Nu()

Definition at line 251 of file Nodes.py.

◆ Nucleus

GaudiPartProp.Nodes.Nucleus = Decays.Nodes.Nucleus()

Definition at line 266 of file Nodes.py.

◆ OneHalf

GaudiPartProp.Nodes.OneHalf = JSpin(2)

Definition at line 297 of file Nodes.py.

◆ Or

GaudiPartProp.Nodes.Or = Decays.Nodes.Or

Definition at line 267 of file Nodes.py.

◆ Pid

GaudiPartProp.Nodes.Pid = Decays.Nodes.Pid

Definition at line 248 of file Nodes.py.

◆ PosId

GaudiPartProp.Nodes.PosId = Decays.Nodes.PosID()

Definition at line 273 of file Nodes.py.

◆ Positive

GaudiPartProp.Nodes.Positive = Decays.Nodes.Positive()

Definition at line 259 of file Nodes.py.

◆ Scalar

GaudiPartProp.Nodes.Scalar = JSpin(1)

Definition at line 292 of file Nodes.py.

◆ ShortLived

GaudiPartProp.Nodes.ShortLived = Decays.Nodes.ShortLived_()

Definition at line 305 of file Nodes.py.

◆ ShortLived_

GaudiPartProp.Nodes.ShortLived_ = Decays.Nodes.ShortLived_

Definition at line 304 of file Nodes.py.

◆ Spinor

GaudiPartProp.Nodes.Spinor = JSpin(2)

Definition at line 293 of file Nodes.py.

◆ SSpin

GaudiPartProp.Nodes.SSpin = Decays.Nodes.SSpin

Definition at line 264 of file Nodes.py.

◆ Stable

GaudiPartProp.Nodes.Stable = Decays.Nodes.Stable()

Definition at line 306 of file Nodes.py.

◆ StableCharged

GaudiPartProp.Nodes.StableCharged = Decays.Nodes.StableCharged()

Definition at line 307 of file Nodes.py.

◆ std

GaudiPartProp.Nodes.std = cppyy.gbl.std

Definition at line 38 of file Nodes.py.

◆ Strange

GaudiPartProp.Nodes.Strange = HasQuark(Gaudi.ParticleID.strange)

Definition at line 278 of file Nodes.py.

◆ Symbol

GaudiPartProp.Nodes.Symbol = Decays.Nodes.Symbol

Definition at line 311 of file Nodes.py.

◆ Tensor

GaudiPartProp.Nodes.Tensor = JSpin(5)

Definition at line 295 of file Nodes.py.

◆ ThreeHalf

GaudiPartProp.Nodes.ThreeHalf = JSpin(4)

Definition at line 298 of file Nodes.py.

◆ Top

GaudiPartProp.Nodes.Top = HasQuark(Gaudi.ParticleID.top)

Definition at line 282 of file Nodes.py.

◆ Up

GaudiPartProp.Nodes.Up = HasQuark(Gaudi.ParticleID.up)

Definition at line 276 of file Nodes.py.

◆ Vector

GaudiPartProp.Nodes.Vector = JSpin(3)

Definition at line 294 of file Nodes.py.

◆ Xb

GaudiPartProp.Nodes.Xb = HasQuark(Gaudi.ParticleID.bottom)

Definition at line 288 of file Nodes.py.

◆ Xc

GaudiPartProp.Nodes.Xc = HasQuark(Gaudi.ParticleID.charm)

Definition at line 287 of file Nodes.py.

◆ Xd

GaudiPartProp.Nodes.Xd = HasQuark(Gaudi.ParticleID.down)

Definition at line 285 of file Nodes.py.

◆ Xs

GaudiPartProp.Nodes.Xs = HasQuark(Gaudi.ParticleID.strange)

Definition at line 286 of file Nodes.py.

◆ Xt

GaudiPartProp.Nodes.Xt = HasQuark(Gaudi.ParticleID.top)

Definition at line 290 of file Nodes.py.

◆ Xu

GaudiPartProp.Nodes.Xu = HasQuark(Gaudi.ParticleID.up)

Definition at line 284 of file Nodes.py.