ATLAS Offline Software
CaloSwEta2e_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_CALOSWETA2E_G3_H
6 #define CALOCLUSTERCORRECTION_CALOSWETA2E_G3_H
7 /********************************************************************
8 
9 NAME: CaloSwEta2e_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 2 as a function of eta
16  for endcap EM calorimeter.
17  (Tuned using 100 GeV E photons)
18  base class: CaloClusterCorrection
19  Correction tuned on G3 samples.
20 
21 Atrecon Orig: emreco/qeta2e.age
22 
23 Updated: Feb 11, 2003 (MW)
24  new correction for DC1 data
25 
26 Updated: May 5, 2004 (Sven Menke)
27  base class changed from algo to tool
28 
29 Updated: June, 2004 (sss)
30  Use ToolWithConstants to get correction constants.
31 ********************************************************************/
32 
34 #include "CaloConditions/Array.h"
35 
37 {
38 public:
40  using CaloClusterCorrection::CaloClusterCorrection;
41 
42 
43  // Virtual function in 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  CaloSwEta2e_g3() = delete;
53 
54  Constant<CxxUtils::Array<2> > m_correction { this, "correction", "" };
55  Constant<int> m_correction_degree { this, "correction_degree", "" };
56  Constant<int> m_region { this, "region", 1, "" };
57 
58  static const float s_middle_layer_granularity;
59 };
60 
61 
62 #endif
CaloSwEta2e_g3::CaloSwEta2e_g3
CaloSwEta2e_g3()=delete
CaloSwEta2e_g3::m_correction_degree
Constant< int > m_correction_degree
Definition: CaloSwEta2e_g3.h:79
Array.h
Simple multidimensional arrays.
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
CaloSwEta2e_g3::m_correction
Constant< CxxUtils::Array< 2 > > m_correction
Definition: CaloSwEta2e_g3.h:78
CaloSwEta2e_g3::s_middle_layer_granularity
static const float s_middle_layer_granularity
Definition: CaloSwEta2e_g3.h:82
CaloSwEta2e_g3::makeCorrection
virtual void makeCorrection(const Context &myctx, xAOD::CaloCluster *cluster) const override
Definition: CaloSwEta2e_g3.cxx:44
CaloClusterCorrection.h
CaloSwEta2e_g3::m_region
Constant< int > m_region
Definition: CaloSwEta2e_g3.h:80
CaloSwEta2e_g3::toolType
virtual const std::string & toolType() const override
Definition: CaloSwEta2e_g3.cxx:75
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
CaloSwEta2e_g3
Definition: CaloSwEta2e_g3.h:37