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

#include <MutableMCRecoVertexParticleAssociation.h>

Public Types

using object_type = MCRecoVertexParticleAssociation
 
using collection_type = MCRecoVertexParticleAssociationCollection
 

Public Member Functions

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

Friends

class MCRecoVertexParticleAssociationCollection
 
class MCRecoVertexParticleAssociationMutableCollectionIterator
 
class MCRecoVertexParticleAssociation
 
void swap (MutableMCRecoVertexParticleAssociation &a, MutableMCRecoVertexParticleAssociation &b)
 

Detailed Description

Association between a Vertex and a MCParticle

Author
: S. Joosten

Member Typedef Documentation

◆ collection_type

◆ object_type

Constructor & Destructor Documentation

◆ MutableMCRecoVertexParticleAssociation() [1/3]

edm4eic::MutableMCRecoVertexParticleAssociation::MutableMCRecoVertexParticleAssociation ( )

default constructor

◆ MutableMCRecoVertexParticleAssociation() [2/3]

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

Constructor initializing all members.

◆ MutableMCRecoVertexParticleAssociation() [3/3]

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

copy constructor

◆ ~MutableMCRecoVertexParticleAssociation()

edm4eic::MutableMCRecoVertexParticleAssociation::~MutableMCRecoVertexParticleAssociation ( )
default

destructor

Member Function Documentation

◆ clone()

MutableMCRecoVertexParticleAssociation edm4eic::MutableMCRecoVertexParticleAssociation::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::MutableMCRecoVertexParticleAssociation::getObjectID ( ) const

◆ getRec()

const edm4eic::Vertex edm4eic::MutableMCRecoVertexParticleAssociation::getRec ( ) const

Access the reference to the vertex.

◆ getRecID() [1/2]

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

Get mutable reference to Index of corresponding Vertex (position in Vertices array)

◆ getRecID() [2/2]

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

Access the Index of corresponding Vertex (position in Vertices array)

◆ getSim()

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

Access the reference to the Monte-Carlo particle.

◆ getSimID() [1/2]

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

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

◆ getSimID() [2/2]

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

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

◆ getWeight() [1/2]

float & edm4eic::MutableMCRecoVertexParticleAssociation::getWeight ( )

Get mutable reference to weight of this association.

◆ getWeight() [2/2]

float edm4eic::MutableMCRecoVertexParticleAssociation::getWeight ( ) const

Access the weight of this association.

◆ id()

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

◆ isAvailable()

bool edm4eic::MutableMCRecoVertexParticleAssociation::isAvailable ( ) const

check whether the object is actually available

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ operator<()

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

◆ operator=()

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

copy-assignment operator

◆ operator==() [1/2]

bool edm4eic::MutableMCRecoVertexParticleAssociation::operator== ( const MCRecoVertexParticleAssociation & other) const

◆ operator==() [2/2]

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

◆ recID()

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

Get reference to Index of corresponding Vertex (position in Vertices array)

◆ setRec()

void edm4eic::MutableMCRecoVertexParticleAssociation::setRec ( const edm4eic::Vertex & value)

Set the reference to the vertex.

◆ setRecID()

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

Set the Index of corresponding Vertex (position in Vertices array)

◆ setSim()

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

Set the reference to the Monte-Carlo particle.

◆ setSimID()

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

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

◆ setWeight()

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

Set the weight of this association.

◆ simID()

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

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

◆ unlink()

void edm4eic::MutableMCRecoVertexParticleAssociation::unlink ( )
inline

disconnect from MCRecoVertexParticleAssociationObj instance

◆ weight()

float & edm4eic::MutableMCRecoVertexParticleAssociation::weight ( )

Get reference to weight of this association.

Friends And Related Symbol Documentation

◆ MCRecoVertexParticleAssociation

friend class MCRecoVertexParticleAssociation
friend

◆ MCRecoVertexParticleAssociationCollection

◆ MCRecoVertexParticleAssociationMutableCollectionIterator

◆ swap


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