ATLAS Offline Software
CaloSwCalibHitsCalibration.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CALOCLUSTERCORRECTION_CALOSWCALIBHITSCALIBRATION_H
6 #define CALOCLUSTERCORRECTION_CALOSWCALIBHITSCALIBRATION_H
7 /********************************************************************
8 
9 NAME: CaloSwCalibHitsCalibration.h
10 PACKAGE: offline/Calorimeter/CaloClusterCorrection
11 
12 AUTHORS: L. Carminati
13 CREATED: January 4, 2007
14 
15 PURPOSE: Calibrate SW em clusters with coefficients extracted
16  from Calibration Hits.
17 
18 ********************************************************************/
19 
22 #include "CaloConditions/Array.h"
23 
25 {
26 public:
29 
30 
51  virtual void makeTheCorrection (const Context& myctx,
52  xAOD::CaloCluster* cluster,
53  const CaloDetDescrElement* elt,
54  float eta,
55  float adj_eta,
56  float phi,
57  float adj_phi,
58  CaloSampling::CaloSample samp) const override;
59 
60 
61  private:
62  Constant<CxxUtils::Array<3> > m_correction { this, "correction", "" };
63  Constant<CxxUtils::Array<2> > m_sampling_depth{ this, "sampling_depth", "" };
64  Constant<float> m_eta_start_crack { this, "eta_start_crack", "" };
65  Constant<float> m_eta_end_crack { this, "eta_end_crack", "" };
66  Constant<float> m_etamax { this, "etamax", "" };
67  Constant<bool> m_use_raw_eta { this, "use_raw_eta", "" };
68  Constant<bool> m_fix_v6_pathologies { this, "fix_v6_pathologies", "" };
69  Constant<bool> m_updateSamplingEnergies { this, "update_sampling_energies", true, "" };
70 
71 };
72 
73 #endif
74 
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloSwCalibHitsCalibration::m_correction
Constant< CxxUtils::Array< 3 > > m_correction
Definition: CaloSwCalibHitsCalibration.h:73
Array.h
Simple multidimensional arrays.
CaloSwCalibHitsCalibration
Definition: CaloSwCalibHitsCalibration.py:1
CaloSwCalibHitsCalibration::m_eta_end_crack
Constant< float > m_eta_end_crack
Definition: CaloSwCalibHitsCalibration.h:76
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
CaloSwCalibHitsCalibration::m_updateSamplingEnergies
Constant< bool > m_updateSamplingEnergies
Definition: CaloSwCalibHitsCalibration.h:80
CaloClusterCorrectionCommon::CaloClusterCorrectionCommon
CaloClusterCorrectionCommon(const std::string &type, const std::string &name, const IInterface *parent)
Inherit constructor.
Definition: CaloClusterCorrectionCommon.cxx:408
CaloClusterCorrectionCommon.h
CaloSwCalibHitsCalibration::m_sampling_depth
Constant< CxxUtils::Array< 2 > > m_sampling_depth
Definition: CaloSwCalibHitsCalibration.h:74
CaloSwCalibHitsShowerDepth.h
Calculate the shower depth as used by the calib hits correction.
CaloSwCalibHitsCalibration::m_etamax
Constant< float > m_etamax
Definition: CaloSwCalibHitsCalibration.h:77
CaloSwCalibHitsCalibration::m_use_raw_eta
Constant< bool > m_use_raw_eta
Definition: CaloSwCalibHitsCalibration.h:78
CaloSwCalibHitsCalibration::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
Virtual function for the correction-specific code.
Definition: CaloSwCalibHitsCalibration.cxx:57
CaloSwCalibHitsCalibration::m_fix_v6_pathologies
Constant< bool > m_fix_v6_pathologies
Definition: CaloSwCalibHitsCalibration.h:79
CaloUtils::ToolConstantsContext
Context object for retrieving ToolConstant values.
Definition: ToolWithConstants.h:61
CaloSwCalibHitsCalibration::m_eta_start_crack
Constant< float > m_eta_start_crack
Definition: CaloSwCalibHitsCalibration.h:75
CaloClusterCorrectionCommon
Code common to cluster corrections.
Definition: CaloClusterCorrectionCommon.h:42
CaloUtils::ToolConstant
Constant of a ToolWithConstants.
Definition: ToolWithConstants.h:202