ATLAS Offline Software
EMClusterErrorsParametrizations.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
13 
15 #ifndef EMCLUSTERRORSPARAMETRIZATIONS_H
16 #define EMCLUSTERRORSPARAMETRIZATIONS_H
17 
18 #include <vector>
19 
24 
26 {
27  // friend class EMClusterErrorsTool;
28 public:
30  enum Type {ELECTRON = 0, PHOTON, NUM_MATRICES}; // eventually add conversion; NUM_MATRICES must be last
31 
32  // for reading
37 
38  // for writing (only for use by EMClusterErrorsTool)
43 private:
44  std::vector<EMClusterEnergyErrorsMatrix> m_energyParametrizations;
45  std::vector<EMClusterEtaErrorsMatrix> m_etaParametrizations;
46  std::vector<EMClusterPhiErrorsMatrix> m_phiParametrizations;
47  std::vector<EMClusterEtaPosErrorsMatrix> m_etaPosParametrizations;
48 };
49 
51 {
52  return m_energyParametrizations.at(t);
53 }
54 
56 {
57  return m_etaParametrizations.at(t);
58 }
59 
61 {
62  return m_phiParametrizations.at(t);
63 }
64 
66 {
67  return m_etaPosParametrizations.at(t);
68 }
69 
70 #endif
EMClusterEtaPosErrorsMatrix.h
EMClusterErrorsParametrizations::EMClusterErrorsParametrizations
EMClusterErrorsParametrizations()
Definition: EMClusterErrorsParametrizations.cxx:17
EMClusterEtaErrorsMatrix
Definition: EMClusterEtaErrorsMatrix.h:20
EMClusterErrorsParametrizations::getPhiMatrix
const EMClusterPhiErrorsMatrix & getPhiMatrix(Type) const
Definition: EMClusterErrorsParametrizations.h:60
EMClusterEtaPosErrorsMatrix
Definition: EMClusterEtaPosErrorsMatrix.h:20
EMClusterErrorsParametrizations::etaPosMatrix
EMClusterEtaPosErrorsMatrix & etaPosMatrix(Type)
Definition: EMClusterErrorsParametrizations.cxx:40
EMClusterErrorsParametrizations::PHOTON
@ PHOTON
Definition: EMClusterErrorsParametrizations.h:30
EMClusterErrorsParametrizations::getEtaMatrix
const EMClusterEtaErrorsMatrix & getEtaMatrix(Type) const
Definition: EMClusterErrorsParametrizations.h:55
EMClusterPhiErrorsMatrix
Definition: EMClusterPhiErrorsMatrix.h:20
EMClusterErrorsParametrizations::m_etaPosParametrizations
std::vector< EMClusterEtaPosErrorsMatrix > m_etaPosParametrizations
Definition: EMClusterErrorsParametrizations.h:47
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
EMClusterErrorsParametrizations
Definition: EMClusterErrorsParametrizations.h:26
EMClusterEnergyErrorsMatrix.h
EMClusterErrorsParametrizations::m_energyParametrizations
std::vector< EMClusterEnergyErrorsMatrix > m_energyParametrizations
Definition: EMClusterErrorsParametrizations.h:44
EMClusterErrorsParametrizations::m_etaParametrizations
std::vector< EMClusterEtaErrorsMatrix > m_etaParametrizations
Definition: EMClusterErrorsParametrizations.h:45
EMClusterErrorsParametrizations::Type
Type
Definition: EMClusterErrorsParametrizations.h:30
xAODType
Definition: ObjectType.h:13
EMClusterErrorsParametrizations::NUM_MATRICES
@ NUM_MATRICES
Definition: EMClusterErrorsParametrizations.h:30
EMClusterErrorsParametrizations::getEtaPosMatrix
const EMClusterEtaPosErrorsMatrix & getEtaPosMatrix(Type) const
Definition: EMClusterErrorsParametrizations.h:65
EMClusterErrorsParametrizations::energyMatrix
EMClusterEnergyErrorsMatrix & energyMatrix(Type)
Definition: EMClusterErrorsParametrizations.cxx:25
EMClusterErrorsParametrizations::ELECTRON
@ ELECTRON
Definition: EMClusterErrorsParametrizations.h:30
EMClusterEnergyErrorsMatrix
Definition: EMClusterEnergyErrorsMatrix.h:20
EMClusterErrorsParametrizations::etaMatrix
EMClusterEtaErrorsMatrix & etaMatrix(Type)
Definition: EMClusterErrorsParametrizations.cxx:30
EMClusterErrorsParametrizations::phiMatrix
EMClusterPhiErrorsMatrix & phiMatrix(Type)
Definition: EMClusterErrorsParametrizations.cxx:35
EMClusterPhiErrorsMatrix.h
EMClusterErrorsParametrizations::m_phiParametrizations
std::vector< EMClusterPhiErrorsMatrix > m_phiParametrizations
Definition: EMClusterErrorsParametrizations.h:46
EMClusterErrorsParametrizations::getEnergyMatrix
const EMClusterEnergyErrorsMatrix & getEnergyMatrix(Type) const
Definition: EMClusterErrorsParametrizations.h:50
EMClusterEtaErrorsMatrix.h