25 iter != hitvector.
end();
27 const SQHit *hit = *iter;
28 _vector.push_back(hit->
Clone());
35 iter != hitvector.
end();
37 const SQHit *hit = *iter;
38 _vector.push_back(hit->
Clone());
48 for(
auto iter = _vector.begin(); iter!=_vector.end(); ++iter)
delete (*iter);
53 os <<
"SQHitVector_v1: size = " << _vector.size() << endl;
58 if(
id>=
size())
return nullptr;
63 if(
id>= _vector.size())
return nullptr;
68 _vector.push_back(hit->
Clone());
ClassImp(SQHitVector_v1) SQHitVector_v1
SQHitVector_v1 & operator=(const SQHitVector_v1 &hitmap)
const SQHit * at(const size_t idkey) const
void push_back(const SQHit *hit)
virtual ~SQHitVector_v1()
void identify(std::ostream &os=std::cout) const
std::vector< SQHit * >::const_iterator ConstIter
An SQ interface class to hold one detector hit.
virtual SQHit * Clone() const