EICd
EIC data model
|
#include <BasicParticle.h>
Public Member Functions | |
BasicParticle () | |
default constructor More... | |
BasicParticle (eic::Index ID, eic::VectorXYZ p, eic::VectorXYZ v, float time, std::int32_t pid, std::int16_t status, std::int16_t charge, eic::Weight weight) | |
BasicParticle (BasicParticleObj *obj) | |
constructor from existing BasicParticleObj More... | |
BasicParticle (const BasicParticle &other) | |
copy constructor More... | |
BasicParticle & | operator= (const BasicParticle &other) |
copy-assignment operator More... | |
BasicParticle | clone () const |
support cloning (deep-copy) More... | |
~BasicParticle () | |
destructor More... | |
operator ConstBasicParticle () const | |
conversion to const object More... | |
const eic::Index & | ID () const |
Access the Unique particle index. More... | |
const eic::VectorXYZ & | p () const |
Access the momentum [GeV]. More... | |
const eic::VectorXYZ & | v () const |
Access the vertex [mm]. More... | |
const float & | time () const |
Access the Time in [ns]. More... | |
const std::int32_t & | pid () const |
Access the particle PDG code. More... | |
const std::int16_t & | status () const |
Access the Status code. More... | |
const std::int16_t & | charge () const |
Access the Particle charge (or sign) More... | |
const eic::Weight & | weight () const |
Access the Particle weight, e.g. from PID algorithm [0-1]. More... | |
void | ID (eic::Index value) |
Set the Unique particle index. More... | |
eic::Index & | ID () |
Get reference to Unique particle index. More... | |
void | p (eic::VectorXYZ value) |
Set the momentum [GeV]. More... | |
eic::VectorXYZ & | p () |
Get reference to momentum [GeV]. More... | |
void | v (eic::VectorXYZ value) |
Set the vertex [mm]. More... | |
eic::VectorXYZ & | v () |
Get reference to vertex [mm]. More... | |
void | time (float value) |
Set the Time in [ns]. More... | |
void | pid (std::int32_t value) |
Set the particle PDG code. More... | |
void | status (std::int16_t value) |
Set the Status code. More... | |
void | charge (std::int16_t value) |
Set the Particle charge (or sign) More... | |
void | weight (eic::Weight value) |
Set the Particle weight, e.g. from PID algorithm [0-1]. More... | |
eic::Weight & | weight () |
Get reference to Particle weight, e.g. from PID algorithm [0-1]. More... | |
bool | isAvailable () const |
check whether the object is actually available More... | |
void | unlink () |
disconnect from BasicParticleObj instance More... | |
bool | operator== (const BasicParticle &other) const |
bool | operator== (const ConstBasicParticle &other) const |
bool | operator< (const BasicParticle &other) const |
unsigned int | id () const |
const podio::ObjectID | getObjectID () const |
Friends | |
class | BasicParticleCollection |
class | BasicParticleCollectionIterator |
class | ConstBasicParticle |
Basic particle used internally to communicate basic particle properties.
eic::BasicParticle::BasicParticle | ( | ) |
default constructor
eic::BasicParticle::BasicParticle | ( | eic::Index | ID, |
eic::VectorXYZ | p, | ||
eic::VectorXYZ | v, | ||
float | time, | ||
std::int32_t | pid, | ||
std::int16_t | status, | ||
std::int16_t | charge, | ||
eic::Weight | weight | ||
) |
eic::BasicParticle::BasicParticle | ( | BasicParticleObj * | obj | ) |
constructor from existing BasicParticleObj
eic::BasicParticle::BasicParticle | ( | const BasicParticle & | other | ) |
copy constructor
eic::BasicParticle::~BasicParticle | ( | ) |
destructor
const std::int16_t & eic::BasicParticle::charge | ( | ) | const |
Access the Particle charge (or sign)
void eic::BasicParticle::charge | ( | std::int16_t | value | ) |
Set the Particle charge (or sign)
BasicParticle eic::BasicParticle::clone | ( | ) | const |
support cloning (deep-copy)
const podio::ObjectID eic::BasicParticle::getObjectID | ( | ) | const |
eic::Index & eic::BasicParticle::ID | ( | ) |
Get reference to Unique particle index.
const eic::Index & eic::BasicParticle::ID | ( | ) | const |
Access the Unique particle index.
|
inline |
void eic::BasicParticle::ID | ( | eic::Index | value | ) |
Set the Unique particle index.
bool eic::BasicParticle::isAvailable | ( | ) | const |
check whether the object is actually available
eic::BasicParticle::operator ConstBasicParticle | ( | ) | const |
conversion to const object
|
inline |
BasicParticle & eic::BasicParticle::operator= | ( | const BasicParticle & | other | ) |
copy-assignment operator
|
inline |
bool eic::BasicParticle::operator== | ( | const ConstBasicParticle & | other | ) | const |
eic::VectorXYZ & eic::BasicParticle::p | ( | ) |
Get reference to momentum [GeV].
const eic::VectorXYZ & eic::BasicParticle::p | ( | ) | const |
Access the momentum [GeV].
void eic::BasicParticle::p | ( | eic::VectorXYZ | value | ) |
Set the momentum [GeV].
const std::int32_t & eic::BasicParticle::pid | ( | ) | const |
Access the particle PDG code.
void eic::BasicParticle::pid | ( | std::int32_t | value | ) |
Set the particle PDG code.
const std::int16_t & eic::BasicParticle::status | ( | ) | const |
Access the Status code.
void eic::BasicParticle::status | ( | std::int16_t | value | ) |
Set the Status code.
const float & eic::BasicParticle::time | ( | ) | const |
Access the Time in [ns].
void eic::BasicParticle::time | ( | float | value | ) |
Set the Time in [ns].
|
inline |
disconnect from BasicParticleObj instance
eic::VectorXYZ & eic::BasicParticle::v | ( | ) |
Get reference to vertex [mm].
const eic::VectorXYZ & eic::BasicParticle::v | ( | ) | const |
Access the vertex [mm].
void eic::BasicParticle::v | ( | eic::VectorXYZ | value | ) |
Set the vertex [mm].
eic::Weight & eic::BasicParticle::weight | ( | ) |
Get reference to Particle weight, e.g. from PID algorithm [0-1].
const eic::Weight & eic::BasicParticle::weight | ( | ) | const |
Access the Particle weight, e.g. from PID algorithm [0-1].
void eic::BasicParticle::weight | ( | eic::Weight | value | ) |
Set the Particle weight, e.g. from PID algorithm [0-1].
|
friend |
|
friend |
|
friend |