ATLAS Offline Software
CaloTopoEMlayers.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /********************************************************************
6 
7 NAME: CaloTopoEMLayers.cxx
8 PACKAGE: offline/Calorimeter/CaloClusterCorrection
9 
10 AUTHORS: H. Ma, S. Rajagopalan
11 CREATED: Dec. 15, 1999
12 
13 PURPOSE: Computer eta, phi, energy of each layers of a cluster
14  Base class: CaloClusterCorrection (Algorithm)
15 
16 
17 Updated: May 10, 2000 (SR, HM)
18  Migrated to Athena Framework from PASO
19 
20 Updated: Jan 5, 2001 (HM)
21  QA.
22 Updated: Apr 14, 2003 (MW)
23  small bug fix for barrel/endcap region
24 
25 Updated: May 5, 2004 (Sven Menke)
26  base class changed from algo to tool
27 
28 Updated: January, 2005 (MB)
29  Move to Calorimeter/CaloClusterCorrection.
30 
31 Updated: March, 2005 (MB)
32  Temporary : this should not be needed when TopoCluster fills
33  information as sliding window (in particular eta0, phi0 of
34  clusters)
35 
36 *********************************************************************/
37 
38 // include header files
39 #include "CaloTopoEMlayers.h"
40 #include "CaloEvent/CaloCluster.h"
41 
42 
43 // -------------------------------------------------------------
44 // Constructor
45 // -------------------------------------------------------------
47  const std::string& name,
48  const IInterface* parent)
50 {
51  m_fill_cluster = false;
52 }
53 
54 
55 // Algorithm initialization.
57 {
59 
60  return StatusCode::SUCCESS;
61 }
62 
63 
65  const xAOD::CaloCluster* cluster,
66  double& eta,
67  double& phi) const
68 {
69  eta = cluster->eta();
70  phi = cluster->phi();
71 }
72 
73 
85  const int nphi,
86  const double detas2,
87  const double dphis2) const
88 {
90 
91  float f_neta = (float)neta;
92  float f_nphi = (float)nphi;
93 
94  w[0].first = detas2*f_neta;
95  w[1].first = w[0].first;
96  w[2].first = w[0].first;
97  w[3].first = w[0].first;
98 
99  w[0].second = dphis2*f_nphi;
100  w[1].second = w[0].second;
101  w[2].second = w[0].second;
102  w[3].second = w[0].second;
103 
104  return w;
105 }
xAOD::CaloCluster_v1::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
Definition: CaloCluster_v1.cxx:256
CaloTopoEMlayers::CaloTopoEMlayers
CaloTopoEMlayers()=delete
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
CaloClusterCorr::SamplingHelper
Sampling calculator helper class.
Definition: CaloFillRectangularCluster.cxx:186
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
CaloTopoEMlayers.h
CaloTopoEMlayers::initWindows
virtual WindowArray_t initWindows(const int neta, const int nphi, const double detas2, const double dphis2) const override
Set up layer-by-layer cluster window sizes.
Definition: CaloTopoEMlayers.cxx:84
CaloTopoEMlayers::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: CaloTopoEMlayers.cxx:56
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
xAOD::CaloCluster_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition: CaloCluster_v1.cxx:251
CaloFillRectangularCluster::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: CaloFillRectangularCluster.cxx:801
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
CaloFillRectangularCluster
Definition: CaloFillRectangularCluster.h:63
CaloTopoEMlayers::get_seed
virtual void get_seed(CaloClusterCorr::SamplingHelper &helper, const xAOD::CaloCluster *cluster, double &eta, double &phi) const override
Definition: CaloTopoEMlayers.cxx:64
CaloFillRectangularCluster::WindowArray_t
std::array< std::pair< double, double >, 4 > WindowArray_t
Holds the per-layer window sizes.
Definition: CaloFillRectangularCluster.h:122
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CaloFillRectangularCluster::m_fill_cluster
bool m_fill_cluster
Fill-cluster flag.
Definition: CaloFillRectangularCluster.h:185
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
readCCLHist.float
float
Definition: readCCLHist.py:83