YODA::AOReader< Estimate0D > Class Reference
Inheritance diagram for YODA::AOReader< Estimate0D >:
![]()
Detailed DescriptionDefinition at line 230 of file ReaderUtils.h. Member Function Documentation◆ assemble()
Implements YODA::AOReaderBase. Definition at line 261 of file ReaderUtils.h. 261 {
262
263 auto* ao = new Estimate0D(est, path);
264 est = Estimate0D();
265 sources.clear();
266 return ao;
267 }
◆ mkFromH5()
Implements YODA::AOReaderBase. Definition at line 270 of file ReaderUtils.h. 270 {
271 vector<string> annos = h5file.loadAnnotations();
272 auto* ao = new Estimate0D(h5file.path(), annos.back());
273 annos.pop_back();
274 ao->deserializeMeta(annos);
275 ao->deserializeContent(h5file.loadContent());
276 ao->deserializeSources(h5file.loadSources());
277 return ao;
278 }
References YODA::H5FileManager::loadAnnotations(), YODA::H5FileManager::loadContent(), YODA::H5FileManager::loadSources(), and YODA::H5FileManager::path(). ◆ parse()
Implements YODA::AOReaderBase. Definition at line 247 of file ReaderUtils.h. 247 {
248 if (!line.rfind("ErrorLabels: ", 0)) { // parse error labels
249 extractVector<std::string>(line, sources);
250 return;
251 }
252 // parse content
253 aiss.reset(line);
254 double val(0);
255 aiss >> val;
256 std::map<string,std::pair<double,double>> errors;
257 readErrors(errors);
258 est = Estimate0D(val, errors);
259 }
◆ skip()
Reimplemented from YODA::AOReaderBase. Definition at line 280 of file ReaderUtils.h. 280 {
281 h5file.skipCommon();
282 h5file.skipSources();
283 }
References YODA::H5FileManager::skipCommon(), and YODA::H5FileManager::skipSources(). The documentation for this class was generated from the following file:
Generated on Fri Mar 7 2025 09:06:40 for YODA - Yet more Objects for Data Analysis by |