49 Class iParticlePropertySvc: 'python'-twin for C++ class
51 Gaudi::Interfaces::IParticlePropertySvc
57 Constructor from the name and the service
59 iService.__init__(self, name, isvc)
65 iService.retrieveInterface(self)
66 iParticlePropertySvc.__init__(self, self.
_name, self.
_isvc)
71 Find the Particle Property by particle name or particle ID
73 >>> svc = ... # get the service
74 >>> pp1 = svc.find ( 'pi0' ) # find by name
75 >>> pp2 = svc.find ( Gaudi.ParticleID( 511 ) ) # find by Particle ID
83 def get(self, cut, asList=False):
85 Simple 'get' method for Gaudi::Interfaces::IParticlePropertySvc
86 service to extract the properties which satisfy some criteria
88 >>> svc = ... # get service (Gaudi::Interfaces::IParticlePropertySvc) or vector
89 >>> leptons = svc.get ( lambda s : s.pid().isLepton() ) # get all leptons
90 >>> longlived = svc.get ( lambda s : s.ctau() > 0.001 ) # get longlived
100 Get the begin-iterator for the sequence of particle proeprties
102 >>> svc = ... # get the service
103 >>> begin = svc.begin()
113 Get the end-iterator for the sequence of particle proeprties
115 >>> svc = ... # get the service
124 def all(self, asList=False):
126 Get all particle properties form the service
128 >>> svc = ... # get the service
129 >>> all = svc.all () # get all properties
139 Dump the particle property table
146 Get CC-conjugationfor decay -descriptor
148 >>> svc = ... # get the service
149 >>> cc = svc.cc ( 'B0 -> K- pi+' ) # get CC-conjugation
162 >>> svccpp = svc.svc ()
175 >>> svccpp = svc.service ()
183 Validate the node/decay/tree
185 >>> svc = ... # get the service
186 >>> node = ... # get the node
187 >>> sc = svc.validate ( node )
189 return obj.validate(self.
svc())
194 Make an iteration over all known particle properties:
196 >>> svc = ... # get the service
197 >>> for pp i svc : # make an iteration
213 Get the length(size) of known particle properties
222 Get the length(size) of known particle properties
228iParticlePropertySvc.ParticleIDs = Gaudi.Interfaces.IParticlePropertySvc.ParticleIDs
229iParticlePropertySvc.Decay = Gaudi.Interfaces.IParticlePropertySvc.Decay
230iParticlePropertySvc.Decays = Gaudi.Interfaces.IParticlePropertySvc.Decays
231iParticlePropertySvc.Item = Gaudi.Interfaces.IParticlePropertySvc.Item
232iParticlePropertySvc.Items = Gaudi.Interfaces.IParticlePropertySvc.Items
The abstract interface to Particle Property Service.
validate(self, obj)
validate the node/decay/tree
__len__(self)
get the size (number of known particle proeprties)
svc(self)
get the C++ service itself
service(self)
get the C++ service itself
size(self)
get the size (number of known particle proeprties)
__iter__(self)
make iteration over all known particle properties
__init__(self, name, isvc)
find(self, what)
Find the Particle Property by particle name or particle ID.
dump(self)
dump the particle property table
get(self, cut, asList=False)
get the Particle Properties by particle name or particle ID