8 #ifndef _H_SQHitMap_v1_H_
9 #define _H_SQHitMap_v1_H_
27 void identify(std::ostream& os = std::cout)
const;
32 bool empty()
const {
return _map.empty();}
33 size_t size()
const {
return _map.size();}
34 size_t count(
unsigned int idkey)
const {
return _map.count(idkey);}
37 const SQHit*
get(
unsigned int idkey)
const;
38 SQHit*
get(
unsigned int idkey);
40 size_t erase(
unsigned int idkey) {
41 delete _map[idkey];
return _map.erase(idkey);
49 Iter find(
unsigned int idkey) {
return _map.find(idkey);}
SQHit * insert(const SQHit *hit)
std::map< unsigned int, SQHit * > HitMap
size_t erase(unsigned int idkey)
int isValid() const
isValid returns non zero if object contains vailid data
An SQ interface class to hold one detector hit.
ConstIter find(unsigned int idkey) const
SQHitMap_v1 & operator=(const SQHitMap_v1 &hitmap)
Iter find(unsigned int idkey)
An SQ interface class to hold a list of SQHit objects as std::map.
size_t count(unsigned int idkey) const
std::map< unsigned int, SQHit * >::const_iterator ConstIter
void identify(std::ostream &os=std::cout) const
std::map< unsigned int, SQHit * >::iterator Iter