|
ATLAS Offline Software
|
Go to the documentation of this file.
17 const std::string& textDescription)
31 std::cout <<
"***** Printing EMClusterErrorsMatrix: " <<
getTextDescription() <<
" *******"<< std::endl;
32 std::cout <<
" Matrix has " <<
m_dimensions <<
" dimensions" << std::endl;
34 std::cout <<
" Dim " <<
i <<
" is binning in " <<
m_axis.at(
i).getName() <<
" with bin boundaries \n ";
35 std::vector<double> axisBinning =
m_axis.at(
i).getBinningInformation();
36 for (
double j : axisBinning) {
37 std::cout << j <<
" ";
39 std::cout << std::endl;
42 std::cout <<
" Mapping of extra dimensions in matrix (m_base): ";
44 std::cout <<
i <<
" ";
47 std::cout <<
"\n Matrix data:\n ";
49 const unsigned int matrixSize =
m_matrix.size();
52 const unsigned int vectSize = (matrixSize) ?
m_matrix.at(0).size() : 0;
56 for (
unsigned int i=0;
i<matrixSize;
i++) {
58 if (vect.size() != vectSize) {
59 std::cerr <<
"The input EMClusterErrorsMatrix doesn't have entries with all having the same number of floats" << std::endl;
62 for (
unsigned int j=0; j<vectSize; j++) {
63 std::cout << vect.at(j) <<
" ";
67 std::cout << std::endl;
StatusCode setBinContent(double x, EMClusterErrorsEntry value)
Set Bin-content to "T" in bin which corresponds to value "x".
std::vector< EMAPMatrixAxis > m_axis
EMClusterErrorsMatrix()
Defaul constructor.
const std::string & getTextDescription() const
The user can add a Description of what this matrix contains and how it was produced,...
unsigned int m_dimensions
std::vector< unsigned int > m_base
representation of the content of matrix
std::vector< float > EMClusterErrorsEntry
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< EMClusterErrorsEntry > m_matrix
StatusCode setError(const std::vector< double > &x, const EMClusterErrorsEntry &apEntry)
Sets bin-content to "apEntry" in bin which corresponds to value std::vector x.