BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcHitMapGuts Class Reference

#include <MdcHitMapGuts.h>

Public Member Functions

virtual ~MdcHitMapGuts ()
 
MdcHithitWire (int lay, int wire) const
 
void addHit (MdcHit &theHit)
 
void removeHit (int lay, int wire)
 
void clear ()
 

Friends

class MdcHitMap
 

Detailed Description

Definition at line 24 of file MdcHitMapGuts.h.

Constructor & Destructor Documentation

◆ ~MdcHitMapGuts()

MdcHitMapGuts::~MdcHitMapGuts ( )
virtual

Definition at line 30 of file MdcHitMapGuts.cxx.

31{
32}

Member Function Documentation

◆ addHit()

void MdcHitMapGuts::addHit ( MdcHit theHit)

Definition at line 51 of file MdcHitMapGuts.cxx.

52{
53 _hits[theHit.layernumber()][theHit.wirenumber()] = &theHit;
54}
unsigned layernumber() const
Definition: MdcHit.h:61
unsigned wirenumber() const
Definition: MdcHit.h:62

Referenced by MdcHitMap::addHit().

◆ clear()

void MdcHitMapGuts::clear ( )

Definition at line 43 of file MdcHitMapGuts.cxx.

44{
45 for (MdcHitMap_t::iterator j = _hits.begin(); j != _hits.end(); ++j) {
46 std::fill(j->begin(),j->end(),static_cast<MdcHit *>(0));
47 }
48}
Definition: MdcHit.h:44

Referenced by MdcHitMap::clearMap().

◆ hitWire()

MdcHit * MdcHitMapGuts::hitWire ( int  lay,
int  wire 
) const
inline

Definition at line 31 of file MdcHitMapGuts.h.

31 {
32 return _hits[lay][wire];
33 }

Referenced by MdcHitMap::hitWire().

◆ removeHit()

void MdcHitMapGuts::removeHit ( int  lay,
int  wire 
)
inline

Definition at line 37 of file MdcHitMapGuts.h.

37 {
38 // could switch to () notation to avoid overhead for bounds-checking
39 _hits[lay][wire] = 0;
40 }

Referenced by MdcHitMap::removeHit().

Friends And Related Function Documentation

◆ MdcHitMap

friend class MdcHitMap
friend

Definition at line 26 of file MdcHitMapGuts.h.


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