Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/packages/trackbase/RawHitSetv1.h>
Public Member Functions | |
RawHitSetv1 ()=default | |
~RawHitSetv1 () override | |
void | identify (std::ostream &os=std::cout) const override |
TObject functions. | |
void | Reset () override |
Clear Event. | |
void | setHitSetKey (const TrkrDefs::hitsetkey key) override |
Set the key for this object. | |
TrkrDefs::hitsetkey | getHitSetKey () const override |
Get the key for this object. | |
void | addHit (RawHit *) override |
Add a hit to this container using a specific key. | |
void | setTpcPhiBins (unsigned short phibins) override |
{ | |
ConstRange | getHits () const override |
Remove a hit using its key. | |
unsigned int | size () const override |
Get the number of hits stored. | |
unsigned int | tpcphibins () const override |
Public Attributes | |
VectorTpc2D | m_tpchits |
Private Member Functions | |
ClassDefOverride (RawHitSetv1, 1) | |
Private Attributes | |
TrkrDefs::hitsetkey | m_hitSetKey = TrkrDefs::HITSETKEYMAX |
unique key for this object | |
Vector | m_hits |
storage for RawHit objects | |
Additional Inherited Members | |
Public Types inherited from RawHitSet | |
using | Vector = std::vector< RawHit * > |
using | VectorTpc2D = std::vector< std::vector< uint8_t >> |
using | ConstIterator = Vector::const_iterator |
using | ConstRange = std::pair< ConstIterator, ConstIterator > |
Protected Member Functions inherited from RawHitSet | |
RawHitSet ()=default | |
ctor, not to be called | |
Definition at line 20 of file RawHitSetv1.h.
View newest version in sPHENIX GitHub at line 20 of file RawHitSetv1.h
|
default |
|
inlineoverride |
Definition at line 25 of file RawHitSetv1.h.
View newest version in sPHENIX GitHub at line 25 of file RawHitSetv1.h
References Reset().
|
overridevirtual |
Add a hit to this container using a specific key.
NOTE: This RawHitSet takes ownership of the passed RawHit pointer and will delete it in the Reset() method.
Reimplemented from RawHitSet.
Definition at line 38 of file RawHitSetv1.cc.
View newest version in sPHENIX GitHub at line 38 of file RawHitSetv1.cc
References m_hits.
Referenced by TpcRawWriter::process_event().
|
private |
|
overridevirtual |
Remove a hit using its key.
[in] | key | to be removed 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. Get all hits
[out] | Pair | of iterator to vector begin and end |
Reimplemented from RawHitSet.
Definition at line 62 of file RawHitSetv1.cc.
View newest version in sPHENIX GitHub at line 62 of file RawHitSetv1.cc
References m_hits.
|
inlineoverridevirtual |
Get the key for this object.
[out] | object | key |
Reimplemented from RawHitSet.
Definition at line 39 of file RawHitSetv1.h.
View newest version in sPHENIX GitHub at line 39 of file RawHitSetv1.h
References m_hitSetKey.
Referenced by identify().
|
overridevirtual |
TObject functions.
Reimplemented from RawHitSet.
Definition at line 24 of file RawHitSetv1.cc.
View newest version in sPHENIX GitHub at line 24 of file RawHitSetv1.cc
References getHitSetKey(), TrkrDefs::getLayer(), TrkrDefs::getTrkrId(), layer, m_hits, and m_hitSetKey.
|
overridevirtual |
Clear Event.
Reimplemented from RawHitSet.
Definition at line 14 of file RawHitSetv1.cc.
View newest version in sPHENIX GitHub at line 14 of file RawHitSetv1.cc
References m_hits, and m_hitSetKey.
Referenced by ~RawHitSetv1().
|
inlineoverridevirtual |
Set the key for this object.
key |
Reimplemented from RawHitSet.
Definition at line 34 of file RawHitSetv1.h.
View newest version in sPHENIX GitHub at line 34 of file RawHitSetv1.h
References m_hitSetKey.
|
overridevirtual |
{
Reimplemented from RawHitSet.
Definition at line 48 of file RawHitSetv1.cc.
View newest version in sPHENIX GitHub at line 48 of file RawHitSetv1.cc
References m_tpchits.
Referenced by TpcRawWriter::process_event().
|
inlineoverridevirtual |
Get the number of hits stored.
[out] | number | of hits |
Reimplemented from RawHitSet.
Definition at line 54 of file RawHitSetv1.h.
View newest version in sPHENIX GitHub at line 54 of file RawHitSetv1.h
References m_hits.
|
inlineoverridevirtual |
Reimplemented from RawHitSet.
Definition at line 58 of file RawHitSetv1.h.
View newest version in sPHENIX GitHub at line 58 of file RawHitSetv1.h
References m_tpchits.
|
private |
storage for RawHit objects
Definition at line 69 of file RawHitSetv1.h.
View newest version in sPHENIX GitHub at line 69 of file RawHitSetv1.h
Referenced by addHit(), getHits(), identify(), Reset(), and size().
|
private |
unique key for this object
Definition at line 66 of file RawHitSetv1.h.
View newest version in sPHENIX GitHub at line 66 of file RawHitSetv1.h
Referenced by getHitSetKey(), identify(), Reset(), and setHitSetKey().
VectorTpc2D RawHitSetv1::m_tpchits |
Definition at line 62 of file RawHitSetv1.h.
View newest version in sPHENIX GitHub at line 62 of file RawHitSetv1.h
Referenced by TpcRawWriter::process_event(), setTpcPhiBins(), and tpcphibins().