#include <ScanPoints.h>
Inheritance diagram for SctData::ScanPoints:
Public Member Functions | |
ScanPoints (const unsigned nPoints, const float *points, const unsigned *nEvents, const unsigned *nErrorEvents) throw () | |
Create a ScanPoints from data that is already known. | |
ScanPoints () throw () | |
Create an empty ScanPoints. | |
virtual | ~ScanPoints () throw () |
Virtual destructor. | |
unsigned | getNPoints () const throw () |
Get the number of scan points. | |
double | getPoint (const unsigned i) const throw (LogicError) |
Get the value of the variable at a point. | |
double | operator[] (const unsigned i) const throw (LogicError) |
Returns getPoint(i). | |
double & | operator[] (const unsigned i) throw (LogicError) |
Returns an l-value which is the value of the variable at a point,. | |
unsigned | getNEvents (const unsigned i) const throw (LogicError) |
Get the number of events (triggers) at a point. | |
unsigned | getNErrorEvents (const unsigned i) const throw (LogicError) |
Get the number of error events at a point. | |
void | addPoint (const double point, const unsigned nEvents, const unsigned nErrorEvents) throw () |
Add a new point. Takes the variable value, number of events and number of error events. | |
double * | getEdges () const throw (LogicError) |
Returns an array that contains bin lower edges for this ScanPoints. | |
void | setAxis (TAxis &axis) const throw (LogicError) |
Set a ROOT TAxis to the values in this ScanPoints. | |
virtual string | getClassName () const throw () |
override | |
Private Attributes | |
Sct::RangedVector< ScanPoint > | points |
vector of ScanPoint. |
It contains methods to get the number of events, the number of error events and the variable value for each point. There are also some utility methods to get "bin" values for use in setting histogram axes and to set a TAxis directly.
Definition at line 25 of file ScanPoints.h.
|
Create a ScanPoints from data that is already known.
Definition at line 10 of file ScanPoints.cpp. |
|
Create an empty ScanPoints.
Definition at line 17 of file ScanPoints.cpp. |
|
Virtual destructor.
Definition at line 42 of file ScanPoints.h. |
|
Add a new point. Takes the variable value, number of events and number of error events.
Definition at line 47 of file ScanPoints.cpp. Referenced by SctData::IO::ScanPointsStreamer::read(). |
|
override
Implements Sct::Streamable. Definition at line 19 of file ScanPoints.cpp. |
|
Returns an array that contains bin lower edges for this ScanPoints. Can be used for setting axes.
Definition at line 52 of file ScanPoints.cpp. Referenced by SctData::IO::RawScanResultStreamer::read(). |
|
Get the number of error events at a point.
Definition at line 43 of file ScanPoints.cpp. |
|
Get the number of events (triggers) at a point.
Definition at line 39 of file ScanPoints.cpp. Referenced by SctData::IO::ScanPointsStreamer::write(). |
|
Get the number of scan points.
Definition at line 23 of file ScanPoints.cpp. Referenced by SctData::IO::RawScanResultStreamer::read(), and SctData::IO::ScanPointsStreamer::write(). |
|
Get the value of the variable at a point.
Definition at line 27 of file ScanPoints.cpp. |
|
Returns an l-value which is the value of the variable at a point,.
Definition at line 35 of file ScanPoints.cpp. |
|
Returns getPoint(i).
Definition at line 31 of file ScanPoints.cpp. |
|
Set a ROOT TAxis to the values in this ScanPoints.
Definition at line 65 of file ScanPoints.cpp. |
|
vector of ScanPoint.
Definition at line 97 of file ScanPoints.h. |