BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
CriteriaItemValue.h
Go to the documentation of this file.
1#ifndef CRITERIA_ITEM_VALUE_H
2#define CRITERIA_ITEM_VALUE_H
3
5 public:
6 // Standard constructor and destructor
8 virtual ~CriteriaItemValue();
9
10 // Reset CriteriaItemValue status
11 void reset() { m_stat = false; }
12 // Set the value available
13 void setValue(float value) {
14 m_value = value;
15 m_stat = true;
16 }
17 // Retrieve the value
18 bool getValue(float& value) const {
19 if (m_stat) value = m_value;
20 return m_stat;
21 }
22
23 private:
24 float m_value;
25 bool m_stat;
26};
27#endif
void setValue(float value)
bool getValue(float &value) const
virtual ~CriteriaItemValue()