General Interface for calibrations at the LVL2 Egamma Calo Fex algo.
More...
#include <EgammaGapCalibration.h>
|
| virtual StatusCode | initialize () override |
| | Initialization of the tool.
|
| virtual StatusCode | finalize () override |
| | Finalization of the tool.
|
| virtual void | makeCorrection (xAOD::TrigEMCluster *, const void *v=nullptr) const override |
| | method to perform the correction.
|
General Interface for calibrations at the LVL2 Egamma Calo Fex algo.
Definition at line 24 of file EgammaGapCalibration.h.
◆ finalize()
| StatusCode EgammaGapCalibration::finalize |
( |
| ) |
|
|
overridevirtual |
Finalization of the tool.
Definition at line 37 of file EgammaGapCalibration.cxx.
37 {
38
40
41 return StatusCode::SUCCESS;
42
43}
◆ initialize()
| StatusCode EgammaGapCalibration::initialize |
( |
| ) |
|
|
overridevirtual |
Initialization of the tool.
Definition at line 26 of file EgammaGapCalibration.cxx.
26 {
27
28 CHECK (base_class::initialize());
29
31
32 return StatusCode::SUCCESS;
33
34}
#define CHECK(...)
Evaluate an expression and check for errors.
◆ makeCorrection()
| void EgammaGapCalibration::makeCorrection |
( |
xAOD::TrigEMCluster * | clus, |
|
|
const void * | v = nullptr ) const |
|
overridevirtual |
method to perform the correction.
The correction type is defined by the tool which also uses this interface. In some cases, the tool needs more than the cluster to perform the calibration. This can be passed via the void pointer
Definition at line 45 of file EgammaGapCalibration.cxx.
46 {
47
48#ifndef NDEBUG
51#endif
52 float the_aeta=(clus->
eta());
53 if (the_aeta<0) the_aeta=-the_aeta;
54
56
62 float eh_scint = clus->
energy(CaloSampling::TileGap3);
64 clus->
setEnergy(
a*(ec+alpha*eh_scint + offset));
66#ifndef NDEBUG
68#endif
69
70}
Constant< float > m_eta_start_crack
Constant< float > m_eta_end_crack
Constant< CxxUtils::Array< 2 > > m_correction
void setEt(float)
set Et (calibrated)
float eta() const
get Eta (calibrated)
void setEnergy(float energy)
set Energy (calibrated)
float energy() const
get Energy (calibrated)
float interpolate(const CaloRec::Array< 2 > &a, float x, unsigned int degree, unsigned int ycol=1, const CaloRec::Array< 1 > ®ions=CaloRec::Array< 1 >(), int n_points=-1, bool fixZero=false)
Polynomial interpolation in a table.
◆ m_correction
| Constant<CxxUtils::Array<2> > EgammaGapCalibration::m_correction { this, "correction" } |
|
private |
◆ m_degree
| Constant<int> EgammaGapCalibration::m_degree { this, "degree" } |
|
private |
◆ m_eta_end_crack
| Constant<float> EgammaGapCalibration::m_eta_end_crack { this, "eta_end_crack" } |
|
private |
◆ m_eta_start_crack
| Constant<float> EgammaGapCalibration::m_eta_start_crack { this, "eta_start_crack" } |
|
private |
◆ m_interpolate
| BooleanProperty EgammaGapCalibration::m_interpolate { this, "UseInterpolation", true } |
|
private |
◆ m_use_raw_eta
| Constant<bool> EgammaGapCalibration::m_use_raw_eta { this, "use_raw_eta" } |
|
private |
The documentation for this class was generated from the following files: