ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloClusterCorrection
src
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
44
#include "
CaloClusterCorrection/CaloClusterCorrection.h
"
45
46
class
CaloClusterUpdate
:
public
CaloClusterCorrection
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.
64
Constant<bool>
m_update_energy
65
{
this
,
"update_energy"
,
"Should cluster total energy be updated?"
};
66
};
67
68
69
#endif
CaloClusterCorrection.h
CaloClusterCorrection
Definition
CaloClusterCorrection.h:55
CaloClusterUpdate
Definition
CaloClusterUpdate.h:47
CaloClusterUpdate::makeCorrection
virtual void makeCorrection(const Context &myctx, xAOD::CaloCluster *cluster) const override
Definition
CaloClusterUpdate.cxx:48
CaloClusterUpdate::m_w1
Gaudi::Property< float > m_w1
Definition
CaloClusterUpdate.h:61
CaloClusterUpdate::m_update_energy
Constant< bool > m_update_energy
Definition
CaloClusterUpdate.h:65
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
Generated on
for ATLAS Offline Software by
1.17.0