EDM4eic
EIC data model
|
#include <MutableMCRecoTrackParticleAssociation.h>
Public Types | |
using | object_type = MCRecoTrackParticleAssociation |
using | collection_type = MCRecoTrackParticleAssociationCollection |
Public Member Functions | |
MutableMCRecoTrackParticleAssociation () | |
default constructor | |
MutableMCRecoTrackParticleAssociation (std::uint32_t simID, std::uint32_t recID, float weight) | |
Constructor initializing all members. | |
MutableMCRecoTrackParticleAssociation (const MutableMCRecoTrackParticleAssociation &other)=default | |
copy constructor | |
MutableMCRecoTrackParticleAssociation & | operator= (MutableMCRecoTrackParticleAssociation other) |
copy-assignment operator | |
MutableMCRecoTrackParticleAssociation | clone (bool cloneRelations=true) const |
~MutableMCRecoTrackParticleAssociation ()=default | |
destructor | |
std::uint32_t | getSimID () const |
Access the Index of corresponding MCParticle (position in MCParticles array) | |
std::uint32_t | getRecID () const |
Access the Index of corresponding Track (position in Tracks array) | |
float | getWeight () const |
Access the weight of this association. | |
const edm4eic::Track | getRec () const |
Access the reference to the track. | |
const edm4hep::MCParticle | getSim () const |
Access the reference to the Monte-Carlo particle. | |
void | setSimID (std::uint32_t value) |
Set the Index of corresponding MCParticle (position in MCParticles array) | |
std::uint32_t & | getSimID () |
Get mutable reference to Index of corresponding MCParticle (position in MCParticles array) | |
std::uint32_t & | simID () |
Get reference to Index of corresponding MCParticle (position in MCParticles array) | |
void | setRecID (std::uint32_t value) |
Set the Index of corresponding Track (position in Tracks array) | |
std::uint32_t & | getRecID () |
Get mutable reference to Index of corresponding Track (position in Tracks array) | |
std::uint32_t & | recID () |
Get reference to Index of corresponding Track (position in Tracks array) | |
void | setWeight (float value) |
Set the weight of this association. | |
float & | getWeight () |
Get mutable reference to weight of this association. | |
float & | weight () |
Get reference to weight of this association. | |
void | setRec (const edm4eic::Track &value) |
Set the reference to the track. | |
void | setSim (const edm4hep::MCParticle &value) |
Set the reference to the Monte-Carlo particle. | |
bool | isAvailable () const |
check whether the object is actually available | |
void | unlink () |
disconnect from MCRecoTrackParticleAssociationObj instance | |
bool | operator== (const MutableMCRecoTrackParticleAssociation &other) const |
bool | operator== (const MCRecoTrackParticleAssociation &other) const |
bool | operator!= (const MutableMCRecoTrackParticleAssociation &other) const |
bool | operator!= (const MCRecoTrackParticleAssociation &other) const |
bool | operator< (const MutableMCRecoTrackParticleAssociation &other) const |
podio::ObjectID | id () const |
const podio::ObjectID | getObjectID () const |
Association between a Track and a MCParticle
using edm4eic::MutableMCRecoTrackParticleAssociation::collection_type = MCRecoTrackParticleAssociationCollection |
edm4eic::MutableMCRecoTrackParticleAssociation::MutableMCRecoTrackParticleAssociation | ( | ) |
default constructor
edm4eic::MutableMCRecoTrackParticleAssociation::MutableMCRecoTrackParticleAssociation | ( | std::uint32_t | simID, |
std::uint32_t | recID, | ||
float | weight ) |
Constructor initializing all members.
|
default |
copy constructor
|
default |
destructor
MutableMCRecoTrackParticleAssociation edm4eic::MutableMCRecoTrackParticleAssociation::clone | ( | bool | cloneRelations = true | ) | const |
create a mutable deep-copy of the object with identical relations if cloneRelations=false, the relations are not cloned and will be empty
const podio::ObjectID edm4eic::MutableMCRecoTrackParticleAssociation::getObjectID | ( | ) | const |
const edm4eic::Track edm4eic::MutableMCRecoTrackParticleAssociation::getRec | ( | ) | const |
Access the reference to the track.
std::uint32_t & edm4eic::MutableMCRecoTrackParticleAssociation::getRecID | ( | ) |
Get mutable reference to Index of corresponding Track (position in Tracks array)
std::uint32_t edm4eic::MutableMCRecoTrackParticleAssociation::getRecID | ( | ) | const |
Access the Index of corresponding Track (position in Tracks array)
const edm4hep::MCParticle edm4eic::MutableMCRecoTrackParticleAssociation::getSim | ( | ) | const |
Access the reference to the Monte-Carlo particle.
std::uint32_t & edm4eic::MutableMCRecoTrackParticleAssociation::getSimID | ( | ) |
Get mutable reference to Index of corresponding MCParticle (position in MCParticles array)
std::uint32_t edm4eic::MutableMCRecoTrackParticleAssociation::getSimID | ( | ) | const |
Access the Index of corresponding MCParticle (position in MCParticles array)
float & edm4eic::MutableMCRecoTrackParticleAssociation::getWeight | ( | ) |
Get mutable reference to weight of this association.
float edm4eic::MutableMCRecoTrackParticleAssociation::getWeight | ( | ) | const |
Access the weight of this association.
|
inline |
bool edm4eic::MutableMCRecoTrackParticleAssociation::isAvailable | ( | ) | const |
check whether the object is actually available
|
inline |
|
inline |
|
inline |
MutableMCRecoTrackParticleAssociation & edm4eic::MutableMCRecoTrackParticleAssociation::operator= | ( | MutableMCRecoTrackParticleAssociation | other | ) |
copy-assignment operator
bool edm4eic::MutableMCRecoTrackParticleAssociation::operator== | ( | const MCRecoTrackParticleAssociation & | other | ) | const |
|
inline |
std::uint32_t & edm4eic::MutableMCRecoTrackParticleAssociation::recID | ( | ) |
Get reference to Index of corresponding Track (position in Tracks array)
void edm4eic::MutableMCRecoTrackParticleAssociation::setRec | ( | const edm4eic::Track & | value | ) |
Set the reference to the track.
void edm4eic::MutableMCRecoTrackParticleAssociation::setRecID | ( | std::uint32_t | value | ) |
Set the Index of corresponding Track (position in Tracks array)
void edm4eic::MutableMCRecoTrackParticleAssociation::setSim | ( | const edm4hep::MCParticle & | value | ) |
Set the reference to the Monte-Carlo particle.
void edm4eic::MutableMCRecoTrackParticleAssociation::setSimID | ( | std::uint32_t | value | ) |
Set the Index of corresponding MCParticle (position in MCParticles array)
void edm4eic::MutableMCRecoTrackParticleAssociation::setWeight | ( | float | value | ) |
Set the weight of this association.
std::uint32_t & edm4eic::MutableMCRecoTrackParticleAssociation::simID | ( | ) |
Get reference to Index of corresponding MCParticle (position in MCParticles array)
|
inline |
disconnect from MCRecoTrackParticleAssociationObj instance
float & edm4eic::MutableMCRecoTrackParticleAssociation::weight | ( | ) |
Get reference to weight of this association.
|
friend |
|
friend |
|
friend |
|
friend |