BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcData/MdcData-00-01-27/MdcData/MdcHitMap.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: MdcHitMap.h,v 1.3 2009/09/22 06:28:08 zhangy Exp $
4//
5// Description:
6// Holds map of (layer,wire) -> MdcHit*. To avoid time wasted in
7// building the map, its guts are implemented as a singleton class
8// (MdcHitMapGuts); a MdcHitMap can be created, stored in AbsEvent, and
9// destroyed every event, but the underlying guts remain the same (they are
10// cleared every time an instance is requested). Or maybe I did it this way
11// because I'm bored today.
12//
13// Environment:
14// Software developed for the BaBar Detector at the SLAC B-Factory.
15//
16// Author(s): Steve Schaffner
17//
18//------------------------------------------------------------------------
19#ifndef MDCHITMAP_HH
20#define MDCHITMAP_HH
21
22#include "MdcData/MdcHitMapGuts.h"
23#include "GaudiKernel/DataObject.h"
24class MdcHit;
25class MdcDetector;
26
27// Class interface //
28class MdcHitMap : public DataObject {
29
30public:
32 virtual ~MdcHitMap();
33
34 MdcHit* hitWire(int lay, int wire) const {return _guts->hitWire(lay, wire);}
35 void addHit(MdcHit& theHit) { _guts->addHit(theHit);}
36 void removeHit(int lay, int wire) { _guts->removeHit(lay, wire); }
37 void clearMap() { _guts->clear(); }
38
39private:
40 MdcHitMapGuts* _guts;
41
42 // Preempt
43 MdcHitMap& operator= (const MdcHitMap&);
44 MdcHitMap(const MdcHitMap &);
45};
46
47#endif
MdcHit * hitWire(int lay, int wire) const
void addHit(MdcHit &theHit)
MdcHitMap(const MdcDetector &)
virtual ~MdcHitMap()