ATLAS Offline Software
Reconstruction
egamma
egammaConditions
egammaConditions
EMClusterErrorsMatrix.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
13
15
#ifndef EMCLUSTERERRORSMATRIX_H
16
#define EMCLUSTERERRORSMATRIX_H
17
18
#include "
egammaConditions/EMAPMatrix.h
"
19
#include <string>
20
#include <utility>
21
#include <vector>
22
23
typedef
std::vector<float>
EMClusterErrorsEntry
;
24
25
class
EMClusterErrorsMatrix
:
public
EMAPMatrix
< EMClusterErrorsEntry >
26
{
27
friend
class
EMInsituDatabaseEntry
;
28
29
public
:
30
// Constructors
32
EMClusterErrorsMatrix
();
36
EMClusterErrorsMatrix
(
const
std::vector<EMAPMatrixAxis> &axes,
const
std::string& textDescription);
38
~EMClusterErrorsMatrix
() {};
39
40
// Acces Operators
45
StatusCode
setError
(
const
std::vector<double>&
x
,
const
EMClusterErrorsEntry
&apEntry);
51
const
EMClusterErrorsEntry
*
getError
(std::vector<double>
x
)
const
{
return
getBinContent
(std::move(
x
)); };
52
const
EMClusterErrorsEntry
*
getError
(
double
x
)
const
{
return
getBinContent
(
x
); };
53
const
EMClusterErrorsEntry
*
getError
(
double
x
,
double
y
)
const
{
return
getBinContent
(
x
,
y
); };
54
55
void
printMatrix
()
const
;
// a function for debugging
56
57
};
58
59
#endif
EMClusterErrorsMatrix::EMClusterErrorsMatrix
EMClusterErrorsMatrix()
Defaul constructor.
Definition:
EMClusterErrorsMatrix.cxx:10
x
#define x
EMClusterErrorsMatrix::getError
const EMClusterErrorsEntry * getError(double x, double y) const
Definition:
EMClusterErrorsMatrix.h:53
EMClusterErrorsMatrix::printMatrix
void printMatrix() const
Definition:
EMClusterErrorsMatrix.cxx:29
EMAPMatrix
Definition:
EMAPMatrix.h:72
EMClusterErrorsEntry
std::vector< float > EMClusterErrorsEntry
Definition:
EMClusterErrorsMatrix.h:23
EMClusterErrorsMatrix::getError
const EMClusterErrorsEntry * getError(std::vector< double > x) const
Get efficiency in bin which corresponds to value std::vector x.
Definition:
EMClusterErrorsMatrix.h:51
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EMAPMatrix< EMClusterErrorsEntry >::getBinContent
const EMClusterErrorsEntry * getBinContent(double x) const
Get Bin-content to "T" in bin which corresponds to value "x".
EMInsituDatabaseEntry
Definition:
EMInsituDatabaseEntry.h:34
EMClusterErrorsMatrix::getError
const EMClusterErrorsEntry * getError(double x) const
Definition:
EMClusterErrorsMatrix.h:52
EMClusterErrorsMatrix::~EMClusterErrorsMatrix
~EMClusterErrorsMatrix()
Default destructor.
Definition:
EMClusterErrorsMatrix.h:38
y
#define y
EMClusterErrorsMatrix
Definition:
EMClusterErrorsMatrix.h:26
EMAPMatrix.h
EMClusterErrorsMatrix::setError
StatusCode setError(const std::vector< double > &x, const EMClusterErrorsEntry &apEntry)
Sets bin-content to "apEntry" in bin which corresponds to value std::vector x.
Definition:
EMClusterErrorsMatrix.cxx:24
Generated on Thu Nov 7 2024 21:14:39 for ATLAS Offline Software by
1.8.18