Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MdcHitMapGuts Class Reference

#include <MdcHitMapGuts.h>

List of all members.

Public Member Functions

void addHit (MdcHit &theHit)
void addHit (MdcHit &theHit)
void clear ()
void clear ()
MdcHithitWire (int lay, int wire) const
MdcHithitWire (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 &)
MdcHitMapGutsoperator= (const MdcHitMapGuts &)
MdcHitMapGutsoperator= (const MdcHitMapGuts &)

Static Private Member Functions

MdcHitMapGutsinstance (const MdcDetector &)
MdcHitMapGutsinstance (const MdcDetector &)

Private Attributes

MdcHitMap_t _hits

Friends

class MdcHitMap


Member Typedef Documentation

typedef std::vector<std::vector< MdcHit* > > MdcHitMapGuts::MdcHitMap_t [private]
 

typedef std::vector<std::vector< MdcHit* > > MdcHitMapGuts::MdcHitMap_t [private]
 


Constructor & Destructor Documentation

MdcHitMapGuts::~MdcHitMapGuts  )  [virtual]
 

00031 {
00032 }

MdcHitMapGuts::MdcHitMapGuts const MdcDetector  )  [private]
 

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 }

MdcHitMapGuts::MdcHitMapGuts const MdcHitMapGuts  )  [private]
 

virtual MdcHitMapGuts::~MdcHitMapGuts  )  [virtual]
 

MdcHitMapGuts::MdcHitMapGuts const MdcDetector  )  [private]
 

MdcHitMapGuts::MdcHitMapGuts const MdcHitMapGuts  )  [private]
 


Member Function Documentation

void MdcHitMapGuts::addHit MdcHit theHit  ) 
 

void MdcHitMapGuts::addHit MdcHit theHit  ) 
 

00052 {
00053   _hits[theHit.layernumber()][theHit.wirenumber()] = &theHit;
00054 }

void MdcHitMapGuts::clear  ) 
 

void MdcHitMapGuts::clear  ) 
 

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 }

MdcHit* MdcHitMapGuts::hitWire int  lay,
int  wire
const [inline]
 

00031                                            {
00032       return _hits[lay][wire];
00033   }

MdcHit* MdcHitMapGuts::hitWire int  lay,
int  wire
const [inline]
 

00031                                            {
00032       return _hits[lay][wire];
00033   }

MdcHitMapGuts* MdcHitMapGuts::instance const MdcDetector  )  [static, private]
 

MdcHitMapGuts * MdcHitMapGuts::instance const MdcDetector  )  [static, private]
 

00036 {
00037   static MdcHitMapGuts theInstance(gm);
00038   theInstance.clear();
00039   return &theInstance;
00040 }

MdcHitMapGuts& MdcHitMapGuts::operator= const MdcHitMapGuts  )  [private]
 

MdcHitMapGuts& MdcHitMapGuts::operator= const MdcHitMapGuts  )  [private]
 

void MdcHitMapGuts::removeHit int  lay,
int  wire
[inline]
 

00037                                     {
00038         // could switch to () notation to avoid overhead for bounds-checking
00039         _hits[lay][wire] = 0;
00040   }

void MdcHitMapGuts::removeHit int  lay,
int  wire
[inline]
 

00037                                     {
00038         // could switch to () notation to avoid overhead for bounds-checking
00039         _hits[lay][wire] = 0;
00040   }


Friends And Related Function Documentation

MdcHitMap [friend]
 


Member Data Documentation

MdcHitMap_t MdcHitMapGuts::_hits [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:26:02 2011 for BOSS6.5.5 by  doxygen 1.3.9.1