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

Association object for PHG4Cells contributiong to TrkrHits. More...

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

+ Inheritance diagram for TrkrHitTruthAssocv1:
+ Collaboration diagram for TrkrHitTruthAssocv1:

Public Member Functions

 TrkrHitTruthAssocv1 ()=default
 
void Reset () override
 Clear Event.
 
void identify (std::ostream &os=std::cout) const override
 
void addAssoc (const TrkrDefs::hitsetkey, const TrkrDefs::hitkey, const PHG4HitDefs::keytype) override
 Add an association between hit and cell.
 
void findOrAddAssoc (const TrkrDefs::hitsetkey, const TrkrDefs::hitkey, const PHG4HitDefs::keytype) override
 Add an association between hit and cell if it does not already exist.
 
void removeAssoc (const TrkrDefs::hitsetkey, const TrkrDefs::hitkey) override
 
void getG4Hits (const TrkrDefs::hitsetkey hitsetkey, const unsigned int hidx, MMap &temp_map) const override
 
- Public Member Functions inherited from TrkrHitTruthAssoc
virtual void getG4Hits (const TrkrDefs::hitsetkey, const unsigned int, MMap &) const
 Get cell keys associated with desired hit.
 
- 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 Member Functions

 ClassDefOverride (TrkrHitTruthAssocv1, 1)
 

Private Attributes

MMap m_map
 

Additional Inherited Members

- Public Types inherited from TrkrHitTruthAssoc
using MMap = std::multimap< TrkrDefs::hitsetkey, std::pair< TrkrDefs::hitkey, PHG4HitDefs::keytype > >
 typedefs for convenience
 
using Iterator = MMap::iterator
 
using ConstIterator = MMap::const_iterator
 
using Range = std::pair< Iterator, Iterator >
 
using ConstRange = std::pair< ConstIterator, ConstIterator >
 
- Protected Member Functions inherited from TrkrHitTruthAssoc
 TrkrHitTruthAssoc ()=default
 ctor
 

Detailed Description

Association object for PHG4Cells contributiong to TrkrHits.

Association object holding a multimap of PHG4Cells associated with a given TrkrHit

Definition at line 23 of file TrkrHitTruthAssocv1.h.

View newest version in sPHENIX GitHub at line 23 of file TrkrHitTruthAssocv1.h

Constructor & Destructor Documentation

TrkrHitTruthAssocv1::TrkrHitTruthAssocv1 ( )
default

Member Function Documentation

void TrkrHitTruthAssocv1::addAssoc ( const TrkrDefs::hitsetkey  ,
const TrkrDefs::hitkey  ,
const PHG4HitDefs::keytype   
)
overridevirtual

Add an association between hit and cell.

Parameters
[in]hsetTrkrHitSet key
[in]hidxTrkrHit index in TrkrHitSet
[in]ckeyKey for assocuated g4hit

Reimplemented from TrkrHitTruthAssoc.

Definition at line 41 of file TrkrHitTruthAssocv1.cc.

View newest version in sPHENIX GitHub at line 41 of file TrkrHitTruthAssocv1.cc

References m_map.

TrkrHitTruthAssocv1::ClassDefOverride ( TrkrHitTruthAssocv1  ,
 
)
private
void TrkrHitTruthAssocv1::findOrAddAssoc ( const TrkrDefs::hitsetkey  ,
const TrkrDefs::hitkey  ,
const PHG4HitDefs::keytype   
)
overridevirtual

Add an association between hit and cell if it does not already exist.

Parameters
[in]hsetTrkrHitSet key
[in]hidxTrkrHit index in TrkrHitSet
[in]ckeyKey for assocuated g4hit

Reimplemented from TrkrHitTruthAssoc.

Definition at line 48 of file TrkrHitTruthAssocv1.cc.

View newest version in sPHENIX GitHub at line 48 of file TrkrHitTruthAssocv1.cc

References m_map.

void TrkrHitTruthAssocv1::getG4Hits ( const TrkrDefs::hitsetkey  hitsetkey,
const unsigned int  hidx,
MMap temp_map 
) const
override

Definition at line 84 of file TrkrHitTruthAssocv1.cc.

View newest version in sPHENIX GitHub at line 84 of file TrkrHitTruthAssocv1.cc

References m_map.

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

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from TrkrHitTruthAssoc.

Definition at line 21 of file TrkrHitTruthAssocv1.cc.

View newest version in sPHENIX GitHub at line 21 of file TrkrHitTruthAssocv1.cc

References entry, TrkrDefs::getLayer(), layer, and m_map.

+ Here is the call graph for this function:

void TrkrHitTruthAssocv1::removeAssoc ( const TrkrDefs::hitsetkey  hitsetkey,
const TrkrDefs::hitkey  hitkey 
)
overridevirtual

Reimplemented from TrkrHitTruthAssoc.

Definition at line 66 of file TrkrHitTruthAssocv1.cc.

View newest version in sPHENIX GitHub at line 66 of file TrkrHitTruthAssocv1.cc

References m_map.

void TrkrHitTruthAssocv1::Reset ( )
overridevirtual

Clear Event.

Reimplemented from TrkrHitTruthAssoc.

Definition at line 17 of file TrkrHitTruthAssocv1.cc.

View newest version in sPHENIX GitHub at line 17 of file TrkrHitTruthAssocv1.cc

References m_map.

Member Data Documentation

MMap TrkrHitTruthAssocv1::m_map
private

Definition at line 44 of file TrkrHitTruthAssocv1.h.

View newest version in sPHENIX GitHub at line 44 of file TrkrHitTruthAssocv1.h

Referenced by addAssoc(), findOrAddAssoc(), getG4Hits(), identify(), removeAssoc(), and Reset().


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