thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ThePEG::FactoryBase::DataFiller Class Reference

DataFiller is a helper class to facilitate adding data to a DataPointSet. More...

#include <FactoryBase.h>

Public Member Functions

 DataFiller (AIDA::IDataPointSet *dps)
 The standard constructor needs a IDataPointSet as argument.
 
 DataFiller (const DataFiller &df)
 Copy constructor.
 
 ~DataFiller ()
 Destructor.
 
DataFilleroperator<< (double x)
 Add a number to measurement currently being read.
 
 operator AIDA::IDataPointSet * ()
 Automatic conversion to the underlying IDataPointSet.
 

Private Attributes

AIDA::IDataPointSet * dset
 The underlying IDataPointSet.
 
deque< double > v
 The collected numbers to be committed to the IDataPointSet.
 

Detailed Description

DataFiller is a helper class to facilitate adding data to a DataPointSet.

For a D-dimensional DataPointSet N*3*D numbers should be added with the standard << operator ordered as x-value, x-upper-error, x-lower-error, y-value, y-upper-error, etc.. Only when the DataFIller object is detleted will the points be added.

Definition at line 90 of file FactoryBase.h.

Constructor & Destructor Documentation

◆ DataFiller() [1/2]

ThePEG::FactoryBase::DataFiller::DataFiller ( AIDA::IDataPointSet *  dps)
inline

The standard constructor needs a IDataPointSet as argument.

Definition at line 97 of file FactoryBase.h.

◆ DataFiller() [2/2]

ThePEG::FactoryBase::DataFiller::DataFiller ( const DataFiller df)
inline

Copy constructor.

Definition at line 102 of file FactoryBase.h.

◆ ~DataFiller()

ThePEG::FactoryBase::DataFiller::~DataFiller ( )

Destructor.

Will commit the pints filled to the underlying IDataPointSet.

Member Function Documentation

◆ operator AIDA::IDataPointSet *()

ThePEG::FactoryBase::DataFiller::operator AIDA::IDataPointSet * ( )
inline

Automatic conversion to the underlying IDataPointSet.

Definition at line 121 of file FactoryBase.h.

References dset.

◆ operator<<()

DataFiller & ThePEG::FactoryBase::DataFiller::operator<< ( double  x)
inline

Add a number to measurement currently being read.

Definition at line 113 of file FactoryBase.h.

References v.

Member Data Documentation

◆ dset

AIDA::IDataPointSet* ThePEG::FactoryBase::DataFiller::dset
private

The underlying IDataPointSet.

Definition at line 128 of file FactoryBase.h.

Referenced by operator AIDA::IDataPointSet *().

◆ v

deque<double> ThePEG::FactoryBase::DataFiller::v
private

The collected numbers to be committed to the IDataPointSet.

Definition at line 133 of file FactoryBase.h.

Referenced by operator<<().


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