8#include "MdcTrkRecon/MdcSegData.h"
9#include "MdcData/MdcHit.h"
10#include "MdcData/MdcHitMap.h"
11#include "MdcGeom/MdcDetector.h"
12#include "MdcTrkRecon/MdcSegUsage.h"
13#include "MdcTrkRecon/mdcWrapWire.h"
37 return _theHits->size();
46 assert( _hitMap != 0 );
48 _segUsageDict.clear();
56 MdcHitCol::iterator
iter = _theHits->begin();
58 for ( ;
iter != _theHits->end();
iter++ )
61 _segUsageDict.put( aHit, &( _segUsage[index] ) );
65 _segUsage[index].killHit();
74 return ( *_theHits )[hitno];
83 for (
int ilayer = 0; ilayer < gm->
nLayer(); ilayer++ )
86 for (
int iwire = 0; iwire < nwire; ++iwire )
89 if ( 0 ==
hitMap()->hitWire( ilayer, wireNext ) )
111 if ( 0 !=
hitMap()->hitWire( ilayer, wirePrev ) )
116 theHit->
print( std::cout );
117 std::cout <<
" killed " << std::endl;
124 theHit->
print( std::cout );
125 std::cout <<
" ok " << std::endl;
ObjectVector< MdcHit > MdcHitCol
int mdcWrapWire(int wireIn, int nCell)
const MdcLayer * Layer(unsigned id) const
MdcHit * hitWire(int lay, int wire) const
void print(std::ostream &o) const
bool get(const K &theKey, V &theAnswer) const
bool skippingUsed() const
void poisonHits(const MdcDetector *gm, int debug=0)
const MdcHitDict & segUsage() const
const MdcHitMap * hitMap() const
void loadevent(MdcHitCol *col, MdcHitMap *hmap, double tbunch)
MdcSegData(bool skipUsedHit)
const MdcHit * hit(int hitno) const