BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
HltCriteria.h
Go to the documentation of this file.
1#ifndef HLTCRITERIA_H
2#define HLTCRITERIA_H
3
4#include <string>
5#include <vector>
7
8namespace HltProcessor {
9
11
12 typedef struct {
13 std::string name;
14 float value;
15 std::string type;
16 int id;
17 } CriteriaItem;
18
19public:
20 HltCriteria(int);
21 virtual ~HltCriteria() {};
22
23 bool satisfyCriteria() const;
24 void addItem(const std::string& name, float value, const std::string& type,int id);
25
26 void setBehaviour(const std::string& behaviour) {
27 m_behaviour = behaviour;
28 }
29
30 const std::string& getBehaviour() const {
31 return m_behaviour;
32 }
33
34 const int idCriteria() const {
35 return m_idCriteria;
36 }
37
38 std::vector<CriteriaItem> getItemVec() {
39 return m_items;
40 }
41
42private:
43 std::string m_behaviour;
44
45 std::vector<CriteriaItem> m_items;
46 int m_idCriteria;
47 //static HltStoreSvc* m_HltStoreSvc;
48 HltStoreSvc* m_HltStoreSvc;
49};
50
51} //namespace
52#endif //HLTCRITERIA_H
std::vector< CriteriaItem > getItemVec()
Definition: HltCriteria.h:38
void addItem(const std::string &name, float value, const std::string &type, int id)
Definition: HltCriteria.cxx:79
const int idCriteria() const
Definition: HltCriteria.h:34
const std::string & getBehaviour() const
Definition: HltCriteria.h:30
void setBehaviour(const std::string &behaviour)
Definition: HltCriteria.h:26
bool satisfyCriteria() const
Definition: HltCriteria.cxx:22