EDM4eic
EIC data model
|
#include <MutableReconstructedParticle.h>
Public Types | |
using | object_type = ReconstructedParticle |
using | collection_type = ReconstructedParticleCollection |
Public Member Functions | |
MutableReconstructedParticle () | |
default constructor | |
MutableReconstructedParticle (std::int32_t type, float energy, edm4hep::Vector3f momentum, edm4hep::Vector3f referencePoint, float charge, float mass, float goodnessOfPID, edm4eic::Cov4f covMatrix, std::int32_t PDG) | |
Constructor initializing all members. | |
MutableReconstructedParticle (const MutableReconstructedParticle &other)=default | |
copy constructor | |
MutableReconstructedParticle & | operator= (MutableReconstructedParticle other) |
copy-assignment operator | |
MutableReconstructedParticle | clone () const |
create a mutable deep-copy of the object with identical relations | |
~MutableReconstructedParticle ()=default | |
destructor | |
operator ReconstructedParticle () const | |
conversion to const object | |
std::int32_t | getType () const |
Access the type of reconstructed particle. Check/set collection parameters ReconstructedParticleTypeNames and ReconstructedParticleTypeValues. | |
float | getEnergy () const |
Access the [GeV] energy of the reconstructed particle. Four momentum state is not kept consistent internally. | |
const edm4hep::Vector3f & | getMomentum () const |
Access the [GeV] particle momentum. Four momentum state is not kept consistent internally. | |
const edm4hep::Vector3f & | getReferencePoint () const |
Access the [mm] reference, i.e. where the particle has been measured. | |
float | getCharge () const |
Access the charge of the reconstructed particle. | |
float | getMass () const |
Access the [GeV] mass of the reconstructed particle, set independently from four vector. Four momentum state is not kept consistent internally. | |
float | getGoodnessOfPID () const |
Access the overall goodness of the PID on a scale of [0;1]. | |
const edm4eic::Cov4f & | getCovMatrix () const |
Access the covariance matrix of the reconstructed particle 4vector (10 parameters). | |
std::int32_t | getPDG () const |
Access the PDG code for this particle. | |
const edm4eic::Vertex | getStartVertex () const |
Access the Start vertex associated to this particle. | |
const edm4hep::ParticleID | getParticleIDUsed () const |
Access the particle ID used for the kinematics of this particle. | |
void | setType (std::int32_t value) |
Set the type of reconstructed particle. Check/set collection parameters ReconstructedParticleTypeNames and ReconstructedParticleTypeValues. | |
void | setEnergy (float value) |
Set the [GeV] energy of the reconstructed particle. Four momentum state is not kept consistent internally. | |
void | setMomentum (edm4hep::Vector3f value) |
Set the [GeV] particle momentum. Four momentum state is not kept consistent internally. | |
edm4hep::Vector3f & | momentum () |
Get reference to [GeV] particle momentum. Four momentum state is not kept consistent internally. | |
void | setReferencePoint (edm4hep::Vector3f value) |
Set the [mm] reference, i.e. where the particle has been measured. | |
edm4hep::Vector3f & | referencePoint () |
Get reference to [mm] reference, i.e. where the particle has been measured. | |
void | setCharge (float value) |
Set the charge of the reconstructed particle. | |
void | setMass (float value) |
Set the [GeV] mass of the reconstructed particle, set independently from four vector. Four momentum state is not kept consistent internally. | |
void | setGoodnessOfPID (float value) |
Set the overall goodness of the PID on a scale of [0;1]. | |
void | setCovMatrix (edm4eic::Cov4f value) |
Set the covariance matrix of the reconstructed particle 4vector (10 parameters). | |
edm4eic::Cov4f & | covMatrix () |
Get reference to covariance matrix of the reconstructed particle 4vector (10 parameters). | |
void | setPDG (std::int32_t value) |
Set the PDG code for this particle. | |
void | setStartVertex (edm4eic::Vertex value) |
Set the Start vertex associated to this particle. | |
void | setParticleIDUsed (edm4hep::ParticleID value) |
Set the particle ID used for the kinematics of this particle. | |
void | addToClusters (edm4eic::Cluster) |
std::size_t | clusters_size () const |
edm4eic::Cluster | getClusters (std::size_t) const |
std::vector< edm4eic::Cluster >::const_iterator | clusters_begin () const |
std::vector< edm4eic::Cluster >::const_iterator | clusters_end () const |
podio::RelationRange< edm4eic::Cluster > | getClusters () const |
void | addToTracks (edm4eic::Track) |
std::size_t | tracks_size () const |
edm4eic::Track | getTracks (std::size_t) const |
std::vector< edm4eic::Track >::const_iterator | tracks_begin () const |
std::vector< edm4eic::Track >::const_iterator | tracks_end () const |
podio::RelationRange< edm4eic::Track > | getTracks () const |
void | addToParticles (edm4eic::ReconstructedParticle) |
std::size_t | particles_size () const |
edm4eic::ReconstructedParticle | getParticles (std::size_t) const |
std::vector< edm4eic::ReconstructedParticle >::const_iterator | particles_begin () const |
std::vector< edm4eic::ReconstructedParticle >::const_iterator | particles_end () const |
podio::RelationRange< edm4eic::ReconstructedParticle > | getParticles () const |
void | addToParticleIDs (edm4hep::ParticleID) |
std::size_t | particleIDs_size () const |
edm4hep::ParticleID | getParticleIDs (std::size_t) const |
std::vector< edm4hep::ParticleID >::const_iterator | particleIDs_begin () const |
std::vector< edm4hep::ParticleID >::const_iterator | particleIDs_end () const |
podio::RelationRange< edm4hep::ParticleID > | getParticleIDs () const |
bool | isCompound () const |
bool | isAvailable () const |
check whether the object is actually available | |
void | unlink () |
disconnect from ReconstructedParticleObj instance | |
bool | operator== (const MutableReconstructedParticle &other) const |
bool | operator== (const ReconstructedParticle &other) const |
bool | operator< (const MutableReconstructedParticle &other) const |
podio::ObjectID | id () const |
const podio::ObjectID | getObjectID () const |
Friends | |
class | ReconstructedParticleCollection |
class | ReconstructedParticleMutableCollectionIterator |
class | ReconstructedParticle |
void | swap (MutableReconstructedParticle &a, MutableReconstructedParticle &b) |
EIC Reconstructed Particle
edm4eic::MutableReconstructedParticle::MutableReconstructedParticle | ( | ) |
default constructor
edm4eic::MutableReconstructedParticle::MutableReconstructedParticle | ( | std::int32_t | type, |
float | energy, | ||
edm4hep::Vector3f | momentum, | ||
edm4hep::Vector3f | referencePoint, | ||
float | charge, | ||
float | mass, | ||
float | goodnessOfPID, | ||
edm4eic::Cov4f | covMatrix, | ||
std::int32_t | PDG ) |
Constructor initializing all members.
|
default |
copy constructor
|
default |
destructor
void edm4eic::MutableReconstructedParticle::addToClusters | ( | edm4eic::Cluster | component | ) |
void edm4eic::MutableReconstructedParticle::addToParticleIDs | ( | edm4hep::ParticleID | component | ) |
void edm4eic::MutableReconstructedParticle::addToParticles | ( | edm4eic::ReconstructedParticle | component | ) |
void edm4eic::MutableReconstructedParticle::addToTracks | ( | edm4eic::Track | component | ) |
MutableReconstructedParticle edm4eic::MutableReconstructedParticle::clone | ( | ) | const |
create a mutable deep-copy of the object with identical relations
std::vector< edm4eic::Cluster >::const_iterator edm4eic::MutableReconstructedParticle::clusters_begin | ( | ) | const |
std::vector< edm4eic::Cluster >::const_iterator edm4eic::MutableReconstructedParticle::clusters_end | ( | ) | const |
std::size_t edm4eic::MutableReconstructedParticle::clusters_size | ( | ) | const |
edm4eic::Cov4f & edm4eic::MutableReconstructedParticle::covMatrix | ( | ) |
Get reference to covariance matrix of the reconstructed particle 4vector (10 parameters).
float edm4eic::MutableReconstructedParticle::getCharge | ( | ) | const |
Access the charge of the reconstructed particle.
podio::RelationRange< edm4eic::Cluster > edm4eic::MutableReconstructedParticle::getClusters | ( | ) | const |
edm4eic::Cluster edm4eic::MutableReconstructedParticle::getClusters | ( | std::size_t | index | ) | const |
const edm4eic::Cov4f & edm4eic::MutableReconstructedParticle::getCovMatrix | ( | ) | const |
Access the covariance matrix of the reconstructed particle 4vector (10 parameters).
float edm4eic::MutableReconstructedParticle::getEnergy | ( | ) | const |
Access the [GeV] energy of the reconstructed particle. Four momentum state is not kept consistent internally.
float edm4eic::MutableReconstructedParticle::getGoodnessOfPID | ( | ) | const |
Access the overall goodness of the PID on a scale of [0;1].
float edm4eic::MutableReconstructedParticle::getMass | ( | ) | const |
Access the [GeV] mass of the reconstructed particle, set independently from four vector. Four momentum state is not kept consistent internally.
const edm4hep::Vector3f & edm4eic::MutableReconstructedParticle::getMomentum | ( | ) | const |
Access the [GeV] particle momentum. Four momentum state is not kept consistent internally.
const podio::ObjectID edm4eic::MutableReconstructedParticle::getObjectID | ( | ) | const |
podio::RelationRange< edm4hep::ParticleID > edm4eic::MutableReconstructedParticle::getParticleIDs | ( | ) | const |
edm4hep::ParticleID edm4eic::MutableReconstructedParticle::getParticleIDs | ( | std::size_t | index | ) | const |
const edm4hep::ParticleID edm4eic::MutableReconstructedParticle::getParticleIDUsed | ( | ) | const |
Access the particle ID used for the kinematics of this particle.
podio::RelationRange< edm4eic::ReconstructedParticle > edm4eic::MutableReconstructedParticle::getParticles | ( | ) | const |
edm4eic::ReconstructedParticle edm4eic::MutableReconstructedParticle::getParticles | ( | std::size_t | index | ) | const |
std::int32_t edm4eic::MutableReconstructedParticle::getPDG | ( | ) | const |
Access the PDG code for this particle.
const edm4hep::Vector3f & edm4eic::MutableReconstructedParticle::getReferencePoint | ( | ) | const |
Access the [mm] reference, i.e. where the particle has been measured.
const edm4eic::Vertex edm4eic::MutableReconstructedParticle::getStartVertex | ( | ) | const |
Access the Start vertex associated to this particle.
podio::RelationRange< edm4eic::Track > edm4eic::MutableReconstructedParticle::getTracks | ( | ) | const |
edm4eic::Track edm4eic::MutableReconstructedParticle::getTracks | ( | std::size_t | index | ) | const |
std::int32_t edm4eic::MutableReconstructedParticle::getType | ( | ) | const |
Access the type of reconstructed particle. Check/set collection parameters ReconstructedParticleTypeNames and ReconstructedParticleTypeValues.
|
inline |
bool edm4eic::MutableReconstructedParticle::isAvailable | ( | ) | const |
check whether the object is actually available
|
inline |
edm4hep::Vector3f & edm4eic::MutableReconstructedParticle::momentum | ( | ) |
Get reference to [GeV] particle momentum. Four momentum state is not kept consistent internally.
edm4eic::MutableReconstructedParticle::operator ReconstructedParticle | ( | ) | const |
conversion to const object
|
inline |
MutableReconstructedParticle & edm4eic::MutableReconstructedParticle::operator= | ( | MutableReconstructedParticle | other | ) |
copy-assignment operator
|
inline |
bool edm4eic::MutableReconstructedParticle::operator== | ( | const ReconstructedParticle & | other | ) | const |
std::vector< edm4hep::ParticleID >::const_iterator edm4eic::MutableReconstructedParticle::particleIDs_begin | ( | ) | const |
std::vector< edm4hep::ParticleID >::const_iterator edm4eic::MutableReconstructedParticle::particleIDs_end | ( | ) | const |
std::size_t edm4eic::MutableReconstructedParticle::particleIDs_size | ( | ) | const |
std::vector< edm4eic::ReconstructedParticle >::const_iterator edm4eic::MutableReconstructedParticle::particles_begin | ( | ) | const |
std::vector< edm4eic::ReconstructedParticle >::const_iterator edm4eic::MutableReconstructedParticle::particles_end | ( | ) | const |
std::size_t edm4eic::MutableReconstructedParticle::particles_size | ( | ) | const |
edm4hep::Vector3f & edm4eic::MutableReconstructedParticle::referencePoint | ( | ) |
Get reference to [mm] reference, i.e. where the particle has been measured.
void edm4eic::MutableReconstructedParticle::setCharge | ( | float | value | ) |
Set the charge of the reconstructed particle.
void edm4eic::MutableReconstructedParticle::setCovMatrix | ( | edm4eic::Cov4f | value | ) |
Set the covariance matrix of the reconstructed particle 4vector (10 parameters).
void edm4eic::MutableReconstructedParticle::setEnergy | ( | float | value | ) |
Set the [GeV] energy of the reconstructed particle. Four momentum state is not kept consistent internally.
void edm4eic::MutableReconstructedParticle::setGoodnessOfPID | ( | float | value | ) |
Set the overall goodness of the PID on a scale of [0;1].
void edm4eic::MutableReconstructedParticle::setMass | ( | float | value | ) |
Set the [GeV] mass of the reconstructed particle, set independently from four vector. Four momentum state is not kept consistent internally.
void edm4eic::MutableReconstructedParticle::setMomentum | ( | edm4hep::Vector3f | value | ) |
Set the [GeV] particle momentum. Four momentum state is not kept consistent internally.
void edm4eic::MutableReconstructedParticle::setParticleIDUsed | ( | edm4hep::ParticleID | value | ) |
Set the particle ID used for the kinematics of this particle.
void edm4eic::MutableReconstructedParticle::setPDG | ( | std::int32_t | value | ) |
Set the PDG code for this particle.
void edm4eic::MutableReconstructedParticle::setReferencePoint | ( | edm4hep::Vector3f | value | ) |
Set the [mm] reference, i.e. where the particle has been measured.
void edm4eic::MutableReconstructedParticle::setStartVertex | ( | edm4eic::Vertex | value | ) |
Set the Start vertex associated to this particle.
void edm4eic::MutableReconstructedParticle::setType | ( | std::int32_t | value | ) |
Set the type of reconstructed particle. Check/set collection parameters ReconstructedParticleTypeNames and ReconstructedParticleTypeValues.
std::vector< edm4eic::Track >::const_iterator edm4eic::MutableReconstructedParticle::tracks_begin | ( | ) | const |
std::vector< edm4eic::Track >::const_iterator edm4eic::MutableReconstructedParticle::tracks_end | ( | ) | const |
std::size_t edm4eic::MutableReconstructedParticle::tracks_size | ( | ) | const |
|
inline |
disconnect from ReconstructedParticleObj instance
|
friend |
|
friend |
|
friend |
|
friend |