ATLAS Offline Software
CaloLongWeights_v2.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_CALOLONGWEIGHTS_V2_H
6 #define CALOCLUSTERCORRECTION_CALOLONGWEIGHTS_V2_H
7 /********************************************************************
8 
9 NAME: CaloLongWeights_v2.h
10 PACKAGE: offline/Calorimeter/CaloClusterCorrection
11 
12 AUTHORS: M. Aharrouche
13 CREATED: Jan 25, 2006
14 
15 PURPOSE: correction for the energy lost behind the calorimeter,
16  between presampler and the calorimeter and in dead material
17  in front of the presampler.
18 
19 ********************************************************************/
20 
22 #include "CaloConditions/Array.h"
23 
24 
26 {
27 public:
30 
31 
32  virtual void makeTheCorrection (const Context& myctx,
33  xAOD::CaloCluster* cluster,
34  const CaloDetDescrElement* elt,
35  float eta,
36  float adj_eta,
37  float phi,
38  float adj_phi,
39  CaloSampling::CaloSample samp) const override;
40 
41 
42  private:
43 
44 
45  Constant<CxxUtils::Array<3> > m_correction { this, "correction", "" };
46  Constant<CxxUtils::Array<1> > m_energies { this, "energies", "" };
47  Constant<int> m_degree { this, "degree", "" };
48  Constant<float> m_etamax { this, "EtaMax", "" };
49  Constant<float> m_barrel_frontier { this, "EtaBarrel", "" };
50  Constant<float> m_endcap_frontier { this, "EtaEndCap", "" };
51 };
52 
53 #endif
54 
CaloLongWeights_v2::m_degree
Constant< int > m_degree
Definition: CaloLongWeights_v2.h:59
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
Array.h
Simple multidimensional arrays.
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
CaloLongWeights_v2::m_endcap_frontier
Constant< float > m_endcap_frontier
Definition: CaloLongWeights_v2.h:62
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
CaloClusterCorrectionCommon::CaloClusterCorrectionCommon
CaloClusterCorrectionCommon(const std::string &type, const std::string &name, const IInterface *parent)
Inherit constructor.
Definition: CaloClusterCorrectionCommon.cxx:408
CaloClusterCorrectionCommon.h
CaloLongWeights_v2::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: CaloLongWeights_v2.cxx:23
CaloLongWeights_v2::m_barrel_frontier
Constant< float > m_barrel_frontier
Definition: CaloLongWeights_v2.h:61
CaloLongWeights_v2::m_etamax
Constant< float > m_etamax
Definition: CaloLongWeights_v2.h:60
CaloUtils::ToolConstantsContext
Context object for retrieving ToolConstant values.
Definition: ToolWithConstants.h:61
CaloLongWeights_v2::m_energies
Constant< CxxUtils::Array< 1 > > m_energies
Definition: CaloLongWeights_v2.h:58
CaloClusterCorrectionCommon
Code common to cluster corrections.
Definition: CaloClusterCorrectionCommon.h:42
CaloUtils::ToolConstant
Constant of a ToolWithConstants.
Definition: ToolWithConstants.h:202
CaloLongWeights_v2::m_correction
Constant< CxxUtils::Array< 3 > > m_correction
Definition: CaloLongWeights_v2.h:57
CaloLongWeights_v2
Definition: CaloLongWeights_v2.h:26