CGEM BOSS
6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
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"
24
class
MdcHit
;
25
class
MdcDetector
;
26
27
// Class interface //
28
class
MdcHitMap
:
public
DataObject {
29
30
public
:
31
MdcHitMap
(
const
MdcDetector
&);
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
39
private
:
40
MdcHitMapGuts
* _guts;
41
42
// Preempt
43
MdcHitMap
& operator= (
const
MdcHitMap
&);
44
MdcHitMap
(
const
MdcHitMap
&);
45
};
46
47
#endif
MdcHitMapGuts.h
MdcDetector
Definition:
MdcDetector.h:20
MdcHitMapGuts
Definition:
MdcHitMapGuts.h:24
MdcHitMapGuts::hitWire
MdcHit * hitWire(int lay, int wire) const
Definition:
MdcHitMapGuts.h:31
MdcHitMapGuts::clear
void clear()
Definition:
MdcHitMapGuts.cxx:43
MdcHitMapGuts::addHit
void addHit(MdcHit &theHit)
Definition:
MdcHitMapGuts.cxx:51
MdcHitMapGuts::removeHit
void removeHit(int lay, int wire)
Definition:
MdcHitMapGuts.h:37
MdcHitMap
Definition:
MdcHitMap.h:28
MdcHitMap::addHit
void addHit(MdcHit &theHit)
Definition:
MdcHitMap.h:35
MdcHitMap::removeHit
void removeHit(int lay, int wire)
Definition:
MdcHitMap.h:36
MdcHitMap::clearMap
void clearMap()
Definition:
MdcHitMap.h:37
MdcHitMap::~MdcHitMap
virtual ~MdcHitMap()
Definition:
MdcHitMap.cxx:23
MdcHitMap::hitWire
MdcHit * hitWire(int lay, int wire) const
Definition:
MdcHitMap.h:34
MdcHit
Definition:
MdcHit.h:44
source
Reconstruction
MdcPatRec
MdcData
MdcData-00-01-27
MdcData
MdcHitMap.h
Generated by
1.9.6