yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.0.2
YODA::AOReader< Estimate0D > Class Reference

#include <ReaderUtils.h>

Inheritance diagram for YODA::AOReader< Estimate0D >:
YODA::AOReaderBase

Public Member Functions

void parse (const string &line)
 
AnalysisObjectassemble (const string &path="")
 
- Public Member Functions inherited from YODA::AOReaderBase
 AOReaderBase ()
 Default constructor.
 
virtual ~AOReaderBase ()
 Default destructor.
 
template<typename T >
void extractVector (const std::string &line, std::vector< T > &vec)
 

Additional Inherited Members

- Protected Attributes inherited from YODA::AOReaderBase
aistringstream aiss
 

Detailed Description

Definition at line 195 of file ReaderUtils.h.

Member Function Documentation

◆ assemble()

AnalysisObject * YODA::AOReader< Estimate0D >::assemble ( const string &  path = "")
inlinevirtual

Implements YODA::AOReaderBase.

Definition at line 226 of file ReaderUtils.h.

226 {
227
228 auto* ao = new Estimate0D(est, path);
229 est = Estimate0D();
230 sources.clear();
231 return ao;
232 }

◆ parse()

void YODA::AOReader< Estimate0D >::parse ( const string &  line)
inlinevirtual

Implements YODA::AOReaderBase.

Definition at line 212 of file ReaderUtils.h.

212 {
213 if (!line.rfind("ErrorLabels: ", 0)) { // parse error labels
214 extractVector<std::string>(line, sources);
215 return;
216 }
217 // parse content
218 aiss.reset(line);
219 double val(0);
220 aiss >> val;
221 std::map<string,std::pair<double,double>> errors;
222 readErrors(errors);
223 est = Estimate0D(val, errors);
224 }
aistringstream aiss

The documentation for this class was generated from the following file: