ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrClusterHitAssocv3 Class Reference

Class for associating clusters to the hits that went into them. More...

#include <coresoftware/blob/master/offline/packages/trackbase/TrkrClusterHitAssocv3.h>

+ Inheritance diagram for TrkrClusterHitAssocv3:
+ Collaboration diagram for TrkrClusterHitAssocv3:

Public Member Functions

 TrkrClusterHitAssocv3 ()=default
 
void Reset () override
 Clear Event.
 
void identify (std::ostream &os=std::cout) const override
 
void addAssoc (TrkrDefs::cluskey, unsigned int) override
 Add association between cluster and hit.
 
MapgetClusterMap (TrkrDefs::hitsetkey) override
 get pointer to cluster-to-hit map corresponding to a given hitset id
 
ConstRange getHits (TrkrDefs::cluskey) override
 Get all the hits associated with a cluster by key.
 
unsigned int size (void) const override
 

Private Member Functions

 ClassDefOverride (TrkrClusterHitAssocv3, 1)
 

Private Attributes

std::map< TrkrDefs::hitsetkey,
Map
m_map
 

Additional Inherited Members

- Public Types inherited from TrkrClusterHitAssoc
using Map = std::multimap< TrkrDefs::cluskey, TrkrDefs::hitkey >
 
using ConstIterator = Map::const_iterator
 
using ConstRange = std::pair< Map::const_iterator, Map::const_iterator >
 
- Protected Member Functions inherited from TrkrClusterHitAssoc
 TrkrClusterHitAssoc ()=default
 

Detailed Description

Class for associating clusters to the hits that went into them.

Store the associations between clusters and the hits that went into them.

Definition at line 25 of file TrkrClusterHitAssocv3.h.

View newest version in sPHENIX GitHub at line 25 of file TrkrClusterHitAssocv3.h

Constructor & Destructor Documentation

TrkrClusterHitAssocv3::TrkrClusterHitAssocv3 ( )
default

Member Function Documentation

void TrkrClusterHitAssocv3::addAssoc ( TrkrDefs::cluskey  ckey,
unsigned  hidx 
)
overridevirtual

Add association between cluster and hit.

Parameters
[in]ckeyCluster key
[in]hidxIndex of the hit in TrkrHitSet

Implements TrkrClusterHitAssoc.

Definition at line 44 of file TrkrClusterHitAssocv3.cc.

View newest version in sPHENIX GitHub at line 44 of file TrkrClusterHitAssocv3.cc

References TrkrDefs::getHitSetKeyFromClusKey(), and m_map.

+ Here is the call graph for this function:

TrkrClusterHitAssocv3::ClassDefOverride ( TrkrClusterHitAssocv3  ,
 
)
private
TrkrClusterHitAssocv3::Map * TrkrClusterHitAssocv3::getClusterMap ( TrkrDefs::hitsetkey  )
overridevirtual

get pointer to cluster-to-hit map corresponding to a given hitset id

Reimplemented from TrkrClusterHitAssoc.

Definition at line 57 of file TrkrClusterHitAssocv3.cc.

View newest version in sPHENIX GitHub at line 57 of file TrkrClusterHitAssocv3.cc

References m_map.

TrkrClusterHitAssocv3::ConstRange TrkrClusterHitAssocv3::getHits ( TrkrDefs::cluskey  )
overridevirtual

Get all the hits associated with a cluster by key.

Parameters
[in]ckeyCluster key
[out]Rangeover hits associated with ckey

Implements TrkrClusterHitAssoc.

Definition at line 64 of file TrkrClusterHitAssocv3.cc.

View newest version in sPHENIX GitHub at line 64 of file TrkrClusterHitAssocv3.cc

References TrkrDefs::getHitSetKeyFromClusKey(), and m_map.

+ Here is the call graph for this function:

void TrkrClusterHitAssocv3::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Definition at line 23 of file TrkrClusterHitAssocv3.cc.

View newest version in sPHENIX GitHub at line 23 of file TrkrClusterHitAssocv3.cc

References TrkrDefs::getLayer(), int(), m_map, and size().

+ Here is the call graph for this function:

void TrkrClusterHitAssocv3::Reset ( )
overridevirtual

Clear Event.

Reimplemented from TrkrClusterHitAssoc.

Definition at line 19 of file TrkrClusterHitAssocv3.cc.

View newest version in sPHENIX GitHub at line 19 of file TrkrClusterHitAssocv3.cc

References m_map.

unsigned int TrkrClusterHitAssocv3::size ( void  ) const
overridevirtual

Reimplemented from TrkrClusterHitAssoc.

Definition at line 80 of file TrkrClusterHitAssocv3.cc.

View newest version in sPHENIX GitHub at line 80 of file TrkrClusterHitAssocv3.cc

References m_map.

Referenced by identify().

+ Here is the caller graph for this function:

Member Data Documentation

std::map<TrkrDefs::hitsetkey, Map> TrkrClusterHitAssocv3::m_map
private

Definition at line 45 of file TrkrClusterHitAssocv3.h.

View newest version in sPHENIX GitHub at line 45 of file TrkrClusterHitAssocv3.h

Referenced by addAssoc(), getClusterMap(), getHits(), identify(), Reset(), and size().


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