Class Reference for E1039 Core & Analysis Software
SQTrackVector.h
Go to the documentation of this file.
1 #ifndef _SQ_TRACK_VECTOR__H_
2 #define _SQ_TRACK_VECTOR__H_
3 #include <iostream>
4 #include <vector>
5 #include <phool/PHObject.h>
6 #include "SQTrack.h"
7 
9 
19 class SQTrackVector: public PHObject {
20  public:
21  typedef std::vector<SQTrack*> Vector;
22  typedef std::vector<SQTrack*>::const_iterator ConstIter;
23  typedef std::vector<SQTrack*>::iterator Iter;
24 
25  virtual ~SQTrackVector() {}
26 
27  virtual void identify(std::ostream& os = std::cout) const = 0;
28  virtual void Reset() = 0;
29  virtual int isValid() const = 0;
30  virtual SQTrackVector* Clone() const = 0;
31 
32  virtual ConstIter begin() const = 0;
33  virtual ConstIter end () const = 0;
34  virtual Iter begin() = 0;
35  virtual Iter end () = 0;
36  virtual bool empty() const = 0;
37  virtual size_t size () const = 0;
38  virtual void clear() = 0;
39 
40  virtual const SQTrack* at(const size_t id) const = 0;
41  virtual SQTrack* at(const size_t id) = 0;
42  virtual void push_back(const SQTrack *trk) = 0;
43  virtual size_t erase(const size_t id) = 0;
44 
45  protected:
47 
49 };
50 
51 #endif // _SQ_TRACK_VECTOR__H_
An SQ interface class to hold a list of SQTrack objects.
Definition: SQTrackVector.h:19
virtual SQTrack * at(const size_t id)=0
virtual bool empty() const =0
ClassDef(SQTrackVector, 1)
virtual ConstIter begin() const =0
virtual void push_back(const SQTrack *trk)=0
virtual Iter begin()=0
virtual void Reset()=0
Clear Event.
virtual const SQTrack * at(const size_t id) const =0
virtual int isValid() const =0
isValid returns non zero if object contains vailid data
virtual ConstIter end() const =0
virtual Iter end()=0
virtual size_t size() const =0
virtual ~SQTrackVector()
Definition: SQTrackVector.h:25
std::vector< SQTrack * >::iterator Iter
Definition: SQTrackVector.h:23
std::vector< SQTrack * > Vector
Definition: SQTrackVector.h:21
virtual SQTrackVector * Clone() const =0
virtual void identify(std::ostream &os=std::cout) const =0
std::vector< SQTrack * >::const_iterator ConstIter
Definition: SQTrackVector.h:22
virtual void clear()=0
virtual size_t erase(const size_t id)=0
An SQ interface class to hold one true or reconstructed track.
Definition: SQTrack.h:8