ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
egammaD3PDMaker
src
egammaRetaphiFillerTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id$
12
13
14
#include "
egammaRetaphiFillerTool.h
"
15
#include "
xAODEgamma/Egamma.h
"
16
#include "
AthenaKernel/errorcheck.h
"
17
18
19
namespace
D3PD
{
20
21
28
egammaRetaphiFillerTool::egammaRetaphiFillerTool
29
(
const
std::string&
type
,
30
const
std::string& name,
31
const
IInterface* parent)
32
:
BlockFillerTool
<
xAOD
::
Egamma
> (
type
, name, parent)
33
{
34
book
().ignore();
// Avoid coverity warnings.
35
}
36
37
38
42
StatusCode
egammaRetaphiFillerTool::book
()
43
{
44
CHECK
(
addVariable
(
"reta"
,
m_reta
) );
45
CHECK
(
addVariable
(
"rphi"
,
m_rphi
) );
46
return
StatusCode::SUCCESS;
47
}
48
49
58
StatusCode
egammaRetaphiFillerTool::fill
(
const
xAOD::Egamma
& p)
59
{
60
float
e233 = 0;
61
float
e237 = 0;
62
float
e277 = 0;
63
e233 = p.showerShapeValue (
xAOD::EgammaParameters::e233
);
64
e237 = p.showerShapeValue (
xAOD::EgammaParameters::e237
);
65
e277 = p.showerShapeValue (
xAOD::EgammaParameters::e277
);
66
67
*
m_reta
= e277 ? e237 / e277 : 0;
68
*
m_rphi
= e237 ? e233 / e237 : 0;
69
70
return
StatusCode::SUCCESS;
71
}
72
73
74
}
// namespace D3PD
errorcheck.h
Helpers for checking error return status codes and reporting errors.
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
Egamma.h
D3PD::BlockFillerTool< xAOD::Egamma >::addVariable
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Definition
AddVariable.cxx:85
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition
BlockFillerTool.h:65
D3PD::egammaRetaphiFillerTool::book
virtual StatusCode book() final
Book variables for this block.
Definition
egammaRetaphiFillerTool.cxx:42
D3PD::egammaRetaphiFillerTool::m_rphi
float * m_rphi
Variable: E233 / E237.
Definition
egammaRetaphiFillerTool.h:59
D3PD::egammaRetaphiFillerTool::m_reta
float * m_reta
Variable: E237 / E277.
Definition
egammaRetaphiFillerTool.h:56
D3PD::egammaRetaphiFillerTool::fill
virtual StatusCode fill(const xAOD::Egamma &p) override
Fill one block — type-safe version.
Definition
egammaRetaphiFillerTool.cxx:58
D3PD::egammaRetaphiFillerTool::egammaRetaphiFillerTool
egammaRetaphiFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
egammaRetaphiFillerTool.cxx:29
egammaRetaphiFillerTool.h
Fill reta/rphi.
D3PD
Block filler tool for noisy FEB information.
Definition
CaloCellDetailsFillerTool.cxx:29
Egamma
Definition
ClusMomentumPlots.cxx:11
xAOD::EgammaParameters::e277
@ e277
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7
Definition
EgammaEnums.h:81
xAOD::EgammaParameters::e237
@ e237
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x7
Definition
EgammaEnums.h:78
xAOD::EgammaParameters::e233
@ e233
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x3 (in cell units e...
Definition
EgammaEnums.h:69
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::Egamma
Egamma_v1 Egamma
Definition of the current "egamma version".
Definition
Egamma.h:17
type
Generated on
for ATLAS Offline Software by
1.17.0