yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.0.2
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 172 of file ReaderUtils.h.

Member Function Documentation

◆ assemble()

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

Implements YODA::AOReaderBase.

Definition at line 185 of file ReaderUtils.h.

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

◆ parse()

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

Implements YODA::AOReaderBase.

Definition at line 178 of file ReaderUtils.h.

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

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