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

#include <ReaderUtils.h>

Inheritance diagram for YODA::AOReader< Counter >:
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 173 of file ReaderUtils.h.

Member Function Documentation

◆ assemble()

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

Implements YODA::AOReaderBase.

Definition at line 186 of file ReaderUtils.h.

186 {
187 auto* ao = new Counter(path);
188 ao->setDbn(dbn);
189 dbn = Dbn0D();
190 return ao;
191 }
Dbn< 0 > Dbn0D
User-friendly aliases.
Definition Dbn.h:771

◆ parse()

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

Implements YODA::AOReaderBase.

Definition at line 179 of file ReaderUtils.h.

179 {
180 aiss.reset(line);
181 double sumw(0), sumw2(0), n(0);
182 aiss >> sumw >> sumw2 >> n;
183 dbn = Dbn0D(n, sumw, sumw2);
184 }
aistringstream aiss

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