13 #include <framework/logging/Logger.h>
38 outer = std::numeric_limits<unsigned>::max();
39 inner = std::numeric_limits<unsigned>::max();
46 return ((
outer == std::numeric_limits<unsigned>::max())
47 or (
inner == std::numeric_limits<unsigned>::max()))
67 outer = std::numeric_limits<unsigned>::max();
68 center = std::numeric_limits<unsigned>::max();
69 inner = std::numeric_limits<unsigned>::max();
76 return ((
outer == std::numeric_limits<unsigned>::max())
77 or (
center == std::numeric_limits<unsigned>::max())
78 or (
inner == std::numeric_limits<unsigned>::max()))
99 outer = std::numeric_limits<unsigned>::max();
100 outerCenter = std::numeric_limits<unsigned>::max();
101 innerCenter = std::numeric_limits<unsigned>::max();
102 inner = std::numeric_limits<unsigned>::max();
109 return ((
outer == std::numeric_limits<unsigned>::max())
110 or (
outerCenter == std::numeric_limits<unsigned>::max())
111 or (
innerCenter == std::numeric_limits<unsigned>::max())
112 or (
inner == std::numeric_limits<unsigned>::max()))
120 template <
class SecIDSetType>
124 std::map<std::string, double>
m_values;
151 expNo(std::numeric_limits<unsigned>::max()),
152 runNo(std::numeric_limits<unsigned>::max()),
153 evtNo(std::numeric_limits<unsigned>::max()),
154 trackNo(std::numeric_limits<unsigned>::max()),
155 pdg(std::numeric_limits<int>::max())
157 for (
auto name : filterNames) {
158 m_values.insert({name, std::numeric_limits<double>::max()});
159 B2DEBUG(60,
"FilterValueDataSet::constructor: filterName " << name <<
" has been added.");
161 B2DEBUG(50,
"FilterValueDataSet::constructor: " <<
m_values.size() <<
" filters have been added.");
167 auto it =
m_values.find(filterName);
169 B2ERROR(
"FilterValueDataSet::setValueOfFilter: filterName " << filterName
170 <<
"is not known, value " << value
171 <<
" will NOT be added!");
180 double* valuePtr =
nullptr;
181 auto it =
m_values.find(filterName);
183 valuePtr = &it->second;
184 }
else { B2WARNING(
"filter could not be found, returning nullptr instead!"); }
191 expNo = std::numeric_limits<unsigned>::max();
192 runNo = std::numeric_limits<unsigned>::max();
193 evtNo = std::numeric_limits<unsigned>::max();
194 trackNo = std::numeric_limits<unsigned>::max();
195 pdg = std::numeric_limits<int>::max();
198 entry.second = std::numeric_limits<double>::max();
206 if (
expNo == std::numeric_limits<unsigned>::max())
return false;
207 if (
runNo == std::numeric_limits<unsigned>::max())
return false;
208 if (
evtNo == std::numeric_limits<unsigned>::max())
return false;
209 if (
trackNo == std::numeric_limits<unsigned>::max())
return false;
210 if (
pdg == std::numeric_limits<int>::max())
return false;
212 if (entry.second == std::numeric_limits<double>::max())
return false;