ATLAS Offline Software
PhysicsAnalysis
D3PDMaker
egammaD3PDMaker
src
egammaLayer1ExtraFillerTool.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$
14
#include "
egammaLayer1ExtraFillerTool.h
"
15
#include "
AthenaKernel/errorcheck.h
"
16
17
18
namespace
D3PD
{
19
20
27
egammaLayer1ExtraFillerTool::egammaLayer1ExtraFillerTool
28
(
const
std::string&
type
,
29
const
std::string&
name
,
30
const
IInterface*
parent
)
31
:
BlockFillerTool
<
xAOD
::
Egamma
> (
type
,
name
,
parent
)
32
{
33
book
().ignore();
// Avoid coverity warnings.
34
}
35
36
37
41
StatusCode
egammaLayer1ExtraFillerTool::book
()
42
{
43
CHECK
(
addVariable
(
"deltaEs"
,
m_deltaEs
) );
44
return
StatusCode::SUCCESS;
45
}
46
47
56
StatusCode
egammaLayer1ExtraFillerTool::fill
(
const
xAOD::Egamma
&
p
)
57
{
58
float
e2tsts1
= -999;
59
float
emins1
= -999;
60
if
(!
p
.showerShapeValue (
e2tsts1
,
xAOD::EgammaParameters::e2tsts1
) ||
61
!
p
.showerShapeValue (
emins1
,
xAOD::EgammaParameters::emins1
))
62
*
m_deltaEs
= -999;
63
else
64
*
m_deltaEs
=
e2tsts1
-
emins1
;
65
return
StatusCode::SUCCESS;
66
}
67
68
69
}
// namespace D3PD
D3PD::egammaLayer1ExtraFillerTool::fill
virtual StatusCode fill(const xAOD::Egamma &p) override
Fill one block — type-safe version.
Definition:
egammaLayer1ExtraFillerTool.cxx:56
Egamma
Definition:
ClusMomentumPlots.cxx:11
D3PD::egammaLayer1ExtraFillerTool::m_deltaEs
float * m_deltaEs
Variable: difference between 2nd maximum and 1st minimum in strips.
Definition:
egammaLayer1ExtraFillerTool.h:56
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition:
ICaloAffectedTool.h:24
D3PD::AddVariable::addVariable
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Add a variable to the tuple.
Definition:
AddVariable.cxx:85
xAOD::Egamma_v1
Definition:
Egamma_v1.h:56
D3PD
Block filler tool for noisy FEB information.
Definition:
CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::EgammaParameters::emins1
@ emins1
energy reconstructed in the strip with the minimal value between the first and second maximum
Definition:
EgammaEnums.h:143
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition:
BlockFillerTool.h:65
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition:
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
errorcheck.h
Helpers for checking error return status codes and reporting errors.
D3PD::egammaLayer1ExtraFillerTool::book
virtual StatusCode book() final
Book variables for this block.
Definition:
egammaLayer1ExtraFillerTool.cxx:41
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
D3PD::egammaLayer1ExtraFillerTool::egammaLayer1ExtraFillerTool
egammaLayer1ExtraFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition:
egammaLayer1ExtraFillerTool.cxx:28
xAOD::EgammaParameters::e2tsts1
@ e2tsts1
energy of the cell corresponding to second energy maximum in the first sampling
Definition:
EgammaEnums.h:108
egammaLayer1ExtraFillerTool.h
Fill additional layer 1 quantities not available directly as details.
Generated on Sun Dec 22 2024 21:09:48 for ATLAS Offline Software by
1.8.18