Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrHitSetContainerv1 Class Reference

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

+ Inheritance diagram for TrkrHitSetContainerv1:
+ Collaboration diagram for TrkrHitSetContainerv1:

Public Member Functions

 TrkrHitSetContainerv1 ()=default
 
 ~TrkrHitSetContainerv1 () override
 
void Reset () override
 PHObject functions.
 
void identify (std::ostream &=std::cout) const override
 
ConstIterator addHitSet (TrkrHitSet *) override
 Add a TrkrHitSet to the container.
 
ConstIterator addHitSetSpecifyKey (const TrkrDefs::hitsetkey, TrkrHitSet *) override
 
void removeHitSet (TrkrDefs::hitsetkey) override
 preferred removal method, key is currently the hit id
 
void removeHitSet (TrkrHitSet *) override
 inefficent, use key where possible instead
 
Iterator findOrAddHitSet (TrkrDefs::hitsetkey key) override
 find or add HitSet
 
ConstRange getHitSets (const TrkrDefs::TrkrId trackerid) const override
 return all HitSets matching a given detid
 
ConstRange getHitSets (const TrkrDefs::TrkrId trackerid, const uint8_t layer) const override
 return all HitSets matching a given detid, layer
 
ConstRange getHitSets () const override
 return all HitSets
 
TrkrHitSetfindHitSet (TrkrDefs::hitsetkey key) override
 return a given HitSet based on its key
 
unsigned int size () const override
 
- Public Member Functions inherited from TrkrHitSetContainer
 ~TrkrHitSetContainer () override=default
 dtir
 
- 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 int isValid () const
 isValid returns non zero if object contains vailid data
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Private Attributes

Map m_hitmap
 

Additional Inherited Members

- Public Types inherited from TrkrHitSetContainer
using Map = std::map< TrkrDefs::hitsetkey, TrkrHitSet * >
 
using Iterator = Map::iterator
 
using ConstIterator = Map::const_iterator
 
using Range = std::pair< Iterator, Iterator >
 
using ConstRange = std::pair< ConstIterator, ConstIterator >
 
- Protected Member Functions inherited from TrkrHitSetContainer
 TrkrHitSetContainer ()=default
 ctor
 

Detailed Description

Container for TrkrHitSet objects

Definition at line 21 of file TrkrHitSetContainerv1.h.

View newest version in sPHENIX GitHub at line 21 of file TrkrHitSetContainerv1.h

Constructor & Destructor Documentation

TrkrHitSetContainerv1::TrkrHitSetContainerv1 ( )
default
TrkrHitSetContainerv1::~TrkrHitSetContainerv1 ( )
inlineoverride

Definition at line 28 of file TrkrHitSetContainerv1.h.

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

References Reset().

+ Here is the call graph for this function:

Member Function Documentation

TrkrHitSetContainerv1::ConstIterator TrkrHitSetContainerv1::addHitSet ( TrkrHitSet )
overridevirtual

Add a TrkrHitSet to the container.

Reimplemented from TrkrHitSetContainer.

Definition at line 36 of file TrkrHitSetContainerv1.cc.

View newest version in sPHENIX GitHub at line 36 of file TrkrHitSetContainerv1.cc

References addHitSetSpecifyKey(), and TrkrHitSet::getHitSetKey().

+ Here is the call graph for this function:

TrkrHitSetContainerv1::ConstIterator TrkrHitSetContainerv1::addHitSetSpecifyKey ( const TrkrDefs::hitsetkey  key,
TrkrHitSet newhit 
)
overridevirtual

Reimplemented from TrkrHitSetContainer.

Definition at line 40 of file TrkrHitSetContainerv1.cc.

View newest version in sPHENIX GitHub at line 40 of file TrkrHitSetContainerv1.cc

References m_hitmap.

Referenced by addHitSet().

+ Here is the caller graph for this function:

TrkrHitSet * TrkrHitSetContainerv1::findHitSet ( TrkrDefs::hitsetkey  )
overridevirtual

return a given HitSet based on its key

Reimplemented from TrkrHitSetContainer.

Definition at line 99 of file TrkrHitSetContainerv1.cc.

View newest version in sPHENIX GitHub at line 99 of file TrkrHitSetContainerv1.cc

References it, and m_hitmap.

TrkrHitSetContainerv1::Iterator TrkrHitSetContainerv1::findOrAddHitSet ( TrkrDefs::hitsetkey  )
overridevirtual

