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

#include <ReaderUtils.h>

Inheritance diagram for YODA::AOReader< ScatterND< N > >:
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

template<size_t N>
class YODA::AOReader< ScatterND< N > >

Definition at line 238 of file ReaderUtils.h.

Member Function Documentation

◆ assemble()

template<size_t N>
AnalysisObject * YODA::AOReader< ScatterND< N > >::assemble ( const string &  path = "")
inlinevirtual

Implements YODA::AOReaderBase.

Definition at line 263 of file ReaderUtils.h.

263 {
264 auto* ao = new ScatterND<N>();
265 ao->setPath(path);
266 ao->addPoints(points);
267 points.clear();
268 return ao;
269 }

◆ parse()

template<size_t N>
void YODA::AOReader< ScatterND< N > >::parse ( const string &  line)
inlinevirtual

Implements YODA::AOReaderBase.

Definition at line 256 of file ReaderUtils.h.

256 {
257 aiss.reset(line);
258 vector<double> vals(N), errm(N), errp(N);
259 readCoords<0>(vals, errm, errp);
260 points.push_back(PointND<N>(vals, errm, errp));
261 }
aistringstream aiss

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