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

#include <MCRecoParticleAssociation.h>

Public Types

using mutable_type = MutableMCRecoParticleAssociation
 
using collection_type = MCRecoParticleAssociationCollection
 

Public Member Functions

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

Static Public Member Functions

static MCRecoParticleAssociation makeEmpty ()
 

Friends

class MutableMCRecoParticleAssociation
 
class MCRecoParticleAssociationCollection
 
class edm4eic::MCRecoParticleAssociationCollectionData
 
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

Member Typedef Documentation

◆ collection_type

◆ mutable_type

Constructor & Destructor Documentation

◆ MCRecoParticleAssociation() [1/3]

edm4eic::MCRecoParticleAssociation::MCRecoParticleAssociation ( )

default constructor

◆ MCRecoParticleAssociation() [2/3]

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

Constructor initializing all members.

◆ MCRecoParticleAssociation() [3/3]

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

copy constructor

◆ ~MCRecoParticleAssociation()

edm4eic::MCRecoParticleAssociation::~MCRecoParticleAssociation ( )
default

destructor

Member Function Documentation

◆ clone()

MutableMCRecoParticleAssociation edm4eic::MCRecoParticleAssociation::clone ( ) const

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

◆ getObjectID()

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

◆ getRec()

const edm4eic::ReconstructedParticle edm4eic::MCRecoParticleAssociation::getRec ( ) const

Access the reference to the reconstructed particle.

◆ getRecID()

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

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

◆ getSim()

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

Access the reference to the Monte-Carlo particle.

◆ getSimID()

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

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

◆ getWeight()

float edm4eic::MCRecoParticleAssociation::getWeight ( ) const

Access the weight of this association.

◆ id()

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

◆ isAvailable()

bool edm4eic::MCRecoParticleAssociation::isAvailable ( ) const

check whether the object is actually available

◆ makeEmpty()

MCRecoParticleAssociation edm4eic::MCRecoParticleAssociation::makeEmpty ( )
static

◆ operator<()

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

◆ operator=()

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

copy-assignment operator

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ unlink()

void edm4eic::MCRecoParticleAssociation::unlink ( )
inline

disconnect from MCRecoParticleAssociationObj instance

Friends And Related Symbol Documentation

◆ edm4eic::MCRecoParticleAssociationCollectionData

◆ 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: