BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/HltSteerData/HltSteerData/HltCriteria.h
Go to the documentation of this file.
1#ifndef HLTCRITERIA_H
2#define HLTCRITERIA_H
3
4#include <string>
5#include <vector>
6#include "HltStore/HltStoreSvc.h"
7
8namespace HltProcessor {
9
10class HltCriteria {
11
12 typedef struct {
13 std::string name;
14 float value;
15 std::string type;
16 int id;
17 } CriteriaItem;
18
19public:
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
bool satisfyCriteria() const
void addItem(const std::string &name, float value, const std::string &type, int id)