ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloClusterCorrection
src
CaloSwEtamod_v2.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
/*
3
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4
*/
35
36
37
#ifndef CALOCLUSTERCORRECTION_CALOSWETAMOD_V2_H
38
#define CALOCLUSTERCORRECTION_CALOSWETAMOD_V2_H
39
40
41
#include "
CaloClusterCorrection/CaloClusterCorrectionCommon.h
"
42
#include "
CaloConditions/Array.h
"
43
44
78
class
CaloSwEtamod_v2
79
:
public
CaloClusterCorrectionCommon
80
{
81
public
:
83
using
CaloClusterCorrectionCommon::CaloClusterCorrectionCommon
;
84
85
106
virtual
void
makeTheCorrection
(
const
Context& myctx,
107
xAOD::CaloCluster
* cluster,
108
const
CaloDetDescrElement
* elt,
109
float
eta
,
110
float
adj_eta,
111
float
phi
,
112
float
adj_phi,
113
CaloSampling::CaloSample
samp)
const override
;
114
115
116
private
:
121
class
Builder
122
:
public
TableBuilder
123
{
124
public
:
127
Builder
(
const
CxxUtils::Array<2>
& corr,
float
etamod);
128
130
virtual
float
calculate
(
int
energy_ndx,
bool
& good)
const
;
131
132
private
:
134
const
CxxUtils::Array<2>
m_correction
;
135
137
float
m_etamod
;
138
};
139
141
Constant<CxxUtils::Array<2> >
m_correction
142
{
this
,
"correction"
,
"Tabulated arrays of function parameters."
};
143
144
// Calibration constant: Correction factors for crude containment
145
// correction used internally for the energy interpolation.
146
Constant<CxxUtils::Array<2> >
m_rfac
147
{
this
,
"rfac"
,
"Correction factors for crude containment correction used internally for the energy interpolation."
};
148
149
// Calibration constant: Interpolation degree for crude containment
150
// correction used internally for the energy interpolation.
151
Constant<int>
m_rfac_degree
152
{
this
,
"rfac_degree"
,
"Interpolation degree for crude containment correction used internally for the energy interpolation."
};
153
156
Constant<CxxUtils::Array<1> >
m_energies
157
{
this
,
"energies"
,
"Table of energies at which the correction was tabulated."
};
158
160
Constant<int>
m_energy_degree
161
{
this
,
"energy_degree"
,
"Degree of the polynomial interpolation in energy."
};
162
};
163
164
165
#endif
// not CALOCLUSTERCORRECTION_CALOSWETAMOD_V2_H
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
CaloClusterCorrectionCommon.h
m_energies
Constant< CxxUtils::Array< 1 > > m_energies
Calibration constant: table of energies at which the correction was tabulated.
Definition
CaloSwEtamod_v2.h:157
m_rfac_degree
Constant< int > m_rfac_degree
Definition
CaloSwEtamod_v2.h:152
makeTheCorrection
virtual void makeTheCorrection(const Context &myctx, xAOD::CaloCluster *cluster, const CaloDetDescrElement *elt, float eta, float adj_eta, float phi, float adj_phi, CaloSampling::CaloSample samp) const override
m_energy_degree
Constant< int > m_energy_degree
Calibration constant: degree of the polynomial interpolation in energy.
Definition
CaloSwEtamod_v2.h:161
m_correction
Constant< CxxUtils::Array< 2 > > m_correction
Calibration constant: tabulated arrays of function parameters.
Definition
CaloSwEtamod_v2.h:142
m_rfac
Constant< CxxUtils::Array< 2 > > m_rfac
Definition
CaloSwEtamod_v2.h:147
Array.h
Simple multidimensional arrays.
Builder::m_correction
const CxxUtils::Array< 2 > m_correction
Correction parameters.
Definition
CaloSwEtamod_v2.h:134
Builder::m_etamod
float m_etamod
The eta offset within the cell.
Definition
CaloSwEtamod_v2.h:137
Builder::calculate
virtual float calculate(int energy_ndx, bool &good) const
Calculate the correction for tabulated energy ENERGY_NDX.
Builder::Builder
Builder(const CxxUtils::Array< 2 > &corr, float etamod)
Constructor. Gets the correction array and the eta offset within the cell.
CaloClusterCorrectionCommon
Code common to cluster corrections.
Definition
CaloClusterCorrectionCommon.h:42
CaloClusterCorrectionCommon::CaloClusterCorrectionCommon
CaloClusterCorrectionCommon(const std::string &type, const std::string &name, const IInterface *parent)
Inherit constructor.
Definition
CaloClusterCorrectionCommon.cxx:407
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell.
Definition
Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloSampling::CaloSample
CaloSample
Definition
Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
CxxUtils::Array
Read-only multidimensional array.
Definition
Control/CxxUtils/CxxUtils/Array.h:135
CaloSwEtamod_v2
Definition
CaloSwEtamod_v2.py:1
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
Generated on
for ATLAS Offline Software by
1.17.0