OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Public Member Functions | Private Attributes | List of all members
PeakReader Class Reference

#include <PeakReader.h>

Public Member Functions

 PeakReader (std::string filename)
 
 ~PeakReader ()
 
void parseFile ()
 
void getPeak (int nPeak, double &radius)
 
std::size_t getNumberOfPeaks ()
 

Private Attributes

std::string filename_m
 Peak filename. More...
 
std::map< int, double > peaks_m
 all found peaks < peak number, radius > More...
 

Detailed Description

Definition at line 32 of file PeakReader.h.

Constructor & Destructor Documentation

◆ PeakReader()

PeakReader::PeakReader ( std::string  filename)

Definition at line 30 of file PeakReader.cpp.

◆ ~PeakReader()

PeakReader::~PeakReader ( )

Definition at line 35 of file PeakReader.cpp.

Member Function Documentation

◆ getNumberOfPeaks()

std::size_t PeakReader::getNumberOfPeaks ( )
Returns
the number of peaks in the file

Definition at line 82 of file PeakReader.cpp.

References peaks_m.

◆ getPeak()

void PeakReader::getPeak ( int  nPeak,
double &  radius 
)
Parameters
nPeakis the peak number
radiusstores result [mm]

Definition at line 71 of file PeakReader.cpp.

References peaks_m.

◆ parseFile()

void PeakReader::parseFile ( )

Definition at line 38 of file PeakReader.cpp.

References filename_m, and peaks_m.

Member Data Documentation

◆ filename_m

std::string PeakReader::filename_m
private

Peak filename.

Definition at line 54 of file PeakReader.h.

Referenced by parseFile().

◆ peaks_m

std::map<int, double> PeakReader::peaks_m
private

all found peaks < peak number, radius >

Definition at line 57 of file PeakReader.h.

Referenced by getNumberOfPeaks(), getPeak(), and parseFile().


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