EICd
EIC data model
eicd::MutableProtoCluster Class Reference

#include <MutableProtoCluster.h>

Public Member Functions

 MutableProtoCluster ()
 default constructor More...
 
 MutableProtoCluster (ProtoClusterObj *obj)
 constructor from existing ProtoClusterObj More...
 
 MutableProtoCluster (const MutableProtoCluster &other)
 copy constructor More...
 
MutableProtoClusteroperator= (MutableProtoCluster other)
 copy-assignment operator More...
 
MutableProtoCluster clone () const
 create a mutable deep-copy of the object with identical relations More...
 
 ~MutableProtoCluster ()
 destructor More...
 
 operator ProtoCluster () const
 conversion to const object More...
 
void addToHits (eicd::CalorimeterHit)
 
unsigned int hits_size () const
 
eicd::CalorimeterHit getHits (unsigned int) const
 
std::vector< eicd::CalorimeterHit >::const_iterator hits_begin () const
 
std::vector< eicd::CalorimeterHit >::const_iterator hits_end () const
 
podio::RelationRange< eicd::CalorimeterHitgetHits () const
 
void addToWeights (float)
 
unsigned int weights_size () const
 
float getWeights (unsigned int) const
 
std::vector< float >::const_iterator weights_begin () const
 
std::vector< float >::const_iterator weights_end () const
 
podio::RelationRange< float > getWeights () const
 
bool isAvailable () const
 check whether the object is actually available More...
 
void unlink ()
 disconnect from ProtoClusterObj instance More...
 
bool operator== (const MutableProtoCluster &other) const
 
bool operator== (const ProtoCluster &other) const
 
bool operator< (const MutableProtoCluster &other) const
 
unsigned int id () const
 
const podio::ObjectID getObjectID () const
 

Friends

class ProtoClusterCollection
 
class ProtoClusterMutableCollectionIterator
 
class ProtoCluster
 
void swap (MutableProtoCluster &a, MutableProtoCluster &b)
 

Detailed Description

Collection of hits identified by the clustering algorithm to belong together

Author
: S. Joosten

Constructor & Destructor Documentation

◆ MutableProtoCluster() [1/3]

eicd::MutableProtoCluster::MutableProtoCluster ( )

default constructor

◆ MutableProtoCluster() [2/3]

eicd::MutableProtoCluster::MutableProtoCluster ( ProtoClusterObj obj)

constructor from existing ProtoClusterObj

◆ MutableProtoCluster() [3/3]

eicd::MutableProtoCluster::MutableProtoCluster ( const MutableProtoCluster other)

copy constructor

◆ ~MutableProtoCluster()

eicd::MutableProtoCluster::~MutableProtoCluster ( )

destructor

Member Function Documentation

◆ addToHits()

void eicd::MutableProtoCluster::addToHits ( eicd::CalorimeterHit  component)

◆ addToWeights()

void eicd::MutableProtoCluster::addToWeights ( float  component)

◆ clone()

MutableProtoCluster eicd::MutableProtoCluster::clone ( ) const

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

◆ getHits() [1/2]

podio::RelationRange< eicd::CalorimeterHit > eicd::MutableProtoCluster::getHits ( ) const

◆ getHits() [2/2]

eicd::CalorimeterHit eicd::MutableProtoCluster::getHits ( unsigned int  index) const

◆ getObjectID()

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

◆ getWeights() [1/2]

podio::RelationRange< float > eicd::MutableProtoCluster::getWeights ( ) const

◆ getWeights() [2/2]

float eicd::MutableProtoCluster::getWeights ( unsigned int  index) const

◆ hits_begin()

std::vector< eicd::CalorimeterHit >::const_iterator eicd::MutableProtoCluster::hits_begin ( ) const

◆ hits_end()

std::vector< eicd::CalorimeterHit >::const_iterator eicd::MutableProtoCluster::hits_end ( ) const

◆ hits_size()

unsigned int eicd::MutableProtoCluster::hits_size ( ) const

◆ id()

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

◆ isAvailable()

bool eicd::MutableProtoCluster::isAvailable ( ) const

check whether the object is actually available

◆ operator ProtoCluster()

eicd::MutableProtoCluster::operator ProtoCluster ( ) const

conversion to const object

◆ operator<()

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

◆ operator=()

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

copy-assignment operator

◆ operator==() [1/2]

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

◆ operator==() [2/2]

bool eicd::MutableProtoCluster::operator== ( const ProtoCluster other) const

◆ unlink()

void eicd::MutableProtoCluster::unlink ( )
inline

disconnect from ProtoClusterObj instance

◆ weights_begin()

std::vector< float >::const_iterator eicd::MutableProtoCluster::weights_begin ( ) const

◆ weights_end()

std::vector< float >::const_iterator eicd::MutableProtoCluster::weights_end ( ) const

◆ weights_size()

unsigned int eicd::MutableProtoCluster::weights_size ( ) const

Friends And Related Function Documentation

◆ ProtoCluster

friend class ProtoCluster
friend

◆ ProtoClusterCollection

friend class ProtoClusterCollection
friend

◆ ProtoClusterMutableCollectionIterator

◆ swap

void swap ( MutableProtoCluster a,
MutableProtoCluster b 
)
friend

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