EDM4eic
EIC data model
Loading...
Searching...
No Matches
edm4eic::MutableMCRecoParticleAssociation Class Reference

#include <MutableMCRecoParticleAssociation.h>

Public Types

using object_type = MCRecoParticleAssociation
 
using collection_type = MCRecoParticleAssociationCollection
 

Public Member Functions

 MutableMCRecoParticleAssociation ()
 default constructor
 
 MutableMCRecoParticleAssociation (std::uint32_t simID, std::uint32_t recID, float weight)
 Constructor initializing all members.
 
 MutableMCRecoParticleAssociation (const MutableMCRecoParticleAssociation &other)=default
 copy constructor
 
MutableMCRecoParticleAssociationoperator= (MutableMCRecoParticleAssociation other)
 copy-assignment operator
 
MutableMCRecoParticleAssociation clone (bool cloneRelations=true) const
 
 ~MutableMCRecoParticleAssociation ()=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 ReconstructedParticle (position in ReconstructedParticles array)
 
float getWeight () const
 Access the weight of this association.
 
const edm4eic::ReconstructedParticle getRec () const
 Access the reference to the reconstructed particle.
 
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 ReconstructedParticle (position in ReconstructedParticles array)
 
std::uint32_t & getRecID ()
 Get mutable reference to Index of corresponding ReconstructedParticle (position in ReconstructedParticles array)
 
std::uint32_t & recID ()
 Get reference to Index of corresponding ReconstructedParticle (position in ReconstructedParticles 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::ReconstructedParticle &value)
 Set the reference to the reconstructed particle.
 
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 MCRecoParticleAssociationObj instance
 
bool operator== (const MutableMCRecoParticleAssociation &other) const
 
bool operator== (const MCRecoParticleAssociation &other) const
 
bool operator!= (const MutableMCRecoParticleAssociation &other) const
 
bool operator!= (const MCRecoParticleAssociation &other) const
 
bool operator< (const MutableMCRecoParticleAssociation &other) const
 
podio::ObjectID id () const
 
const podio::ObjectID getObjectID () const
 

Friends

class MCRecoParticleAssociationCollection
 
class MCRecoParticleAssociationMutableCollectionIterator
 
class MCRecoParticleAssociation
 
void swap (MutableMCRecoParticleAssociation &a, MutableMCRecoParticleAssociation &b)
 

Detailed Description

Used to keep track of the correspondence between MC and reconstructed particles

Author
: S. Joosten

Member Typedef Documentation

◆ collection_type

◆ object_type

Constructor & Destructor Documentation

◆ MutableMCRecoParticleAssociation() [1/3]

edm4eic::MutableMCRecoParticleAssociation::MutableMCRecoParticleAssociation ( )

default constructor

◆ MutableMCRecoParticleAssociation() [2/3]

edm4eic::MutableMCRecoParticleAssociation::MutableMCRecoParticleAssociation ( std::uint32_t simID,
std::uint32_t recID,
float weight )

Constructor initializing all members.

◆ MutableMCRecoParticleAssociation() [3/3]

edm4eic::MutableMCRecoParticleAssociation::MutableMCRecoParticleAssociation ( const MutableMCRecoParticleAssociation & other)
default

copy constructor

◆ ~MutableMCRecoParticleAssociation()

edm4eic::MutableMCRecoParticleAssociation::~MutableMCRecoParticleAssociation ( )
default

destructor

Member Function Documentation

◆ clone()

MutableMCRecoParticleAssociation edm4eic::MutableMCRecoParticleAssociation::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

◆ getObjectID()

const podio::ObjectID edm4eic::MutableMCRecoParticleAssociation::getObjectID ( ) const

◆ getRec()

const edm4eic::ReconstructedParticle edm4eic::MutableMCRecoParticleAssociation::getRec ( ) const

Access the reference to the reconstructed particle.

◆ getRecID() [1/2]

std::uint32_t & edm4eic::MutableMCRecoParticleAssociation::getRecID ( )

Get mutable reference to Index of corresponding ReconstructedParticle (position in ReconstructedParticles array)

◆ getRecID() [2/2]

