13 _vector.push_back((*iter)->Clone());
21 _vector.push_back((*iter)->Clone());
33 for (
Iter iter = _vector.begin(); iter != _vector.end(); ++iter)
delete *iter;
39 os <<
"SQTrackVector_v1: size = " << _vector.size() << endl;
44 if (
id >= _vector.size())
return nullptr;
50 if (
id >= _vector.size())
return nullptr;
56 _vector.push_back(trk->
Clone());
62 _vector.erase(_vector.begin() +
id);
63 return _vector.size();
ClassImp(SQTrackVector_v1) SQTrackVector_v1
size_t erase(const size_t id)
SQTrackVector_v1 & operator=(const SQTrackVector_v1 &obj)
const SQTrack * at(const size_t id) const
void identify(std::ostream &os=std::cout) const
void push_back(const SQTrack *trk)
virtual ~SQTrackVector_v1()
std::vector< SQTrack * >::iterator Iter
std::vector< SQTrack * >::const_iterator ConstIter
An SQ interface class to hold one true or reconstructed track.
virtual SQTrack * Clone() const =0