15 : id(-1), hitmap(), layers()
20 : id(PHG4HitDefs::
get_volume_id(nodename)), hitmap(), layers()
29 delete hitmap.begin()->second;
39 os <<
"Number of hits: " <<
size() << endl;
40 for (iter =
hitmap.begin(); iter !=
hitmap.end(); ++iter)
42 os <<
"hit key 0x" << hex << iter->first << dec << endl;
45 set<unsigned int>::const_iterator siter;
46 os <<
"Number of layers: " <<
num_layers() << endl;
47 for (siter =
layers.begin(); siter !=
layers.end(); ++siter)
49 os <<
"layer : " << *siter << endl;
60 if (miter.first ==
hitmap.end())
65 if (miter.first == miter.second)
84 cout <<
PHWHERE <<
" detector id too large: " << detid << endl;
97 cout <<
PHWHERE <<
" duplicate key: 0x"
98 << hex << newkey << dec
99 <<
" for detector " << detid
100 <<
" hitmap.size: " <<
hitmap.size()
101 <<
" hitid: " << hitid <<
" exiting now" << endl;
113 cout <<
"hit with id 0x" << hex << key << dec <<
" exists already" << endl;
117 unsigned int detid = detidlong;
119 return hitmap.insert( std::make_pair( key, newhit ) ).first;
128 return hitmap.insert( std::make_pair( key, newhit ) ).first;
136 cout <<
" detector id too large: " << detid << endl;
142 retpair.first =
hitmap.lower_bound(keylow);
143 retpair.second =
hitmap.upper_bound(keyup);
148 {
return std::make_pair(
hitmap.begin(),
hitmap.end() ); }
183 for (; itr != last; )