The Gaudi Framework
master (37c0b60a)
|
Functions | |
size_t | index (const Gaudi::ParticleProperty *property, const Gaudi::Interfaces::IParticlePropertySvc *service) |
helper utility for mapping of Gaudi::ParticleProperty object into non-negative integral sequential identifier More... | |
size_t | index (const Gaudi::ParticleID &pid, const Gaudi::Interfaces::IParticlePropertySvc *service) |
helper utility for mapping of Gaudi::ParticleID object into non-negative integral sequential identifier More... | |
const Gaudi::ParticleProperty * | particle (const size_t index, const Gaudi::Interfaces::IParticlePropertySvc *service) |
the inverse mapping of the integer sequential number onto Gaudi::ParticleID object More... | |
const Gaudi::ParticleID | particleID (const size_t index, const Gaudi::Interfaces::IParticlePropertySvc *service) |
the inverse mapping of the integer sequential number onto Gaudi::ParticleID object More... | |
const Gaudi::ParticleProperty * | byPythiaID (const int pythia, const Gaudi::Interfaces::IParticlePropertySvc *svc) |
mapping by pythiaID More... | |
const Gaudi::ParticleProperty * | byEvtGenName (const std::string &evtGen, const Gaudi::Interfaces::IParticlePropertySvc *svc) |
mapping by EvtGen-name More... | |
template<class INPUT , class PREDICATE , class OUTPUT > | |
OUTPUT | get (INPUT first, INPUT last, const PREDICATE &cut, OUTPUT output) |
get all particle properties which satisfy the certain criteria More... | |
template<class PREDICATE , class OUTPUT > | |
OUTPUT | get (const Gaudi::Interfaces::IParticlePropertySvc *service, const PREDICATE &cut, OUTPUT output) |
get all particle properties which satisfy the certain criteria More... | |
Gaudi::Interfaces::IParticlePropertySvc::ParticleProperties | allProperties (const Gaudi::Interfaces::IParticlePropertySvc *service) |
get all the properties at once More... | |
GAUDI_API std::ostream & | printAsTable_ (const std::vector< const Gaudi::ParticleProperty * > &particles, std::ostream &stream, const Gaudi::Interfaces::IParticlePropertySvc *service=0) |
print a list of properties in a form of the table More... | |
GAUDI_API std::string | printAsTable (const std::vector< const Gaudi::ParticleProperty * > &particles, const Gaudi::Interfaces::IParticlePropertySvc *service=0) |
print a list of properties in a form of the table More... | |
GAUDI_API MsgStream & | printAsTable (const std::vector< const Gaudi::ParticleProperty * > &particles, MsgStream &stream, const Gaudi::Interfaces::IParticlePropertySvc *service=0) |
print a list of properties in a form of the table More... | |
GAUDI_API std::ostream & | printAsTable_ (const std::vector< Gaudi::ParticleID > &particles, std::ostream &stream, const Gaudi::Interfaces::IParticlePropertySvc *service=0) |
print properties in a form of the table More... | |
template<class C_ , class A_ > | |
std::ostream & | printAsTable_ (const std::set< Gaudi::ParticleID, C_, A_ > &particles, std::ostream &stream, const Gaudi::Interfaces::IParticlePropertySvc *service=0) |
GAUDI_API std::string | printAsTable (const std::vector< Gaudi::ParticleID > &particles, const Gaudi::Interfaces::IParticlePropertySvc *service=0) |
print properties in a form of the table More... | |
template<class C_ , class A_ > | |
std::string | printAsTable (const std::set< Gaudi::ParticleID, C_, A_ > &particles, const Gaudi::Interfaces::IParticlePropertySvc *service=0) |
GAUDI_API MsgStream & | printAsTable (const std::vector< Gaudi::ParticleID > &particles, MsgStream &stream, const Gaudi::Interfaces::IParticlePropertySvc *service=0) |
print properties in a form of the table More... | |
template<class C_ , class A_ > | |
MsgStream & | printAsTable (const std::set< Gaudi::ParticleID, C_, A_ > &particles, MsgStream &stream, const Gaudi::Interfaces::IParticlePropertySvc *service=0) |
Gaudi::Interfaces::IParticlePropertySvc::ParticleProperties Gaudi::ParticleProperties::allProperties | ( | const Gaudi::Interfaces::IParticlePropertySvc * | service | ) |
get all the properties at once
Definition at line 201 of file IParticlePropertySvc.cpp.
const Gaudi::ParticleProperty * Gaudi::ParticleProperties::byEvtGenName | ( | const std::string & | evtGen, |
const Gaudi::Interfaces::IParticlePropertySvc * | svc | ||
) |
mapping by EvtGen-name
evtGen | the particle naem in EvtGen-generator |
svc | pointer to particle property service |
Definition at line 180 of file IParticlePropertySvc.cpp.
const Gaudi::ParticleProperty * Gaudi::ParticleProperties::byPythiaID | ( | const int | pythia, |
const Gaudi::Interfaces::IParticlePropertySvc * | svc | ||
) |
mapping by pythiaID
pythia | pythia identifier |
svc | pointer to particle property service |
Definition at line 144 of file IParticlePropertySvc.cpp.
OUTPUT Gaudi::ParticleProperties::get | ( | const Gaudi::Interfaces::IParticlePropertySvc * | service, |
const PREDICATE & | cut, | ||
OUTPUT | output | ||
) |
get all particle properties which satisfy the certain criteria
e.g. select all particles with 'invalid' Pythia ID = 0 :
or select all particles with 'invalid' EvtGen = "unknown" :
Select all leptons:
first | begin-iterator of input sequence of particle properties |
end | end-iterator of input sequence of particle properties |
cut | the predicate |
output | the output iterator |
Definition at line 476 of file IParticlePropertySvc.h.
OUTPUT Gaudi::ParticleProperties::get | ( | INPUT | first, |
INPUT | last, | ||
const PREDICATE & | cut, | ||
OUTPUT | output | ||
) |
get all particle properties which satisfy the certain criteria
e.g. select all particles with 'invalid' Pythia ID = 0 :
or select all particles with 'invalid' EvtGen = "unknown" :
select leptons:
Essentially it is just a missing std::copy_if
STL-algorithm
first | begin-iterator of input sequence of particle properties |
last | end-iterator of input sequence of particle properties |
cut | the predicate |
output | the output iterator |
Definition at line 388 of file IParticlePropertySvc.h.
size_t Gaudi::ParticleProperties::index | ( | const Gaudi::ParticleID & | pid, |
const Gaudi::Interfaces::IParticlePropertySvc * | service | ||
) |
helper utility for mapping of Gaudi::ParticleID object into non-negative integral sequential identifier
This appears to be useful operation, but since it is "pure technical" it does not appear as interface method.
For invalid/missing PID and/or service 0
is returned. The valid result is always satisfy the condition: index <= service->size()
pid | the object to be mapped |
service | the service |
Definition at line 67 of file IParticlePropertySvc.cpp.
size_t Gaudi::ParticleProperties::index | ( | const Gaudi::ParticleProperty * | property, |
const Gaudi::Interfaces::IParticlePropertySvc * | service | ||
) |
helper utility for mapping of Gaudi::ParticleProperty object into non-negative integral sequential identifier
This appears to be useful operation, but since it is "pure technical" it does not appear as interface method.
For invalid/missing property and/or service 0
is returned. The valid result is always satisfy the condition: index <= service->size()
property | the property to be mapped |
service | the service |
Definition at line 39 of file IParticlePropertySvc.cpp.
const Gaudi::ParticleProperty * Gaudi::ParticleProperties::particle | ( | const size_t | index, |
const Gaudi::Interfaces::IParticlePropertySvc * | service | ||
) |
the inverse mapping of the integer sequential number onto Gaudi::ParticleID object
This appears to be useful operation, but since it is "pure technical" it does not appear as interface method.
For invalid/missing PID and/or service NULL
is returned.
pid | the object to be mapped |
service | the service |
Definition at line 90 of file IParticlePropertySvc.cpp.
const Gaudi::ParticleID Gaudi::ParticleProperties::particleID | ( | const size_t | index, |
const Gaudi::Interfaces::IParticlePropertySvc * | service | ||
) |
the inverse mapping of the integer sequential number onto Gaudi::ParticleID object
This appears to be useful operation, but since it is "pure technical" it does not appear as interface method.
For invalid/missing index and/or service Gaudi::ParticleID()
is returned.
pid | the object to be mapped |
service | the service |
Definition at line 117 of file IParticlePropertySvc.cpp.
|
inline |
Definition at line 376 of file ParticleProperty.h.
|
inline |
Definition at line 394 of file ParticleProperty.h.
std::string Gaudi::ParticleProperties::printAsTable | ( | const std::vector< const Gaudi::ParticleProperty * > & | particles, |
const Gaudi::Interfaces::IParticlePropertySvc * | service = 0 |
||
) |
print a list of properties in a form of the table
The utility is easy to use in conjunction with Gaudi::ParticleProperties:;get utilities: e.g. get all leptons from the service and print them as table:
particles | the list of particle properties |
service | the service to extract global information |
Definition at line 319 of file ParticleProperty.cpp.
MsgStream & Gaudi::ParticleProperties::printAsTable | ( | const std::vector< const Gaudi::ParticleProperty * > & | particles, |
MsgStream & | stream, | ||
const Gaudi::Interfaces::IParticlePropertySvc * | service = 0 |
||
) |
print a list of properties in a form of the table
The utility is easy to use in conjunction with Gaudi::ParticleProperties:;get utilities: e.g. get all leptons from the service and print them as table:
particles | the list of particle properties |
stream | the reference to the output stream |
service | the service to extract global information |
Definition at line 333 of file ParticleProperty.cpp.
std::string Gaudi::ParticleProperties::printAsTable | ( | const std::vector< Gaudi::ParticleID > & | particles, |
const Gaudi::Interfaces::IParticlePropertySvc * | service = 0 |
||
) |
print properties in a form of the table
particles | (INPUT) list of particles |
service | (INPUT) pointer to particle property service |
Definition at line 393 of file ParticleProperty.cpp.
MsgStream & Gaudi::ParticleProperties::printAsTable | ( | const std::vector< Gaudi::ParticleID > & | particles, |
MsgStream & | stream, | ||
const Gaudi::Interfaces::IParticlePropertySvc * | service = 0 |
||
) |
print properties in a form of the table
particles | (INPUT) list of particles |
stream | (UPDATE) the stream |
service | (INPUT) pointer to particle property service |
Definition at line 381 of file ParticleProperty.cpp.
|
inline |
Definition at line 359 of file ParticleProperty.h.
std::ostream & Gaudi::ParticleProperties::printAsTable_ | ( | const std::vector< const Gaudi::ParticleProperty * > & | particles, |
std::ostream & | stream, | ||
const Gaudi::Interfaces::IParticlePropertySvc * | service = 0 |
||
) |
print a list of properties in a form of the table
The utility is easy to use in conjunction with Gaudi::ParticleProperties:;get utilities: e.g. get all leptons from the service and print them as table:
particles | the list of particle properties |
stream | the reference to the output stream |
service | the service to extract global information |
Definition at line 173 of file ParticleProperty.cpp.
std::ostream & Gaudi::ParticleProperties::printAsTable_ | ( | const std::vector< Gaudi::ParticleID > & | particles, |
std::ostream & | stream, | ||
const Gaudi::Interfaces::IParticlePropertySvc * | service = 0 |
||
) |
print properties in a form of the table
particles | (INPUT) list of particles |
stream | (UPDATE) the stream |
service | (INPUT) pointer to particle property service |
Definition at line 358 of file ParticleProperty.cpp.