ATLAS Offline Software
CaloSwEta1e_g3.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CALOCLUSTERCORRECTION_CALOSWETA1E_G3_H
6 #define CALOCLUSTERCORRECTION_CALOSWETA1E_G3_H
7 /********************************************************************
8 
9 NAME: CaloSwEta1e_g3.h
10 PACKAGE: offline/Calorimeter/CaloClusterCorrection
11 
12 AUTHORS: H. Ma, S. Rajagopalan
13 CREATED: Dec. 15, 1999
14 
15 PURPOSE: S-shape corrections in sampling 1 as a function of eta for endcap
16  (Tuned using 100 GeV E photons)
17  base class: CaloClusterCorrection
18  Correction tuned on G3 samples.
19 
20 Atrecon Orig: emreco/qeta1e.age
21 
22 Updated: Feb 11, 2003 (MW)
23  new correction for DC1 data
24 
25 Updated: May 5, 2004 (Sven Menke)
26  base class changed from algo to tool
27 
28 Updated: June, 2004 (sss)
29  Use ToolWithConstants to get correction constants.
30 ********************************************************************/
31 
32 
34 #include "CaloConditions/Array.h"
35 
37 {
38 
39  public:
40  // Inherit construtor.
41  using CaloClusterCorrection::CaloClusterCorrection;
42 
43  // virtual method of CaloClusterCorrection
44  virtual void makeCorrection (const Context& myctx,
45  xAOD::CaloCluster* cluster) const override;
46 
47  // Override tool type name to group all four together.
48  virtual const std::string& toolType() const override;
49 
50 
51 private:
52 
53  CaloSwEta1e_g3() = delete;
54 
55  Constant<CxxUtils::Array<3> > m_correction { this, "correction", "" };
56  Constant<float> m_correction_coef { this, "correction_coef", "" };
57  Constant<int> m_correction_degree { this, "correction_degree", "" };
58  Constant<int> m_region { this, "region", "" };
59 
60  static const float s_middle_layer_granularity;
61 };
62 
63 
64 #endif
CaloSwEta1e_g3::CaloSwEta1e_g3
CaloSwEta1e_g3()=delete
CaloSwEta1e_g3
Definition: CaloSwEta1e_g3.h:37
CaloSwEta1e_g3::s_middle_layer_granularity
static const float s_middle_layer_granularity
Definition: CaloSwEta1e_g3.h:83
Array.h
Simple multidimensional arrays.
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
CaloSwEta1e_g3::makeCorrection
virtual void makeCorrection(const Context &myctx, xAOD::CaloCluster *cluster) const override
Definition: CaloSwEta1e_g3.cxx:43
CaloClusterCorrection.h
CaloSwEta1e_g3::m_correction
Constant< CxxUtils::Array< 3 > > m_correction
Definition: CaloSwEta1e_g3.h:78
CaloSwEta1e_g3::m_correction_coef
Constant< float > m_correction_coef
Definition: CaloSwEta1e_g3.h:79
CaloSwEta1e_g3::toolType
virtual const std::string & toolType() const override
Definition: CaloSwEta1e_g3.cxx:96
CaloSwEta1e_g3::m_correction_degree
Constant< int > m_correction_degree
Definition: CaloSwEta1e_g3.h:80
CaloUtils::ToolConstantsContext
Context object for retrieving ToolConstant values.
Definition: ToolWithConstants.h:61
CaloClusterCorrection
Definition: CaloClusterCorrection.h:55
CaloUtils::ToolConstant
Constant of a ToolWithConstants.
Definition: ToolWithConstants.h:202
CaloSwEta1e_g3::m_region
Constant< int > m_region
Definition: CaloSwEta1e_g3.h:81