The Gaudi Framework  master (ff829712)
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()

GaudiPartProp.Nodes._decorate ( nodes,
opers )
protected

Decorate the nodes.

Decorate the functions

Definition at line 46 of file Nodes.py.

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

Variable Documentation

◆ __author__

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

Definition at line 25 of file Nodes.py.

◆ __version__

str GaudiPartProp.Nodes.__version__ = ""
private

Definition at line 26 of file Nodes.py.

◆ _decorated

GaudiPartProp.Nodes._decorated
protected

decorate the nodes

Definition at line 197 of file Nodes.py.

◆ _Node

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

Definition at line 273 of file Nodes.py.

◆ And

GaudiPartProp.Nodes.And = Decays.Nodes.And

Definition at line 270 of file Nodes.py.

◆ Any

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

Definition at line 249 of file Nodes.py.

◆ Baryon

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

Definition at line 259 of file Nodes.py.

◆ Beauty

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

Definition at line 282 of file Nodes.py.

◆ Bottom

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

Definition at line 283 of file Nodes.py.

◆ CC

GaudiPartProp.Nodes.CC = Decays.Nodes.CC

Definition at line 251 of file Nodes.py.

◆ Charged

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

Definition at line 260 of file Nodes.py.

◆ Charm

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

Definition at line 281 of file Nodes.py.

◆ CTau

GaudiPartProp.Nodes.CTau = Decays.Nodes.CTau

Definition at line 303 of file Nodes.py.

◆ Decays

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

Definition at line 39 of file Nodes.py.

◆ Down

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

Definition at line 279 of file Nodes.py.

◆ Ell

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

Definition at line 254 of file Nodes.py.

◆ EllMinus

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

Definition at line 256 of file Nodes.py.

◆ EllPlus

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

Definition at line 255 of file Nodes.py.

◆ FiveHalf

GaudiPartProp.Nodes.FiveHalf = JSpin(6)

Definition at line 301 of file Nodes.py.

◆ Gaudi

GaudiPartProp.Nodes.Gaudi = GaudiPython.gbl.Gaudi

Definition at line 41 of file Nodes.py.

◆ Hadron

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

Definition at line 257 of file Nodes.py.

◆ HasQuark

GaudiPartProp.Nodes.HasQuark = Decays.Nodes.HasQuark

Definition at line 264 of file Nodes.py.

◆ Heavy

GaudiPartProp.Nodes.Heavy = Decays.Nodes.Heavy

Definition at line 312 of file Nodes.py.

◆ iNode

GaudiPartProp.Nodes.iNode = Decays.iNode

full list of known nodes

Definition at line 246 of file Nodes.py.

◆ Invalid

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

Definition at line 272 of file Nodes.py.

◆ JSpin

GaudiPartProp.Nodes.JSpin = Decays.Nodes.JSpin

Definition at line 265 of file Nodes.py.

◆ Lepton

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

Definition at line 252 of file Nodes.py.

◆ Light

GaudiPartProp.Nodes.Light = Decays.Nodes.Light

Definition at line 311 of file Nodes.py.

◆ LongLived

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

Definition at line 305 of file Nodes.py.

◆ LongLived_

GaudiPartProp.Nodes.LongLived_ = Decays.Nodes.LongLived_

Definition at line 304 of file Nodes.py.

◆ LSpin

GaudiPartProp.Nodes.LSpin = Decays.Nodes.LSpin

Definition at line 267 of file Nodes.py.

◆ Mass

GaudiPartProp.Nodes.Mass = Decays.Nodes.Mass

Definition at line 310 of file Nodes.py.

◆ Meson

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

Definition at line 258 of file Nodes.py.

◆ Negative

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

Definition at line 262 of file Nodes.py.

◆ NegId

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

Definition at line 276 of file Nodes.py.

◆ Neutral

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

Definition at line 263 of file Nodes.py.

◆ Node

GaudiPartProp.Nodes.Node = Decays.Node

Definition at line 247 of file Nodes.py.

◆ NodeList

GaudiPartProp.Nodes.NodeList = Decays.NodeList

Definition at line 315 of file Nodes.py.

◆ Not

GaudiPartProp.Nodes.Not = Decays.Nodes.Not

Definition at line 271 of file Nodes.py.

◆ Nu

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

Definition at line 253 of file Nodes.py.

◆ Nucleus

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

Definition at line 268 of file Nodes.py.

◆ OneHalf

GaudiPartProp.Nodes.OneHalf = JSpin(2)

Definition at line 299 of file Nodes.py.

◆ Or

GaudiPartProp.Nodes.Or = Decays.Nodes.Or

Definition at line 269 of file Nodes.py.

◆ Pid

GaudiPartProp.Nodes.Pid = Decays.Nodes.Pid

Definition at line 250 of file Nodes.py.

◆ PosId

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

Definition at line 275 of file Nodes.py.

◆ Positive

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

Definition at line 261 of file Nodes.py.

◆ Scalar

GaudiPartProp.Nodes.Scalar = JSpin(1)

Definition at line 294 of file Nodes.py.

◆ ShortLived

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

Definition at line 307 of file Nodes.py.

◆ ShortLived_

GaudiPartProp.Nodes.ShortLived_ = Decays.Nodes.ShortLived_

Definition at line 306 of file Nodes.py.

◆ Spinor

GaudiPartProp.Nodes.Spinor = JSpin(2)

Definition at line 295 of file Nodes.py.

◆ SSpin

GaudiPartProp.Nodes.SSpin = Decays.Nodes.SSpin

Definition at line 266 of file Nodes.py.

◆ Stable

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

Definition at line 308 of file Nodes.py.

◆ StableCharged

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

Definition at line 309 of file Nodes.py.

◆ std

GaudiPartProp.Nodes.std = cppyy.gbl.std

Definition at line 40 of file Nodes.py.

◆ Strange

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

Definition at line 280 of file Nodes.py.

◆ Symbol

GaudiPartProp.Nodes.Symbol = Decays.Nodes.Symbol

Definition at line 313 of file Nodes.py.

◆ Tensor

GaudiPartProp.Nodes.Tensor = JSpin(5)

Definition at line 297 of file Nodes.py.

◆ ThreeHalf

GaudiPartProp.Nodes.ThreeHalf = JSpin(4)

Definition at line 300 of file Nodes.py.

◆ Top

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

Definition at line 284 of file Nodes.py.

◆ Up

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

Definition at line 278 of file Nodes.py.

◆ Vector

GaudiPartProp.Nodes.Vector = JSpin(3)

Definition at line 296 of file Nodes.py.

◆ Xb

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

Definition at line 290 of file Nodes.py.

◆ Xc

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

Definition at line 289 of file Nodes.py.

◆ Xd

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

Definition at line 287 of file Nodes.py.

◆ Xs

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

Definition at line 288 of file Nodes.py.

◆ Xt

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

Definition at line 292 of file Nodes.py.

◆ Xu

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

Definition at line 286 of file Nodes.py.