ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Container for storing TrkrHit's. More...
#include <coresoftware/blob/master/offline/packages/trackbase/TrkrHitSet.h>
Public Types | |
using | Map = std::map< TrkrDefs::hitkey, TrkrHit * > |
using | ConstIterator = Map::const_iterator |
using | ConstRange = std::pair< ConstIterator, ConstIterator > |
Public Member Functions | |
void | identify (std::ostream &=std::cout) const override |
TObject functions. | |
void | Reset () override |
Clear Event. | |
virtual void | setHitSetKey (const TrkrDefs::hitsetkey) |
Set the key for this object. | |
virtual TrkrDefs::hitsetkey | getHitSetKey () const |
Get the key for this object. | |
virtual ConstIterator | addHitSpecificKey (const TrkrDefs::hitkey, TrkrHit *) |
Add a hit to this container using a specific key. | |
virtual void | removeHit (TrkrDefs::hitkey) |
Remove a hit using its key. | |
virtual TrkrHit * | getHit (const TrkrDefs::hitkey) const |
Get a specific hit based on its index. | |
virtual ConstRange | getHits () const |
Get all hits. | |
virtual unsigned int | size () const |
Get the number of hits stored. | |
Public Member Functions inherited from PHObject | |
PHObject () | |
ctor | |
~PHObject () override | |
dtor | |
virtual PHObject * | CloneMe () const |
Virtual copy constructor. | |
virtual PHObject * | clone () const final |
PHObject * | Clone (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 | 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 | |
TrkrHitSet ()=default | |
ctor, not to be called | |
Private Member Functions | |
ClassDefOverride (TrkrHitSet, 1) | |
Container for storing TrkrHit's.
Container object which stores a set of TrkrHit objects. A single TrkrHitSet is meant to represent a geometric detector object which bounds clustering. Therefore, a TrkrHitSet should contain all TrkrHits which could belong the the same cluster.
Definition at line 29 of file TrkrHitSet.h.
View newest version in sPHENIX GitHub at line 29 of file TrkrHitSet.h
using TrkrHitSet::ConstIterator = Map::const_iterator |
Definition at line 34 of file TrkrHitSet.h.
View newest version in sPHENIX GitHub at line 34 of file TrkrHitSet.h
using TrkrHitSet::ConstRange = std::pair<ConstIterator, ConstIterator> |
Definition at line 35 of file TrkrHitSet.h.
View newest version in sPHENIX GitHub at line 35 of file TrkrHitSet.h
using TrkrHitSet::Map = std::map<TrkrDefs::hitkey, TrkrHit*> |
Definition at line 33 of file TrkrHitSet.h.
View newest version in sPHENIX GitHub at line 33 of file TrkrHitSet.h
|
protecteddefault |
ctor, not to be called
|
virtual |
Add a hit to this container using a specific key.
[in] | key | Hit key |
[in] | hit | Hit to be added. |
NOTE: This TrkrHitSet takes ownership of the passed TrkrHit pointer and will delete it in the Reset() method.
Reimplemented in TrkrHitSetv1.
Definition at line 15 of file TrkrHitSet.cc.
View newest version in sPHENIX GitHub at line 15 of file TrkrHitSet.cc
|
private |
|
inlinevirtual |
Get a specific hit based on its index.
key | of the desired hit | |
[out] | Pointer | to the desired hit. nullptr if no hit. |
Get a desired hit based on its key.
Reimplemented in TrkrHitSetv1.
Definition at line 88 of file TrkrHitSet.h.
View newest version in sPHENIX GitHub at line 88 of file TrkrHitSet.h
Referenced by SvtxHitEval::all_truth_hits().
|
virtual |
Get all hits.
[out] | Pair | of iterator to vector begin and end |
Reimplemented in TrkrHitSetv1.
Definition at line 19 of file TrkrHitSet.cc.
View newest version in sPHENIX GitHub at line 19 of file TrkrHitSet.cc
Referenced by InttClusterizer::ClusterLadderCells(), MvtxClusterizer::ClusterMvtx(), PHG4TpcDigitizer::DigitizeCylinderCells(), PHG4InttDigitizer::DigitizeLadderCells(), PHG4MvtxDigitizer::DigitizeMvtxLadderCells(), QAG4SimulationMicromegas::evaluate_hits(), SvtxEvaluator::fillOutputNtuples(), PHG4MicromegasDigitizer::process_event(), PHG4TpcPadBaselineShift::process_event(), MicromegasClusterizer::process_event(), PHG4TpcElectronDrift::process_event(), and DumpTrkrHitSetContainer::process_Node().
|
inlinevirtual |
Get the key for this object.
[out] | object | key |
Reimplemented in TrkrHitSetv1.
Definition at line 58 of file TrkrHitSet.h.
View newest version in sPHENIX GitHub at line 58 of file TrkrHitSet.h
Referenced by TrkrHitSetContainerv1::addHitSet(), InttClusterizer::ClusterLadderCells(), MvtxClusterizer::ClusterMvtx(), and TrkrHitSetContainerv1::removeHitSet().
|
inlineoverridevirtual |
TObject functions.
Reimplemented from PHObject.
Reimplemented in TrkrHitSetv1.
Definition at line 38 of file TrkrHitSet.h.
View newest version in sPHENIX GitHub at line 38 of file TrkrHitSet.h
Referenced by InttClusterizer::ClusterLadderCells(), and MvtxClusterizer::ClusterMvtx().
|
inlinevirtual |
Remove a hit using its key.
[in] | key | to be removed |
Reimplemented in TrkrHitSetv1.
Definition at line 77 of file TrkrHitSet.h.
View newest version in sPHENIX GitHub at line 77 of file TrkrHitSet.h
Referenced by PHG4TpcDigitizer::DigitizeCylinderCells(), PHG4InttDigitizer::DigitizeLadderCells(), PHG4MvtxDigitizer::DigitizeMvtxLadderCells(), and PHG4MicromegasDigitizer::process_event().
|
inlineoverridevirtual |
Clear Event.
Reimplemented from PHObject.
Reimplemented in TrkrHitSetv1.
Definition at line 42 of file TrkrHitSet.h.
View newest version in sPHENIX GitHub at line 42 of file TrkrHitSet.h
|
inlinevirtual |
Set the key for this object.
key |
Reimplemented in TrkrHitSetv1.
Definition at line 50 of file TrkrHitSet.h.
View newest version in sPHENIX GitHub at line 50 of file TrkrHitSet.h
Get the number of hits stored.
[out] | number | of hits |
Reimplemented in TrkrHitSetv1.
Definition at line 104 of file TrkrHitSet.h.
View newest version in sPHENIX GitHub at line 104 of file TrkrHitSet.h