EICd
EIC data model
eicd::MutableMCRecoParticleAssociation Class Reference

#include <MutableMCRecoParticleAssociation.h>

Public Member Functions

 MutableMCRecoParticleAssociation ()
 default constructor More...
 
 MutableMCRecoParticleAssociation (std::uint32_t simID, std::uint32_t recID, float weight)
 
 MutableMCRecoParticleAssociation (MCRecoParticleAssociationObj *obj)
 constructor from existing MCRecoParticleAssociationObj More...
 
 MutableMCRecoParticleAssociation (const MutableMCRecoParticleAssociation &other)
 copy constructor More...
 
MutableMCRecoParticleAssociationoperator= (MutableMCRecoParticleAssociation other)
 copy-assignment operator More...
 
MutableMCRecoParticleAssociation clone () const
 create a mutable deep-copy of the object with identical relations More...
 
 ~MutableMCRecoParticleAssociation ()
 destructor More...
 
 operator MCRecoParticleAssociation () const
 conversion to const object More...
 
const std::uint32_t & getSimID () const
 Access the Index of corresponding MCParticle (position in MCParticles array) More...
 
const std::uint32_t & getRecID () const
 Access the Index of corresponding ReconstructedParticle (position in ReconstructedParticles array) More...
 
const float & getWeight () const
 Access the weight of this association. More...
 
const eicd::ReconstructedParticle getRec () const
 Access the reference to the reconstructed particle. More...
 
const edm4hep::MCParticle getSim () const
 Access the reference to the Monte-Carlo particle. More...
 
void setSimID (std::uint32_t value)
 Set the Index of corresponding MCParticle (position in MCParticles array) More...
 
void setRecID (std::uint32_t value)
 Set the Index of corresponding ReconstructedParticle (position in ReconstructedParticles array) More...
 
void setWeight (float value)
 Set the weight of this association. More...
 
void setRec (eicd::ReconstructedParticle value)
 Set the reference to the reconstructed particle. More...
 
void setSim (edm4hep::MCParticle value)
 Set the reference to the Monte-Carlo particle. More...
 
bool isAvailable () const
 check whether the object is actually available More...
 
void unlink ()
 disconnect from MCRecoParticleAssociationObj instance More...
 
bool operator== (const MutableMCRecoParticleAssociation &other) const
 
bool operator== (const MCRecoParticleAssociation &other) const
 
bool operator< (const MutableMCRecoParticleAssociation &other) const
 
unsigned int 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

Constructor & Destructor Documentation

◆ MutableMCRecoParticleAssociation() [1/4]

eicd::MutableMCRecoParticleAssociation::MutableMCRecoParticleAssociation ( )

default constructor

◆ MutableMCRecoParticleAssociation() [2/4]

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

◆ MutableMCRecoParticleAssociation() [3/4]

eicd::MutableMCRecoParticleAssociation::MutableMCRecoParticleAssociation ( MCRecoParticleAssociationObj obj)

constructor from existing MCRecoParticleAssociationObj

◆ MutableMCRecoParticleAssociation() [4/4]

eicd::MutableMCRecoParticleAssociation::MutableMCRecoParticleAssociation ( const MutableMCRecoParticleAssociation other)

copy constructor

◆ ~MutableMCRecoParticleAssociation()

eicd::MutableMCRecoParticleAssociation::~MutableMCRecoParticleAssociation ( )

destructor

Member Function Documentation

◆ clone()

MutableMCRecoParticleAssociation eicd::MutableMCRecoParticleAssociation::clone ( ) const

create a mutable deep-copy of the object with identical relations

◆ getObjectID()

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

◆ getRec()

const eicd::ReconstructedParticle eicd::MutableMCRecoParticleAssociation::getRec ( ) const

Access the reference to the reconstructed particle.

◆ getRecID()

const std::uint32_t & eicd::MutableMCRecoParticleAssociation::getRecID ( ) const

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

◆ getSim()

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

Access the reference to the Monte-Carlo particle.

◆ getSimID()

const std::uint32_t & eicd::MutableMCRecoParticleAssociation::getSimID ( ) const

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

◆ getWeight()

const float & eicd::MutableMCRecoParticleAssociation::getWeight ( ) const

Access the weight of this association.

◆ id()

unsigned int eicd::MutableMCRecoParticleAssociation::id ( ) const
inline

◆ isAvailable()

bool eicd::MutableMCRecoParticleAssociation::isAvailable ( ) const

check whether the object is actually available

◆ operator MCRecoParticleAssociation()

eicd::MutableMCRecoParticleAssociation::operator MCRecoParticleAssociation ( ) const

conversion to const object

◆ operator<()

bool eicd::MutableMCRecoParticleAssociation::operator< ( const MutableMCRecoParticleAssociation other) const
inline

◆ operator=()

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

copy-assignment operator

◆ operator==() [1/2]

bool eicd::MutableMCRecoParticleAssociation::operator== ( const MCRecoParticleAssociation other) const

◆ operator==() [2/2]

bool eicd::MutableMCRecoParticleAssociation::operator== ( const MutableMCRecoParticleAssociation other) const
inline

◆ setRec()

void eicd::MutableMCRecoParticleAssociation::setRec ( eicd::ReconstructedParticle  value)

Set the reference to the reconstructed particle.

◆ setRecID()

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

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

◆ setSim()

void eicd::MutableMCRecoParticleAssociation::setSim ( edm4hep::MCParticle  value)

Set the reference to the Monte-Carlo particle.

◆ setSimID()

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

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

◆ setWeight()

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

Set the weight of this association.

◆ unlink()

void eicd::MutableMCRecoParticleAssociation::unlink ( )
inline

disconnect from MCRecoParticleAssociationObj instance

Friends And Related Function Documentation

◆ MCRecoParticleAssociation

friend class MCRecoParticleAssociation
friend

◆ MCRecoParticleAssociationCollection

◆ MCRecoParticleAssociationMutableCollectionIterator

◆ swap


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