![]() |
The Gaudi Framework
master (2df85225)
|
Functions | |
| _get_all_ (self, asList=False) | |
| get all particle properties form the service | |
| _get_pp_ (self, cut, asList=False) | |
| simple "get" method for the service | |
| _get_ppv_ (self, cut, asList=False) | |
| simple "get" method for the service | |
| _ppv_2_list_ (self) | |
| Convert Gaudi.Interfaces.IParticlePropertySvc.ParticleProperties into python list. | |
| _ppv_from_lst_ (self, lst) | |
| convert python list into Gaudi.IParticlePropertisvc.ParticleProperties | |
| _prnt_as_table_ (self, *args) | |
| Print vector of particle properties in a form of table. | |
| _get_attr_from_PID_ (self, attr) | |
| _pp_cmp_ (pp1, pp2) | |
| _pp_lt_ (pp1, pp2) | |
| _abs_1_ (self) | |
| abs for ParticleID | |
| _abs_2_ (self) | |
| abs for ParticleProperty | |
| _get_pid_ (self, cut) | |
| get particleID objects whcih satisfy some criteria | |
| _validate_ (self, svc) | |
| _symbols_ (self) | |
| _sym_iter_ (self) | |
Variables | |
| str | __author__ = "Vanya BELYAEV <Ivan.Belyaev@nikhef.nl>" |
| str | __version__ = "" |
| cpp = GaudiPython.gbl | |
| std = GaudiPython.gbl.std | |
| Decays = GaudiPython.gbl.Gaudi.Decays | |
| Gaudi = GaudiPython.gbl.Gaudi | |
| all | |
| decorate service | |
| get | |
| decorate the vector of properties | |
| __len__ | |
| toList | |
| decorate the vector of properties | |
| toLst | |
| fromList | |
| decorate the vector of properties | |
| fromLst | |
| __repr__ | |
| decorate the vector of properties | |
| __str__ | |
| decorate the printout for Gaudi.ParticleProperty | |
| __getattr__ | |
| decorate the attribute access for Gaudi.ParticleProperty | |
| __cmp__ | |
| __lt__ | |
| __abs__ | |
| ParticleIDs | |
| define the type for std::vector<Gaudi::ParticleID> | |
| _items = std.vector(Decays.Decay.Item) | |
| _decays = std.vector(Decays.Decay) | |
| Items | |
| Decay | |
| Item | |
| validate | |
| _old_symbols_ = Decays.Symbols.symbols | |
| _old_particles_ = Decays.Symbols.particles | |
| symbols | |
| __iter__ | |
| Symbols = Decays.Symbols.instance() | |
| instance: | |
|
protected |
abs for ParticleID
Absolute value for the PID >>> p = ... >>> pa = abs ( p )
Definition at line 211 of file decorators.py.
|
protected |
abs for ParticleProperty
Absolute value for the ParticleProperty >>> p = ... >>> pa = abs ( p )
Definition at line 225 of file decorators.py.
|
protected |
get all particle properties form the service
Get all particle properties from the service >>> svc = ... # get the service >>> all = svc.all () # get all properties
Definition at line 38 of file decorators.py.
|
protected |
Delegate the evaluation of unknown atrributes to Gaudi.ParticleID class >>> pp = ... >>> print pp.jSpin()
Definition at line 152 of file decorators.py.
|
protected |
get particleID objects whcih satisfy some criteria
Get particleID objects which satisfy some criteria >>> pids = ... # vector of LCHb::ParticleID objects >>> good = pids.get( lambda s : s.isLepton() ) # get leptons >>> scalar = pids.get( lambda s : 1 == s.jSpin() ) # get scalars
Definition at line 253 of file decorators.py.
|
protected |
simple "get" method for the service
Simple 'get' method for Gaudi::Interfaces::IParticlePropertySvc service to extract the properties which satisfy some criteria >>> svc = ... # get service (Gaudi::Interfaces::IParticlePropertySvc) or vector >>> leptons = svc.get ( lambda s : s.pid().isLepton() ) # get all leptons >>> longlived = svc.get ( lambda s : s.ctau() > 0.001 ) # get longlived
Definition at line 57 of file decorators.py.
|
protected |
simple "get" method for the service
Simple 'get' method for Gaudi::Interfaces::IParticlePropertySvc service to extract the properties which satisfy some criteria >>> svc = ... # get service (Gaudi::Interfaces::IParticlePropertySvc) or vector >>> leptons = svc.get ( lambda s : s.pid().isLepton() ) # get all leptons >>> longlived = svc.get ( lambda s : s.ctau() > 0.001 ) # get longlived
Definition at line 72 of file decorators.py.
|
protected |
Comparison for ParticleProperty objects.
Definition at line 193 of file decorators.py.
|
protected |
Comparison `<` for ParticleProperty objects.
Definition at line 201 of file decorators.py.
|
protected |
Convert Gaudi.Interfaces.IParticlePropertySvc.ParticleProperties into python list.
Convert Gaudi::Interfaces::IParticlePropertySvc::ParticleProperties into python list >>> ppv = ... # get the vector >>> lst = ppv.toList () # convert it to the list
Definition at line 103 of file decorators.py.
|
protected |
convert python list into Gaudi.IParticlePropertisvc.ParticleProperties
Append the iterable sequence 'lst' to the vector of
particle properties:
>>> Vct = std.vector('const Gaudi::ParticleProperty*')
>>> lst = [ pp1 , pp2 , pp3 ]
>>> vct = Vct()
>>> vct.fromList ( lst )
Definition at line 123 of file decorators.py.
|
protected |
Print vector of particle properties in a form of table.
Print vector of particle properties in a form of table >>> print vct.asTable()
Definition at line 140 of file decorators.py.
|
protected |
Iteration over all known symbols >>> syms = ... # get the table of symbols >>> for s in syms : ... print ' help for %s :' % s , syms.symbol ( s )
Definition at line 347 of file decorators.py.
|
protected |
Get all known predefined symbols: >>> syms = ... # get the table of symbols >>> s = syms.symbols() # get the list of symbols
Definition at line 331 of file decorators.py.
|
protected |
Validate the vector of items/decays >>> vct = ... # get the vector of items/decays >>> svc = ... # get the service >>> vcs.vaildate ( svc ) # validate
Definition at line 309 of file decorators.py.
|
private |
Definition at line 245 of file decorators.py.
|
private |
Definition at line 24 of file decorators.py.
|
private |
Definition at line 206 of file decorators.py.
|
private |
decorate the attribute access for Gaudi.ParticleProperty
Definition at line 186 of file decorators.py.
|
private |
Definition at line 363 of file decorators.py.
|
private |
Definition at line 96 of file decorators.py.
|
private |
Definition at line 207 of file decorators.py.
|
private |
decorate the vector of properties
Definition at line 173 of file decorators.py.
|
private |
decorate the printout for Gaudi.ParticleProperty
decorate the printout for Gaudi.ParticleID
Definition at line 176 of file decorators.py.
|
private |
Definition at line 25 of file decorators.py.
|
protected |
Definition at line 296 of file decorators.py.
|
protected |
Definition at line 291 of file decorators.py.
|
protected |
Definition at line 328 of file decorators.py.
|
protected |
Definition at line 327 of file decorators.py.
| GaudiPartProp.decorators.all |
decorate service
Definition at line 53 of file decorators.py.
| GaudiPartProp.decorators.cpp = GaudiPython.gbl |
Definition at line 31 of file decorators.py.
| GaudiPartProp.decorators.Decay |
Definition at line 305 of file decorators.py.
| GaudiPartProp.decorators.Decays = GaudiPython.gbl.Gaudi.Decays |
Definition at line 33 of file decorators.py.
| GaudiPartProp.decorators.fromList |
decorate the vector of properties
Definition at line 170 of file decorators.py.
| GaudiPartProp.decorators.fromLst |
Definition at line 171 of file decorators.py.
| GaudiPartProp.decorators.Gaudi = GaudiPython.gbl.Gaudi |
Definition at line 34 of file decorators.py.
| GaudiPartProp.decorators.get |
decorate the vector of properties
Definition at line 94 of file decorators.py.
| GaudiPartProp.decorators.Item |
Definition at line 306 of file decorators.py.
| GaudiPartProp.decorators.Items |
Definition at line 304 of file decorators.py.
| GaudiPartProp.decorators.ParticleIDs |
define the type for std::vector<Gaudi::ParticleID>
Definition at line 249 of file decorators.py.
| GaudiPartProp.decorators.std = GaudiPython.gbl.std |
Definition at line 32 of file decorators.py.
| GaudiPartProp.decorators.Symbols = Decays.Symbols.instance() |
instance:
Definition at line 366 of file decorators.py.
| GaudiPartProp.decorators.symbols |
Definition at line 362 of file decorators.py.
| GaudiPartProp.decorators.toList |
decorate the vector of properties
Definition at line 167 of file decorators.py.
| GaudiPartProp.decorators.toLst |
Definition at line 168 of file decorators.py.
| GaudiPartProp.decorators.validate |
Definition at line 324 of file decorators.py.