find or add HitSet

Reimplemented from TrkrHitSetContainer.

Definition at line 87 of file TrkrHitSetContainerv1.cc.

View newest version in sPHENIX GitHub at line 87 of file TrkrHitSetContainerv1.cc

References it, and m_hitmap.

TrkrHitSetContainerv1::ConstRange TrkrHitSetContainerv1::getHitSets ( const TrkrDefs::TrkrId  ) const
overridevirtual

return all HitSets matching a given detid

Reimplemented from TrkrHitSetContainer.

Definition at line 67 of file TrkrHitSetContainerv1.cc.

View newest version in sPHENIX GitHub at line 67 of file TrkrHitSetContainerv1.cc

References TrkrDefs::getHitSetKeyHi(), TrkrDefs::getHitSetKeyLo(), and m_hitmap.

Referenced by AnaMvtxTestBeam2019::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TrkrHitSetContainerv1::ConstRange TrkrHitSetContainerv1::getHitSets ( const TrkrDefs::TrkrId  trackerid,
const uint8_t  layer 
) const
overridevirtual

return all HitSets matching a given detid, layer

Reimplemented from TrkrHitSetContainer.

Definition at line 75 of file TrkrHitSetContainerv1.cc.

View newest version in sPHENIX GitHub at line 75 of file TrkrHitSetContainerv1.cc

References TrkrDefs::getHitSetKeyHi(), TrkrDefs::getHitSetKeyLo(), and m_hitmap.

+ Here is the call graph for this function:

TrkrHitSetContainerv1::ConstRange TrkrHitSetContainerv1::getHitSets ( ) const
overridevirtual

return all HitSets

Reimplemented from TrkrHitSetContainer.

Definition at line 83 of file TrkrHitSetContainerv1.cc.

View newest version in sPHENIX GitHub at line 83 of file TrkrHitSetContainerv1.cc

References m_hitmap.

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

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Definition at line 22 of file TrkrHitSetContainerv1.cc.

View newest version in sPHENIX GitHub at line 22 of file TrkrHitSetContainerv1.cc

References TrkrDefs::getLayer(), layer, m_hitmap, and size().

+ Here is the call graph for this function:

void TrkrHitSetContainerv1::removeHitSet ( TrkrDefs::hitsetkey  )
overridevirtual

preferred removal method, key is currently the hit id

Reimplemented from TrkrHitSetContainer.

Definition at line 52 of file TrkrHitSetContainerv1.cc.

View newest version in sPHENIX GitHub at line 52 of file TrkrHitSetContainerv1.cc

References m_hitmap.

Referenced by removeHitSet().

+ Here is the caller graph for this function:

void TrkrHitSetContainerv1::removeHitSet ( TrkrHitSet )
overridevirtual

inefficent, use key where possible instead

Reimplemented from TrkrHitSetContainer.

Definition at line 63 of file TrkrHitSetContainerv1.cc.

View newest version in sPHENIX GitHub at line 63 of file TrkrHitSetContainerv1.cc

References TrkrHitSet::getHitSetKey(), and removeHitSet().

+ Here is the call graph for this function:

void TrkrHitSetContainerv1::Reset ( )
overridevirtual

PHObject functions.

Reimplemented from TrkrHitSetContainer.

Definition at line 14 of file TrkrHitSetContainerv1.cc.

View newest version in sPHENIX GitHub at line 14 of file TrkrHitSetContainerv1.cc

References m_hitmap.

Referenced by ~TrkrHitSetContainerv1().

+ Here is the caller graph for this function:

unsigned int TrkrHitSetContainerv1::size ( void  ) const
inlineoverridevirtual

Reimplemented from TrkrHitSetContainer.

Definition at line 53 of file TrkrHitSetContainerv1.h.

View newest version in sPHENIX GitHub at line 53 of file TrkrHitSetContainerv1.h

References m_hitmap.

Referenced by identify().

+ Here is the caller graph for this function:

Member Data Documentation

Map TrkrHitSetContainerv1::m_hitmap
private

Definition at line 58 of file TrkrHitSetContainerv1.h.

View newest version in sPHENIX GitHub at line 58 of file TrkrHitSetContainerv1.h

Referenced by addHitSetSpecifyKey(), findHitSet(), findOrAddHitSet(), getHitSets(), identify(), removeHitSet(), Reset(), and size().


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