ATLAS Offline Software
CaloSwGap_g3.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_CALOSWGAP_G3_H
6 #define CALOCLUSTERCORRECTION_CALOSWGAP_G3_H
7 
8 /********************************************************************
9 
10 NAME: CaloSwGap_g3.h
11 PACKAGE: offline/Calorimeter/CaloClusterCorrection
12 
13 AUTHORS: L. Carminati
14 CREATED: Feb 2003
15 
16 PURPOSE: Correction for the barrel-endcap cracks
17  Tuned using 100 GeV photons
18  Correction tuned on G3 samples.
19 
20 Updated: May 5, 2004 (Sven Menke)
21  base class changed from algo to tool
22 
23 Updated: June, 2004 (sss)
24  Use ToolWithConstants to get correction constants.
25 ********************************************************************/
26 
27 // INCLUDE HEADER FILES:
28 
30 #include "CaloConditions/Array.h"
33 
36 {
37 public:
39  using CaloClusterCorrection::CaloClusterCorrection;
40 
44  virtual StatusCode initialize() override;
45 
46  virtual void makeCorrection (const Context& myctx,
47  xAOD::CaloCluster* cluster) const override;
48 
49 
54  virtual StatusCode setCaloCellContainerName (const std::string& name) override;
55 
56 
57  private:
58  CaloSwGap_g3() = delete;
59 
60  Constant<float> m_etamin_crack { this, "etamin_crack", "" };
61  Constant<float> m_etamax_crack { this, "etamax_crack", "" };
62  Constant<CxxUtils::Array<1> > m_scint_weight { this, "scint_weight", "" };
63  Constant<CxxUtils::Array<1> > m_correction { this, "correction", "" };
64 
67  { this, "cells_name", "AllCalo", "" };
68 };
69 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ISetCaloCellContainerName
Allow changing the name of the CaloCellContainer used by a tool.
Definition: ISetCaloCellContainerName.h:23
CaloSwGap_g3
Definition: CaloSwGap_g3.py:1
ISetCaloCellContainerName.h
CaloSwGap_g3::m_etamax_crack
Constant< float > m_etamax_crack
Definition: CaloSwGap_g3.h:78
SG::ReadHandleKey< CaloCellContainer >
Array.h
Simple multidimensional arrays.
CaloSwGap_g3::m_etamin_crack
Constant< float > m_etamin_crack
Definition: CaloSwGap_g3.h:77
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
CaloSwGap_g3::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: CaloSwGap_g3.cxx:54
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloSwGap_g3::m_scint_weight
Constant< CxxUtils::Array< 1 > > m_scint_weight
Definition: CaloSwGap_g3.h:79
CaloClusterCorrection.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CaloSwGap_g3::CaloSwGap_g3
CaloSwGap_g3()=delete
CaloSwGap_g3::m_correction
Constant< CxxUtils::Array< 1 > > m_correction
Definition: CaloSwGap_g3.h:80
CaloUtils::ToolConstantsContext
Context object for retrieving ToolConstant values.
Definition: ToolWithConstants.h:61
CaloClusterCorrection
Definition: CaloClusterCorrection.h:55
CaloSwGap_g3::m_cells_name
SG::ReadHandleKey< CaloCellContainer > m_cells_name
Property: The name of the container in which to look to find tile cells.
Definition: CaloSwGap_g3.h:84
CaloUtils::ToolConstant
Constant of a ToolWithConstants.
Definition: ToolWithConstants.h:202
CaloSwGap_g3::setCaloCellContainerName
virtual StatusCode setCaloCellContainerName(const std::string &name) override
Change the name of the CaloCellContainer used by this tool.
Definition: CaloSwGap_g3.cxx:133
CaloSwGap_g3::makeCorrection
virtual void makeCorrection(const Context &myctx, xAOD::CaloCluster *cluster) const override
Definition: CaloSwGap_g3.cxx:62