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