Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mantid::DataHandling::LoadDataStrategyHisto Class Referencefinal

#include <LoadNGEM.h>

Inheritance diagram for Mantid::DataHandling::LoadDataStrategyHisto:
Mantid::DataHandling::LoadDataStrategyBase

Public Member Functions

void addEvent (double &minToF, double &maxToF, const double tof, const double binWidth, const size_t pixel) override
 Add an event to the relevant histogram.
 
void addFrame (int &rawFrames, int &goodFrames, const int eventCountInFrame, const int minEventsReq, const int maxEventsReq, MantidVec &frameEventCounts) override
 Add a completed frame to the count-by-spectra vector.
 
std::vector< double > & getBinEdges ()
 
std::vector< std::vector< double > > & getCounts ()
 
 LoadDataStrategyHisto (const double minToF, const double maxToF, const double binWidth)
 

Private Attributes

std::vector< double > m_binEdges
 
std::vector< std::vector< double > > m_counts
 
std::vector< std::vector< double > > m_countsInFrame
 

Detailed Description

Definition at line 102 of file LoadNGEM.h.

Constructor & Destructor Documentation

◆ LoadDataStrategyHisto()

Mantid::DataHandling::LoadDataStrategyHisto::LoadDataStrategyHisto ( const double  minToF,
const double  maxToF,
const double  binWidth 
)

Definition at line 656 of file LoadNGEM.cpp.

References m_binEdges, m_counts, and m_countsInFrame.

Member Function Documentation

◆ addEvent()

void Mantid::DataHandling::LoadDataStrategyHisto::addEvent ( double &  minToF,
double &  maxToF,
const double  tof,
const double  binWidth,
const size_t  pixel 
)
overridevirtual

Add an event to the relevant histogram.

Parameters
minToFThe minimum ToF value to consider
maxToFThe maximum ToF value to consider
tofThe time of flight associated witht he evenr
binWidthThe width of each histogram bin
pixelThe detector pixel index.

Implements Mantid::DataHandling::LoadDataStrategyBase.

Definition at line 631 of file LoadNGEM.cpp.

References m_countsInFrame.

◆ addFrame()

void Mantid::DataHandling::LoadDataStrategyHisto::addFrame ( int &  rawFrames,
int &  goodFrames,
const int  eventCountInFrame,
const int  minEventsReq,
const int  maxEventsReq,
MantidVec &  frameEventCounts 
)
overridevirtual

Add a completed frame to the count-by-spectra vector.

Parameters
rawFramesThe number of raw frames read from file
goodFramesThe number of frames that fulfill good quality criteria
eventCountInFrameThe event counts in current frame
minEventsReqThe minimum events required to be considered a good frame
maxEventsReqThe maximum events required to be considered a good frame
frameEventCountsEvent count by frame

Implements Mantid::DataHandling::LoadDataStrategyBase.

Definition at line 650 of file LoadNGEM.cpp.

References m_counts, and m_countsInFrame.

◆ getBinEdges()

std::vector< double > & Mantid::DataHandling::LoadDataStrategyHisto::getBinEdges ( )
inline

Definition at line 109 of file LoadNGEM.h.

◆ getCounts()

std::vector< std::vector< double > > & Mantid::DataHandling::LoadDataStrategyHisto::getCounts ( )
inline

Definition at line 108 of file LoadNGEM.h.

Member Data Documentation

◆ m_binEdges

std::vector<double> Mantid::DataHandling::LoadDataStrategyHisto::m_binEdges
private

Definition at line 114 of file LoadNGEM.h.

Referenced by LoadDataStrategyHisto().

◆ m_counts

std::vector<std::vector<double> > Mantid::DataHandling::LoadDataStrategyHisto::m_counts
private

Definition at line 112 of file LoadNGEM.h.

Referenced by addFrame(), and LoadDataStrategyHisto().

◆ m_countsInFrame

std::vector<std::vector<double> > Mantid::DataHandling::LoadDataStrategyHisto::m_countsInFrame
private

Definition at line 113 of file LoadNGEM.h.

Referenced by addEvent(), addFrame(), and LoadDataStrategyHisto().


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