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

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

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

+ Inheritance diagram for TrkrClusterHitAssoc:
+ Collaboration diagram for TrkrClusterHitAssoc:

Public Types

using Map = std::multimap< TrkrDefs::cluskey, TrkrDefs::hitkey >
 
using ConstIterator = Map::const_iterator
 
using ConstRange = std::pair< Map::const_iterator, Map::const_iterator >
 

Public Member Functions

void Reset () override
 Clear Event.
 
virtual void addAssoc (TrkrDefs::cluskey ckey, unsigned int hidx)=0
 Add association between cluster and hit.
 
virtual MapgetClusterMap (TrkrDefs::hitsetkey)
 get pointer to cluster-to-hit map corresponding to a given hitset id
 
virtual ConstRange getHits (TrkrDefs::cluskey)=0
 Get all the hits associated with a cluster by key.
 
virtual unsigned int size () const
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectCloneMe () const
 Virtual copy constructor.
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual void identify (std::ostream &os=std::cout) const
 
virtual int isValid () const
 isValid returns non zero if object contains vailid data
 
virtual int isValid (const float) const
 
virtual int isValid (const double) const
 
virtual int isValid (const int) const
 
virtual int isValid (const unsigned int) const
 
virtual int isImplemented (const float f) const
 
virtual int isImplemented (const double f) const
 
virtual int isImplemented (const int i) const
 
virtual int isImplemented (const unsigned int i) const
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Protected Member Functions

 TrkrClusterHitAssoc ()=default
 

Private Member Functions

 ClassDefOverride (TrkrClusterHitAssoc, 1)
 

Detailed Description

Base 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 24 of file TrkrClusterHitAssoc.h.

View newest version in sPHENIX GitHub at line 24 of file TrkrClusterHitAssoc.h

Member Typedef Documentation

using TrkrClusterHitAssoc::ConstIterator = Map::const_iterator

Definition at line 29 of file TrkrClusterHitAssoc.h.

View newest version in sPHENIX GitHub at line 29 of file TrkrClusterHitAssoc.h

using TrkrClusterHitAssoc::ConstRange = std::pair<Map::const_iterator, Map::const_iterator>

Definition at line 30 of file TrkrClusterHitAssoc.h.

View newest version in sPHENIX GitHub at line 30 of file TrkrClusterHitAssoc.h

Definition at line 28 of file TrkrClusterHitAssoc.h.

View newest version in sPHENIX GitHub at line 28 of file TrkrClusterHitAssoc.h

Constructor & Destructor Documentation

TrkrClusterHitAssoc::TrkrClusterHitAssoc ( )
protecteddefault

Member Function Documentation

virtual void TrkrClusterHitAssoc::addAssoc ( TrkrDefs::cluskey  ckey,
unsigned int  hidx 
)
pure virtual

Add association between cluster and hit.

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

Implemented in TrkrClusterHitAssocv1, TrkrClusterHitAssocv3, and TrkrClusterHitAssocv2.

Referenced by InttClusterizer::ClusterLadderCells(), and MvtxClusterizer::ClusterMvtx().

+ Here is the caller graph for this function:

TrkrClusterHitAssoc::ClassDefOverride ( TrkrClusterHitAssoc  ,
 
)
private
virtual Map* TrkrClusterHitAssoc::getClusterMap ( TrkrDefs::hitsetkey  )
inlinevirtual

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

Reimplemented in TrkrClusterHitAssocv3, and TrkrClusterHitAssocv2.

Definition at line 42 of file TrkrClusterHitAssoc.h.

View newest version in sPHENIX GitHub at line 42 of file TrkrClusterHitAssoc.h

Referenced by TpcClusterizer::process_event().

+ Here is the caller graph for this function:

void TrkrClusterHitAssoc::Reset ( )
overridevirtual

Clear Event.

Reimplemented from PHObject.

Reimplemented in TrkrClusterHitAssocv1, TrkrClusterHitAssocv3, and TrkrClusterHitAssocv2.

Definition at line 6 of file TrkrClusterHitAssoc.cc.

View newest version in sPHENIX GitHub at line 6 of file TrkrClusterHitAssoc.cc

virtual unsigned int TrkrClusterHitAssoc::size ( void  ) const
inlinevirtual

Reimplemented in TrkrClusterHitAssocv3, and TrkrClusterHitAssocv2.

Definition at line 52 of file TrkrClusterHitAssoc.h.

View newest version in sPHENIX GitHub at line 52 of file TrkrClusterHitAssoc.h


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