#include <MdcHitMapGuts.h>
Public Member Functions | |
void | addHit (MdcHit &theHit) |
void | addHit (MdcHit &theHit) |
void | clear () |
void | clear () |
MdcHit * | hitWire (int lay, int wire) const |
MdcHit * | hitWire (int lay, int wire) const |
void | removeHit (int lay, int wire) |
void | removeHit (int lay, int wire) |
virtual | ~MdcHitMapGuts () |
virtual | ~MdcHitMapGuts () |
Private Types | |
typedef std::vector< std::vector< MdcHit * > > | MdcHitMap_t |
typedef std::vector< std::vector< MdcHit * > > | MdcHitMap_t |
Private Member Functions | |
MdcHitMapGuts (const MdcHitMapGuts &) | |
MdcHitMapGuts (const MdcDetector &) | |
MdcHitMapGuts (const MdcHitMapGuts &) | |
MdcHitMapGuts (const MdcDetector &) | |
MdcHitMapGuts & | operator= (const MdcHitMapGuts &) |
MdcHitMapGuts & | operator= (const MdcHitMapGuts &) |
Static Private Member Functions | |
MdcHitMapGuts * | instance (const MdcDetector &) |
MdcHitMapGuts * | instance (const MdcDetector &) |
Private Attributes | |
MdcHitMap_t | _hits |
Friends | |
class | MdcHitMap |
|
|
|
|
|
00031 { 00032 }
|
|
00021 : _hits(gm.nLayer()) 00022 { 00023 unsigned n = _hits.size(); 00024 for (unsigned l = 0; l < n; ++l) { 00025 const MdcLayer* lay = gm.Layer(l); 00026 _hits[l].resize(lay->nWires(),0); // resizes and zeroes 00027 } 00028 }
|
|
|
|
|
|
|
|
|
|
|
|
00052 { 00053 _hits[theHit.layernumber()][theHit.wirenumber()] = &theHit; 00054 }
|
|
|
|
00044 { 00045 for (MdcHitMap_t::iterator j = _hits.begin(); j != _hits.end(); ++j) { 00046 std::fill(j->begin(),j->end(),static_cast<MdcHit *>(0)); 00047 } 00048 }
|
|
00031 { 00032 return _hits[lay][wire]; 00033 }
|
|
00031 { 00032 return _hits[lay][wire]; 00033 }
|
|
|
|
00036 { 00037 static MdcHitMapGuts theInstance(gm); 00038 theInstance.clear(); 00039 return &theInstance; 00040 }
|
|
|
|
|
|
00037 { 00038 // could switch to () notation to avoid overhead for bounds-checking 00039 _hits[lay][wire] = 0; 00040 }
|
|
00037 { 00038 // could switch to () notation to avoid overhead for bounds-checking 00039 _hits[lay][wire] = 0; 00040 }
|
|
|
|
|