Class Reference for E1039 Core & Analysis Software
SQTrackVector_v1.h
Go to the documentation of this file.
1 #ifndef _SQ_TRACK_VECTOR_V1__H_
2 #define _SQ_TRACK_VECTOR_V1__H_
3 #include "SQTrackVector.h"
4 
6  public:
10  virtual ~SQTrackVector_v1();
11 
12  void identify(std::ostream& os = std::cout) const;
13  void Reset();
14  int isValid() const { return 1; }
15  SQTrackVector* Clone() const { return new SQTrackVector_v1(*this); }
16 
17  ConstIter begin() const { return _vector.begin(); }
18  ConstIter end () const { return _vector.end (); }
19  Iter begin() { return _vector.begin(); }
20  Iter end () { return _vector.end (); }
21  bool empty() const { return _vector.empty(); }
22  size_t size () const { return _vector.size (); }
23  void clear() { Reset(); }
24 
25  const SQTrack* at(const size_t id) const;
26  SQTrack* at(const size_t id);
27  void push_back(const SQTrack *trk);
28  size_t erase(const size_t id);
29 
30  protected:
32 
34 };
35 
36 #endif // _SQ_TRACK_VECTOR_V1__H_
size_t erase(const size_t id)
ConstIter end() const
int isValid() const
isValid returns non zero if object contains vailid data
SQTrackVector_v1 & operator=(const SQTrackVector_v1 &obj)
const SQTrack * at(const size_t id) const
bool empty() const
ClassDef(SQTrackVector_v1, 1)
void Reset()
Clear Event.
void identify(std::ostream &os=std::cout) const
size_t size() const
ConstIter begin() const
SQTrackVector * Clone() const
void push_back(const SQTrack *trk)
virtual ~SQTrackVector_v1()
An SQ interface class to hold a list of SQTrack objects.
Definition: SQTrackVector.h:19
std::vector< SQTrack * >::iterator Iter
Definition: SQTrackVector.h:23
std::vector< SQTrack * > Vector
Definition: SQTrackVector.h:21
std::vector< SQTrack * >::const_iterator ConstIter
Definition: SQTrackVector.h:22
An SQ interface class to hold one true or reconstructed track.
Definition: SQTrack.h:8