|
ATLAS Offline Software
|
Go to the documentation of this file.
28 #include "GaudiKernel/StatusCode.h"
81 EMAPMatrix(
const std::vector<EMAPMatrixAxis>& axes,
const std::string& textDescription);
204 unsigned int Index(
const std::vector<unsigned int>&
x)
const;
205 std::vector<unsigned int>
Index(
unsigned int id);
StatusCode setBinContent(double x, T value)
Set Bin-content to "T" in bin which corresponds to value "x".
std::vector< EMAPMatrixAxis > m_axis
StatusCode setBinContent(double x, double y, double z, double u, T value)
Set Bin-content to "T" in bin which corresponds to value "x,y,z,u".
StatusCode setBinContent(double x, double y, T value)
Set Bin-content to "T" in bin which corresponds to value "x" and "y".
void clearEntries()
Clear Matrix content but not binning, dimensions and axis.
unsigned int getNumberOfBins() const
Return number of bins.
const std::vector< double > & getBinningInformation() const
const T * getBinContent(double x, double y, double z, double u, double v) const
Get Bin-content to "T" in bin which corresponds to value "x,y,z,u,v".
const std::string & getTextDescription() const
The user can add a Description of what this matrix contains and how it was produced,...
const T * getBinContent(const std::vector< double > &x) const
Get Bin-content to "T" in bin which corresponds to value std::vector x.
EMAPMatrixAxis(std::string name, const std::vector< double > &bins)
Setup the axis again.
unsigned int Index(const std::vector< unsigned int > &x) const
@ u
Enums for curvilinear frames.
unsigned int m_dimensions
bool isInRange(double x) const
returns mean of bin at index i
std::vector< unsigned int > m_base
representation of the content of matrix
StatusCode setupMatrix(std::vector< EMAPMatrixAxis > axes)
Setup Matrix via given std::vector of EMAPMatrixAxis objects.
const std::vector< T > & getValues() const
return the std::vector<T> which contains all content information of the matrix.
StatusCode setBinContent(double x, double y, double z, T value)
Set Bin-content to "T" in bin which corresponds to value "x,y,z".
const T * getBinContent(double x, double y, double z) const
Get Bin-content to "T" in bin which corresponds to value "x,y,z".
StatusCode setBinContent(double x, double y, double z, double u, double v, T value)
Set Bin-content to "T" in bin which corresponds to value "x,y,z,u,v".
bool isInRange(const std::vector< double > &x) const
::StatusCode StatusCode
StatusCode definition for legacy code.
const T * getBinContent(double x) const
Get Bin-content to "T" in bin which corresponds to value "x".
void setTextDescription(const std::string &text)
The user can add a Description of what this matrix contains and how it was produced,...
EMAPMatrix(const EMAPMatrix &ob)=default
Constructor with std::vector of axes to define dimensions and binnging of this matrix.
EMAPMatrix(const std::vector< EMAPMatrixAxis > &axes, const std::string &textDescription)
Constructor with std::vector of axes to define dimensions and binnging of this matrix.
int getBinIndex(double x) const
Returns number of index of bin in which the value x falls.
EMAPMatrix()
Default constructor.
StatusCode setBinContent(const std::vector< double > &x, T value)
Set Bin-content to "T" in bin which corresponds to value std::vector x.
std::vector< unsigned int > Index(unsigned int id)
std::vector< T > m_matrix
void clear()
Clear all Matrix information (Also binning,...)
~EMAPMatrixAxis()
Default Destructor.
const T * getBinContent(double x, double y) const
Get Bin-content to "T" in bin which corresponds to value "x,y".
std::string m_textDescription
helper object which is used to "convert" the 1dim m_matrix into a n-dimensional object
const std::string & getName() const
EMAPMatrixAxis getAxis(unsigned int i) const
StatusCode setupEntries()
Description of the content of this matrix.
~EMAPMatrix()
Default destructor.
EMAPMatrix & operator=(const EMAPMatrix &ob)=default
Operator = Overload.
std::vector< double > m_vecBins
int getDimensions() const
Return status code of last operations.
const T * getBinContent(double x, double y, double z, double u) const
Get Bin-content to "T" in bin which corresponds to value "x,y,z,u".