BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcHitDict.cxx
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: MdcHitDict.cxx,v 1.1.1.1 2005/04/21 06:23:43 maqm Exp $
4//
5// Description:
6//
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Author(s): Steve Schaffner
12//
13//------------------------------------------------------------------------
14#include "MdcTrkRecon/MdcHitDict.h"
15#include "MdcData/MdcHit.h"
16#include "MdcTrkRecon/MdcSegUsage.h"
17
18//------------------------------------------------------------------------
19MdcHitDict::MdcHitDict() //: m_segUsage(hashFun, 1009)
20//------------------------------------------------------------------------
21{}
22
23//------------------------------------------------------------------------
25//------------------------------------------------------------------------
26{}
27
28//------------------------------------------------------------------------
29MdcSegUsage* MdcHitDict::get( const MdcHit* theHit ) const {
30 //------------------------------------------------------------------------
31 // return m_segUsage.findValue(theHit);
32 return ( *m_segUsage.find( theHit ) ).second;
33}
34
35//------------------------------------------------------------------------
36void MdcHitDict::put( MdcHit* theHit, MdcSegUsage* theAux ) {
37 //------------------------------------------------------------------------
38 // m_segUsage.insertKeyAndValue(theHit, theAux);
39 m_segUsage[theHit] = theAux;
40}
41
42//------------------------------------------------------------------------
44 //------------------------------------------------------------------------
45 m_segUsage.clear();
46}
void put(MdcHit *, MdcSegUsage *)
MdcSegUsage * get(const MdcHit *) const
void clear()
virtual ~MdcHitDict()