ATLAS Offline Software
|
#include <EMClusterErrorsMatrix.h>
Public Member Functions | |
EMClusterErrorsMatrix () | |
Defaul constructor. More... | |
EMClusterErrorsMatrix (const std::vector< EMAPMatrixAxis > &axes, const std::string &textDescription) | |
Constructor with std::vector of axes to define dimensions and binnging of this matrix. More... | |
~EMClusterErrorsMatrix () | |
Default destructor. More... | |
StatusCode | setError (const std::vector< double > &x, const EMClusterErrorsEntry &apEntry) |
Sets bin-content to "apEntry" in bin which corresponds to value std::vector x. More... | |
const EMClusterErrorsEntry * | getError (std::vector< double > x) const |
Get efficiency in bin which corresponds to value std::vector x. More... | |
const EMClusterErrorsEntry * | getError (double x) const |
const EMClusterErrorsEntry * | getError (double x, double y) const |
void | printMatrix () const |
StatusCode | setupMatrix (std::vector< EMAPMatrixAxis > axes) |
Setup Matrix via given std::vector of EMAPMatrixAxis objects. More... | |
StatusCode | setBinContent (double x, EMClusterErrorsEntry value) |
Set Bin-content to "T" in bin which corresponds to value "x". More... | |
StatusCode | setBinContent (double x, double y, EMClusterErrorsEntry value) |
Set Bin-content to "T" in bin which corresponds to value "x" and "y". More... | |
StatusCode | setBinContent (double x, double y, double z, EMClusterErrorsEntry value) |
Set Bin-content to "T" in bin which corresponds to value "x,y,z". More... | |
StatusCode | setBinContent (double x, double y, double z, double u, EMClusterErrorsEntry value) |
Set Bin-content to "T" in bin which corresponds to value "x,y,z,u". More... | |
StatusCode | setBinContent (double x, double y, double z, double u, double v, EMClusterErrorsEntry value) |
Set Bin-content to "T" in bin which corresponds to value "x,y,z,u,v". More... | |
StatusCode | setBinContent (const std::vector< double > &x, EMClusterErrorsEntry value) |
Set Bin-content to "T" in bin which corresponds to value std::vector x. More... | |
const EMClusterErrorsEntry * | getBinContent (double x) const |
Get Bin-content to "T" in bin which corresponds to value "x". More... | |
const EMClusterErrorsEntry * | getBinContent (double x, double y) const |
Get Bin-content to "T" in bin which corresponds to value "x,y". More... | |
const EMClusterErrorsEntry * | getBinContent (double x, double y, double z) const |
Get Bin-content to "T" in bin which corresponds to value "x,y,z". More... | |
const EMClusterErrorsEntry * | 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". More... | |
const EMClusterErrorsEntry * | 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". More... | |
const EMClusterErrorsEntry * | getBinContent (const std::vector< double > &x) const |
Get Bin-content to "T" in bin which corresponds to value std::vector x. More... | |
int | getDimensions () const |
Return status code of last operations. More... | |
EMAPMatrixAxis | getAxis (unsigned int i) const |
const std::vector< EMClusterErrorsEntry > & | getValues () const |
return the std::vector<T> which contains all content information of the matrix. More... | |
void | clear () |
Clear all Matrix information (Also binning,...) More... | |
void | clearEntries () |
Clear Matrix content but not binning, dimensions and axis. More... | |
bool | isInRange (const std::vector< double > &x) const |
void | setTextDescription (const std::string &text) |
The user can add a Description of what this matrix contains and how it was produced, e.g. More... | |
const std::string & | getTextDescription () const |
The user can add a Description of what this matrix contains and how it was produced, e.g. More... | |
Protected Member Functions | |
StatusCode | setupEntries () |
Description of the content of this matrix. More... | |
unsigned int | Index (const std::vector< unsigned int > &x) const |
std::vector< unsigned int > | Index (unsigned int id) |
Protected Attributes | |
unsigned int | m_dimensions |
std::vector< EMAPMatrixAxis > | m_axis |
std::vector< EMClusterErrorsEntry > | m_matrix |
std::vector< unsigned int > | m_base |
representation of the content of matrix More... | |
std::string | m_textDescription |
helper object which is used to "convert" the 1dim m_matrix into a n-dimensional object More... | |
Friends | |
class | EMInsituDatabaseEntry |
Definition at line 25 of file EMClusterErrorsMatrix.h.
EMClusterErrorsMatrix::EMClusterErrorsMatrix | ( | ) |
Defaul constructor.
Definition at line 10 of file EMClusterErrorsMatrix.cxx.
EMClusterErrorsMatrix::EMClusterErrorsMatrix | ( | const std::vector< EMAPMatrixAxis > & | axes, |
const std::string & | textDescription | ||
) |
Constructor with std::vector of axes to define dimensions and binnging of this matrix.
axes | std::vector of APMatrixAxis objects |
Definition at line 16 of file EMClusterErrorsMatrix.cxx.
|
inline |
|
inherited |
Clear all Matrix information (Also binning,...)
|
inherited |
Clear Matrix content but not binning, dimensions and axis.
|
inlineinherited |
Definition at line 168 of file EMAPMatrix.h.
|
inherited |
Get Bin-content to "T" in bin which corresponds to value std::vector x.
Can only used for n-dimensional matrix if the length of the std::vector x ind n.
x | std::vector of length n which represents the values on all axes |
T | value which should be recieved |
|
inherited |
Get Bin-content to "T" in bin which corresponds to value "x".
Can only used for 1-dimensional matrix
x | value on x-axis |
T | value which is received |
|
inherited |
Get Bin-content to "T" in bin which corresponds to value "x,y".
Can only used for 2-dimensional matrix
x | value on x-axis |
y | value on y-axis |
T | value which is received |
|
inherited |
Get Bin-content to "T" in bin which corresponds to value "x,y,z".
Can only used for 3-dimensional matrix
x | value on x-axis |
y | value on y-axis |
z | value on z-axis |
T | value which is received |
|
inherited |
Get Bin-content to "T" in bin which corresponds to value "x,y,z,u".
Can only used for 4-dimensional matrix
|
inherited |
Get Bin-content to "T" in bin which corresponds to value "x,y,z,u,v".
Can only used for 5-dimensional matrix
|
inlineinherited |
Return status code of last operations.
Some access operations might have failed. In this case, the statusCode is set to false Return number of dimensions of this matrix
Definition at line 165 of file EMAPMatrix.h.
|
inline |
Definition at line 52 of file EMClusterErrorsMatrix.h.
|
inline |
Definition at line 53 of file EMClusterErrorsMatrix.h.
|
inline |
Get efficiency in bin which corresponds to value std::vector x.
Can only used for n-dimensional matrix if the length of the std::vector x ind n.
x | std::vector of length n which represents the values on all axes |
Definition at line 51 of file EMClusterErrorsMatrix.h.
|
inherited |
The user can add a Description of what this matrix contains and how it was produced, e.g.
cuts
|
inlineinherited |
return the std::vector<T> which contains all content information of the matrix.
Note that the binning and dimensions is not coded inside
Definition at line 171 of file EMAPMatrix.h.
|
protectedinherited |
|
protectedinherited |
|
inherited |
void EMClusterErrorsMatrix::printMatrix | ( | ) | const |
Definition at line 29 of file EMClusterErrorsMatrix.cxx.
|
inherited |
Set Bin-content to "T" in bin which corresponds to value std::vector x.
Can only used for n-dimensional matrix if the length of the std::vector x ind n.
x | std::vector of length n which represents the values on all axes |
T | value which should be set |
|
inherited |
Set Bin-content to "T" in bin which corresponds to value "x,y,z,u,v".
Can only used for 5-dimensional matrix
|
inherited |
Set Bin-content to "T" in bin which corresponds to value "x,y,z,u".
Can only used for 4-dimensional matrix
|
inherited |
Set Bin-content to "T" in bin which corresponds to value "x,y,z".
Can only used for 3-dimensional matrix
x | value on x-axis |
y | value on y-axis |
z | value on z-axis |
T | value which should be set |
|
inherited |
Set Bin-content to "T" in bin which corresponds to value "x" and "y".
Can only used for 2-dimensional matrix
x | value on x-axis |
y | value on y-axis |
T | value which should be set |
|
inherited |
Set Bin-content to "T" in bin which corresponds to value "x".
Can only used for 1-dimensional matrix
x | value on x-axis |
T | value which should be set |
StatusCode EMClusterErrorsMatrix::setError | ( | const std::vector< double > & | x, |
const EMClusterErrorsEntry & | apEntry | ||
) |
Sets bin-content to "apEntry" in bin which corresponds to value std::vector x.
Can only used for n-dimensional matrix if the length of the std::vector x ind n.
x | std::vector of length n which represents the values on all axes |
apEntry | value which should be set |
Definition at line 24 of file EMClusterErrorsMatrix.cxx.
|
inherited |
The user can add a Description of what this matrix contains and how it was produced, e.g.
cuts
|
protectedinherited |
Description of the content of this matrix.
|
inherited |
Setup Matrix via given std::vector of EMAPMatrixAxis objects.
|
friend |
Definition at line 27 of file EMClusterErrorsMatrix.h.
|
protectedinherited |
Definition at line 193 of file EMAPMatrix.h.
|
protectedinherited |
representation of the content of matrix
Definition at line 196 of file EMAPMatrix.h.
|
protectedinherited |
Definition at line 191 of file EMAPMatrix.h.
|
protectedinherited |
Definition at line 195 of file EMAPMatrix.h.
|
protectedinherited |
helper object which is used to "convert" the 1dim m_matrix into a n-dimensional object
Definition at line 197 of file EMAPMatrix.h.