std::uint32_t edm4eic::MutableMCRecoParticleAssociation::getRecID ( ) const

Access the Index of corresponding ReconstructedParticle (position in ReconstructedParticles array)

◆ getSim()

const edm4hep::MCParticle edm4eic::MutableMCRecoParticleAssociation::getSim ( ) const

Access the reference to the Monte-Carlo particle.

◆ getSimID() [1/2]

std::uint32_t & edm4eic::MutableMCRecoParticleAssociation::getSimID ( )

Get mutable reference to Index of corresponding MCParticle (position in MCParticles array)

◆ getSimID() [2/2]

std::uint32_t edm4eic::MutableMCRecoParticleAssociation::getSimID ( ) const

Access the Index of corresponding MCParticle (position in MCParticles array)

◆ getWeight() [1/2]

float & edm4eic::MutableMCRecoParticleAssociation::getWeight ( )

Get mutable reference to weight of this association.

◆ getWeight() [2/2]

float edm4eic::MutableMCRecoParticleAssociation::getWeight ( ) const

Access the weight of this association.

◆ id()

podio::ObjectID edm4eic::MutableMCRecoParticleAssociation::id ( ) const
inline

◆ isAvailable()

bool edm4eic::MutableMCRecoParticleAssociation::isAvailable ( ) const

check whether the object is actually available

◆ operator!=() [1/2]

bool edm4eic::MutableMCRecoParticleAssociation::operator!= ( const MCRecoParticleAssociation & other) const
inline

◆ operator!=() [2/2]

bool edm4eic::MutableMCRecoParticleAssociation::operator!= ( const MutableMCRecoParticleAssociation & other) const
inline

◆ operator<()

bool edm4eic::MutableMCRecoParticleAssociation::operator< ( const MutableMCRecoParticleAssociation & other) const
inline

◆ operator=()

MutableMCRecoParticleAssociation & edm4eic::MutableMCRecoParticleAssociation::operator= ( MutableMCRecoParticleAssociation other)

copy-assignment operator

◆ operator==() [1/2]

bool edm4eic::MutableMCRecoParticleAssociation::operator== ( const MCRecoParticleAssociation & other) const

◆ operator==() [2/2]

bool edm4eic::MutableMCRecoParticleAssociation::operator== ( const MutableMCRecoParticleAssociation & other) const
inline

◆ recID()

std::uint32_t & edm4eic::MutableMCRecoParticleAssociation::recID ( )

Get reference to Index of corresponding ReconstructedParticle (position in ReconstructedParticles array)

◆ setRec()

void edm4eic::MutableMCRecoParticleAssociation::setRec ( const edm4eic::ReconstructedParticle & value)

Set the reference to the reconstructed particle.

◆ setRecID()

void edm4eic::MutableMCRecoParticleAssociation::setRecID ( std::uint32_t value)

Set the Index of corresponding ReconstructedParticle (position in ReconstructedParticles array)

◆ setSim()

void edm4eic::MutableMCRecoParticleAssociation::setSim ( const edm4hep::MCParticle & value)

Set the reference to the Monte-Carlo particle.

◆ setSimID()

void edm4eic::MutableMCRecoParticleAssociation::setSimID ( std::uint32_t value)

Set the Index of corresponding MCParticle (position in MCParticles array)

◆ setWeight()

void edm4eic::MutableMCRecoParticleAssociation::setWeight ( float value)

Set the weight of this association.

◆ simID()

std::uint32_t & edm4eic::MutableMCRecoParticleAssociation::simID ( )

Get reference to Index of corresponding MCParticle (position in MCParticles array)

◆ unlink()

void edm4eic::MutableMCRecoParticleAssociation::unlink ( )
inline

disconnect from MCRecoParticleAssociationObj instance

◆ weight()

float & edm4eic::MutableMCRecoParticleAssociation::weight ( )

Get reference to weight of this association.

Friends And Related Symbol Documentation

◆ MCRecoParticleAssociation

friend class MCRecoParticleAssociation
friend

◆ MCRecoParticleAssociationCollection

◆ MCRecoParticleAssociationMutableCollectionIterator

◆ swap


The documentation for this class was generated from the following files: