EICd
EIC data model
|
#include <ReconstructedParticle.h>
Public Member Functions | |
ReconstructedParticle () | |
default constructor More... | |
ReconstructedParticle (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::Direction direction, float momentum, float energy, float mass) | |
ReconstructedParticle (ReconstructedParticleObj *obj) | |
constructor from existing ReconstructedParticleObj More... | |
ReconstructedParticle (const ReconstructedParticle &other) | |
copy constructor More... | |
ReconstructedParticle & | operator= (const ReconstructedParticle &other) |
copy-assignment operator More... | |
ReconstructedParticle | clone () const |
support cloning (deep-copy) More... | |
~ReconstructedParticle () | |
destructor More... | |
operator ConstReconstructedParticle () 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 vector [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 PID of reconstructed particle. 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... | |
const eic::Direction & | direction () const |
Access the Direction (theta/phi of this particle [mrad]) More... | |
const float & | momentum () const |
Access the particle 3-momentum magnitude [GeV]. More... | |
const float & | energy () const |
Access the Particle energy, consistent with PID assigment [GeV]. More... | |
const float & | mass () const |
Access the The mass of the particle in [GeV]. 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 vector [GeV]. More... | |
eic::VectorXYZ & | p () |
Get reference to momentum vector [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 PID of reconstructed particle. 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... | |
void | direction (eic::Direction value) |
Set the Direction (theta/phi of this particle [mrad]) More... | |
eic::Direction & | direction () |
Get reference to Direction (theta/phi of this particle [mrad]) More... | |
void | momentum (float value) |
Set the particle 3-momentum magnitude [GeV]. More... | |
void | energy (float value) |
Set the Particle energy, consistent with PID assigment [GeV]. More... | |
void | mass (float value) |
Set the The mass of the particle in [GeV]. More... | |
bool | isAvailable () const |
check whether the object is actually available More... | |
void | unlink () |
disconnect from ReconstructedParticleObj instance More... | |
bool | operator== (const ReconstructedParticle &other) const |
bool | operator== (const ConstReconstructedParticle &other) const |
bool | operator< (const ReconstructedParticle &other) const |
unsigned int | id () const |
const podio::ObjectID | getObjectID () const |
Friends | |
class | ReconstructedParticleCollection |
class | ReconstructedParticleCollectionIterator |
class | ConstReconstructedParticle |
EIC Reconstructed Particle
eic::ReconstructedParticle::ReconstructedParticle | ( | ) |
default constructor
eic::ReconstructedParticle::ReconstructedParticle | ( | 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::Direction | direction, | ||
float | momentum, | ||
float | energy, | ||
float | mass | ||
) |
eic::ReconstructedParticle::ReconstructedParticle | ( | ReconstructedParticleObj * | obj | ) |
constructor from existing ReconstructedParticleObj
eic::ReconstructedParticle::ReconstructedParticle | ( | const ReconstructedParticle & | other | ) |
copy constructor
eic::ReconstructedParticle::~ReconstructedParticle | ( | ) |
destructor
const std::int16_t & eic::ReconstructedParticle::charge | ( | ) | const |
Access the Particle charge (or sign)
void eic::ReconstructedParticle::charge | ( | std::int16_t | value | ) |
Set the Particle charge (or sign)
ReconstructedParticle eic::ReconstructedParticle::clone | ( | ) | const |
support cloning (deep-copy)
eic::Direction & eic::ReconstructedParticle::direction | ( | ) |
Get reference to Direction (theta/phi of this particle [mrad])
const eic::Direction & eic::ReconstructedParticle::direction | ( | ) | const |
Access the Direction (theta/phi of this particle [mrad])
void eic::ReconstructedParticle::direction | ( | eic::Direction | value | ) |
Set the Direction (theta/phi of this particle [mrad])
const float & eic::ReconstructedParticle::energy | ( | ) | const |
Access the Particle energy, consistent with PID assigment [GeV].
void eic::ReconstructedParticle::energy | ( | float | value | ) |
Set the Particle energy, consistent with PID assigment [GeV].
const podio::ObjectID eic::ReconstructedParticle::getObjectID | ( | ) | const |
eic::Index & eic::ReconstructedParticle::ID | ( | ) |
Get reference to Unique particle index.
const eic::Index & eic::ReconstructedParticle::ID | ( | ) | const |
Access the Unique particle index.
|
inline |
void eic::ReconstructedParticle::ID | ( | eic::Index | value | ) |
Set the Unique particle index.
bool eic::ReconstructedParticle::isAvailable | ( | ) | const |
check whether the object is actually available
const float & eic::ReconstructedParticle::mass | ( | ) | const |
Access the The mass of the particle in [GeV].
void eic::ReconstructedParticle::mass | ( | float | value | ) |
Set the The mass of the particle in [GeV].
const float & eic::ReconstructedParticle::momentum | ( | ) | const |
Access the particle 3-momentum magnitude [GeV].
void eic::ReconstructedParticle::momentum | ( | float | value | ) |
Set the particle 3-momentum magnitude [GeV].
eic::ReconstructedParticle::operator ConstReconstructedParticle | ( | ) | const |
conversion to const object
|
inline |
ReconstructedParticle & eic::ReconstructedParticle::operator= | ( | const ReconstructedParticle & | other | ) |
copy-assignment operator
bool eic::ReconstructedParticle::operator== | ( | const ConstReconstructedParticle & | other | ) | const |
|
inline |
eic::VectorXYZ & eic::ReconstructedParticle::p | ( | ) |
Get reference to momentum vector [GeV].
const eic::VectorXYZ & eic::ReconstructedParticle::p | ( | ) | const |
Access the momentum vector [GeV].
void eic::ReconstructedParticle::p | ( | eic::VectorXYZ | value | ) |
Set the momentum vector [GeV].
const std::int32_t & eic::ReconstructedParticle::pid | ( | ) | const |
Access the PID of reconstructed particle.
void eic::ReconstructedParticle::pid | ( | std::int32_t | value | ) |
Set the PID of reconstructed particle.
const std::int16_t & eic::ReconstructedParticle::status | ( | ) | const |
Access the Status code.
void eic::ReconstructedParticle::status | ( | std::int16_t | value | ) |
Set the Status code.
const float & eic::ReconstructedParticle::time | ( | ) | const |
Access the Time in [ns].
void eic::ReconstructedParticle::time | ( | float | value | ) |
Set the Time in [ns].
|
inline |
disconnect from ReconstructedParticleObj instance
eic::VectorXYZ & eic::ReconstructedParticle::v | ( | ) |
Get reference to vertex [mm].
const eic::VectorXYZ & eic::ReconstructedParticle::v | ( | ) | const |
Access the vertex [mm].
void eic::ReconstructedParticle::v | ( | eic::VectorXYZ | value | ) |
Set the vertex [mm].
eic::Weight & eic::ReconstructedParticle::weight | ( | ) |
Get reference to Particle weight, e.g. from PID algorithm [0-1].
const eic::Weight & eic::ReconstructedParticle::weight | ( | ) | const |
Access the Particle weight, e.g. from PID algorithm [0-1].
void eic::ReconstructedParticle::weight | ( | eic::Weight | value | ) |
Set the Particle weight, e.g. from PID algorithm [0-1].
|
friend |
|
friend |
|
friend |