ATLAS Offline Software
CaloClusterUpdate.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_CALOCLUSTER_UPDATE_H
6 #define CALOCLUSTERCORRECTION_CALOCLUSTER_UPDATE_H
7 /********************************************************************
8 
9 NAME: CaloClusterUpdate.h
10 PACKAGE: offline/LArCalorimeter/CaloclusterRec
11 
12 AUTHORS: H. Ma, S. Rajagopalan
13 CREATED: Nov, 2000
14 
15 PURPOSE: Recalculate the total energy, eta,phi of a cluster.
16  This should be called after all corrections to individual
17  samplings are done.
18 
19  energy = Sum of energy in all sampling
20  eta = average of eta1 and eta2, weighted by energy and
21  relative resolution.
22  This needs to be tuned.
23  phi = phi of second sampling.
24 
25 Base class: CaloClusterCorrection (tool)
26 
27 Atrecon Orig: emreco/qetamod.F
28 
29 Updated: May 10, 2000 (SR, HM)
30  Migrated to Athena Framework from PASO
31 
32 Updated: Jan 5, 2001 (HM)
33  QA.
34 
35 Updated: May 5, 2004 (Sven Menke)
36  base class changed from algo to tool
37 
38 Updated: March, 2005 (Maarten Boonekamp)
39  moved to CaloClusterCorrection
40 
41 
42 ********************************************************************/
43 
45 
47 {
48 
49  public:
50  // constructor
51  using CaloClusterCorrection::CaloClusterCorrection;
52 
53  // virtual method in CaloClusterCorrection
54  virtual void makeCorrection (const Context& myctx,
55  xAOD::CaloCluster* cluster) const override;
56 
57  private:
58 
59  // Weight more layer 1 in eta average
60  Gaudi::Property<float> m_w1
61  { this, "layer1_weight", 3, "layer 1 additional weight in eta average" };
62 
63  // If true, the total cluster energy is set to the sum of all layer energies.
65  { this, "update_energy", "Should cluster total energy be updated?" };
66 };
67 
68 
69 #endif
CaloClusterUpdate::makeCorrection
virtual void makeCorrection(const Context &myctx, xAOD::CaloCluster *cluster) const override
Definition: CaloClusterUpdate.cxx:48
CaloClusterUpdate::m_update_energy
Constant< bool > m_update_energy
Definition: CaloClusterUpdate.h:100
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
CaloClusterCorrection.h
CaloClusterUpdate
Definition: CaloClusterUpdate.h:47
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
CaloClusterUpdate::m_w1
Gaudi::Property< float > m_w1
Definition: CaloClusterUpdate.h:96