EICd
EIC data model
eicd::MCRecoParticleAssociation Class Reference

#include <MCRecoParticleAssociation.h>

Public Member Functions

 MCRecoParticleAssociation ()
 default constructor More...
 
 MCRecoParticleAssociation (std::uint32_t simID, std::uint32_t recID, float weight)
 
 MCRecoParticleAssociation (MCRecoParticleAssociationObj *obj)
 constructor from existing MCRecoParticleAssociationObj More...
 
 MCRecoParticleAssociation (const MCRecoParticleAssociation &other)
 copy constructor More...
 
MCRecoParticleAssociationoperator= (MCRecoParticleAssociation other)
 copy-assignment operator More...
 
MutableMCRecoParticleAssociation clone () const
 create a mutable deep-copy of the object with identical relations More...
 
 ~MCRecoParticleAssociation ()
 destructor 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...
 
bool isAvailable () const
 check whether the object is actually available More...
 
void unlink ()
 disconnect from MCRecoParticleAssociationObj instance More...
 
bool operator== (const MCRecoParticleAssociation &other) const
 
bool operator== (const MutableMCRecoParticleAssociation &other) const
 
bool operator< (const MCRecoParticleAssociation &other) const
 
unsigned int id () const
 
const podio::ObjectID getObjectID () const
 

Friends

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

Detailed Description

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

Author
: S. Joosten

Constructor & Destructor Documentation

◆ MCRecoParticleAssociation() [1/4]

eicd::MCRecoParticleAssociation::MCRecoParticleAssociation ( )

default constructor

◆ MCRecoParticleAssociation() [2/4]

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

◆ MCRecoParticleAssociation() [3/4]

eicd::MCRecoParticleAssociation::MCRecoParticleAssociation ( MCRecoParticleAssociationObj obj)

constructor from existing MCRecoParticleAssociationObj

◆ MCRecoParticleAssociation() [4/4]

eicd::MCRecoParticleAssociation::MCRecoParticleAssociation ( const MCRecoParticleAssociation other)

copy constructor

◆ ~MCRecoParticleAssociation()

eicd::MCRecoParticleAssociation::~MCRecoParticleAssociation ( )

destructor

Member Function Documentation

◆ clone()

MutableMCRecoParticleAssociation eicd::MCRecoParticleAssociation::clone ( ) const

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

◆ getObjectID()

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

◆ getRec()

const eicd::ReconstructedParticle eicd::MCRecoParticleAssociation::getRec ( ) const

Access the reference to the reconstructed particle.

◆ getRecID()

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

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

◆ getSim()

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

Access the reference to the Monte-Carlo particle.

◆ getSimID()

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

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

◆ getWeight()

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

Access the weight of this association.

◆ id()

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

◆ isAvailable()

bool eicd::MCRecoParticleAssociation::isAvailable ( ) const

check whether the object is actually available

◆ operator<()

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

◆ operator=()

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

copy-assignment operator

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ unlink()

void eicd::MCRecoParticleAssociation::unlink ( )
inline

disconnect from MCRecoParticleAssociationObj instance

Friends And Related Function Documentation

◆ MCRecoParticleAssociationCollection

◆ MCRecoParticleAssociationCollectionIterator

◆ MutableMCRecoParticleAssociation

friend class MutableMCRecoParticleAssociation
friend

◆ swap

void swap ( MCRecoParticleAssociation a,
MCRecoParticleAssociation b 
)
friend

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