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

#include <MutableMCRecoTrackParticleAssociation.h>

Public Types

using object_type = MCRecoTrackParticleAssociation
 
using collection_type = MCRecoTrackParticleAssociationCollection
 

Public Member Functions

 MutableMCRecoTrackParticleAssociation ()=default
 default constructor
 
 MutableMCRecoTrackParticleAssociation (const float weight)
 Constructor initializing all members.
 
 MutableMCRecoTrackParticleAssociation (const MutableMCRecoTrackParticleAssociation &other)=default
 copy constructor
 
MutableMCRecoTrackParticleAssociationoperator= (MutableMCRecoTrackParticleAssociation other) &
 copy-assignment operator
 
MutableMCRecoTrackParticleAssociationoperator= (MutableMCRecoTrackParticleAssociation other) &&=delete
 
MutableMCRecoTrackParticleAssociation clone (bool cloneRelations=true) const
 
 ~MutableMCRecoTrackParticleAssociation ()=default
 destructor
 
float getWeight () const
 Access the weight of this association.
 
const edm4eic::Track getRec () const
 Access the reference to the track.
 
const edm4hep::MCParticle getSim () const
 Access the reference to the Monte-Carlo particle.
 
void setWeight (const float weight)
 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::Track &value)
 Set the reference to the track.
 
void setSim (const edm4hep::MCParticle &value)
 Set the reference to the Monte-Carlo particle.
 
int getSimID () const
 
int getRecID () const
 
void setSimID (int)
 
void setRecID (int)
 
bool isAvailable () const
 check whether the object is actually available
 
void unlink ()
 disconnect from MCRecoTrackParticleAssociationObj instance
 
bool operator== (const MutableMCRecoTrackParticleAssociation &other) const
 
bool operator== (const MCRecoTrackParticleAssociation &other) const
 
bool operator!= (const MutableMCRecoTrackParticleAssociation &other) const
 
bool operator!= (const MCRecoTrackParticleAssociation &other) const
 
bool operator< (const MutableMCRecoTrackParticleAssociation &other) const
 
podio::ObjectID id () const
 
const podio::ObjectID getObjectID () const
 

Friends

class MCRecoTrackParticleAssociationCollection
 
class MCRecoTrackParticleAssociationMutableCollectionIterator
 
class MCRecoTrackParticleAssociation
 
void swap (MutableMCRecoTrackParticleAssociation &a, MutableMCRecoTrackParticleAssociation &b)
 

Detailed Description

Association between a Track and a MCParticle

Author
: S. Joosten

Member Typedef Documentation

◆ collection_type

◆ object_type

Constructor & Destructor Documentation

◆ MutableMCRecoTrackParticleAssociation() [1/3]

edm4eic::MutableMCRecoTrackParticleAssociation::MutableMCRecoTrackParticleAssociation ( )
default

default constructor

◆ MutableMCRecoTrackParticleAssociation() [2/3]

edm4eic::MutableMCRecoTrackParticleAssociation::MutableMCRecoTrackParticleAssociation ( const float weight)

Constructor initializing all members.

◆ MutableMCRecoTrackParticleAssociation() [3/3]

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

copy constructor

◆ ~MutableMCRecoTrackParticleAssociation()

edm4eic::MutableMCRecoTrackParticleAssociation::~MutableMCRecoTrackParticleAssociation ( )
default

destructor

Member Function Documentation

◆ clone()

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

◆ getRec()

const edm4eic::Track edm4eic::MutableMCRecoTrackParticleAssociation::getRec ( ) const

Access the reference to the track.

◆ getRecID()

int edm4eic::MutableMCRecoTrackParticleAssociation::getRecID ( ) const
inline

◆ getSim()

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

Access the reference to the Monte-Carlo particle.

◆ getSimID()

int edm4eic::MutableMCRecoTrackParticleAssociation::getSimID ( ) const
inline

◆ getWeight() [1/2]

float & edm4eic::MutableMCRecoTrackParticleAssociation::getWeight ( )

Get mutable reference to weight of this association.

◆ getWeight() [2/2]

float edm4eic::MutableMCRecoTrackParticleAssociation::getWeight ( ) const

Access the weight of this association.

◆ id()

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

◆ isAvailable()

bool edm4eic::MutableMCRecoTrackParticleAssociation::isAvailable ( ) const

check whether the object is actually available

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ operator<()

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

◆ operator=() [1/2]

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

copy-assignment operator

◆ operator=() [2/2]

MutableMCRecoTrackParticleAssociation & edm4eic::MutableMCRecoTrackParticleAssociation::operator= ( MutableMCRecoTrackParticleAssociation other) &&
delete

◆ operator==() [1/2]

bool edm4eic::MutableMCRecoTrackParticleAssociation::operator== ( const MCRecoTrackParticleAssociation & other) const

◆ operator==() [2/2]

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

◆ setRec()

void edm4eic::MutableMCRecoTrackParticleAssociation::setRec ( const edm4eic::Track & value)

Set the reference to the track.

◆ setRecID()

void edm4eic::MutableMCRecoTrackParticleAssociation::setRecID ( int )
inline

◆ setSim()

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

Set the reference to the Monte-Carlo particle.

◆ setSimID()

void edm4eic::MutableMCRecoTrackParticleAssociation::setSimID ( int )
inline

◆ setWeight()

void edm4eic::MutableMCRecoTrackParticleAssociation::setWeight ( const float weight)

Set the weight of this association.

◆ unlink()

void edm4eic::MutableMCRecoTrackParticleAssociation::unlink ( )
inline

disconnect from MCRecoTrackParticleAssociationObj instance

◆ weight()

float & edm4eic::MutableMCRecoTrackParticleAssociation::weight ( )

Get reference to weight of this association.

Friends And Related Symbol Documentation

◆ MCRecoTrackParticleAssociation

friend class MCRecoTrackParticleAssociation
friend

◆ MCRecoTrackParticleAssociationCollection

◆ MCRecoTrackParticleAssociationMutableCollectionIterator

◆ swap


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