ATLAS Offline Software
Loading...
Searching...
No Matches
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
9NAME: CaloClusterUpdate.h
10PACKAGE: offline/LArCalorimeter/CaloclusterRec
11
12AUTHORS: H. Ma, S. Rajagopalan
13CREATED: Nov, 2000
14
15PURPOSE: 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
25Base class: CaloClusterCorrection (tool)
26
27Atrecon Orig: emreco/qetamod.F
28
29Updated: May 10, 2000 (SR, HM)
30 Migrated to Athena Framework from PASO
31
32Updated: Jan 5, 2001 (HM)
33 QA.
34
35Updated: May 5, 2004 (Sven Menke)
36 base class changed from algo to tool
37
38Updated: 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
virtual void makeCorrection(const Context &myctx, xAOD::CaloCluster *cluster) const override
Gaudi::Property< float > m_w1
Constant< bool > m_update_energy
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.