Belle II Software  release-05-01-25
TRGGDLDBAlgs.h
1 #pragma once
2 
3 #include <TObject.h>
4 #include <vector>
5 
6 namespace Belle2 {
18  class TRGGDLDBAlgs: public TObject {
19  public:
20 
23 
25  TRGGDLDBAlgs(const TRGGDLDBAlgs&) = default;
26 
28  TRGGDLDBAlgs& operator=(const TRGGDLDBAlgs&) = default;
29 
31  void setalg(const std::string& s)
32  {
33  m_algs.push_back(s);
34  }
35 
37  void clear(void)
38  {
39  m_algs.clear();
40  }
41 
43  std::string getalg(int i) const
44  {
45  return m_algs[i];
46  }
47 
49  int getnalgs() const
50  {
51  return m_algs.size();
52  }
53 
54  private:
55 
57  std::vector<std::string> m_algs;
58 
60  };
61 
63 } // end of namespace Belle2
Belle2::TRGGDLDBAlgs::operator=
TRGGDLDBAlgs & operator=(const TRGGDLDBAlgs &)=default
assignment operator
Belle2::TRGGDLDBAlgs::setalg
void setalg(const std::string &s)
Setter for a GDL logic alghrithm.
Definition: TRGGDLDBAlgs.h:31
Belle2::TRGGDLDBAlgs::getalg
std::string getalg(int i) const
Getter for a GDL logic alghrithm.
Definition: TRGGDLDBAlgs.h:43
Belle2::TRGGDLDBAlgs::m_algs
std::vector< std::string > m_algs
Algorithm strings of GDL logic.
Definition: TRGGDLDBAlgs.h:57
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGGDLDBAlgs::TRGGDLDBAlgs
TRGGDLDBAlgs()
Default constructor.
Definition: TRGGDLDBAlgs.h:22
Belle2::TRGGDLDBAlgs::getnalgs
int getnalgs() const
Getter of the number of algorithms.
Definition: TRGGDLDBAlgs.h:49
Belle2::TRGGDLDBAlgs
The payload class for GDL algorithm.
Definition: TRGGDLDBAlgs.h:18
Belle2::TRGGDLDBAlgs::clear
void clear(void)
clear vector
Definition: TRGGDLDBAlgs.h:37
Belle2::TRGGDLDBAlgs::ClassDef
ClassDef(TRGGDLDBAlgs, 1)
ClassDef, must be the last term before the closing {}.