ATLAS Offline Software
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$
15 #include "xAODEgamma/Egamma.h"
17 
18 
19 namespace D3PD {
20 
21 
29  (const std::string& type,
30  const std::string& name,
31  const IInterface* parent)
33 {
34  book().ignore(); // Avoid coverity warnings.
35 }
36 
37 
38 
43 {
44  CHECK( addVariable ("reta", m_reta) );
45  CHECK( addVariable ("rphi", m_rphi) );
46  return StatusCode::SUCCESS;
47 }
48 
49 
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
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:68
D3PD::egammaRetaphiFillerTool::m_rphi
float * m_rphi
Variable: E233 / E237.
Definition: egammaRetaphiFillerTool.h:59
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
Egamma
Definition: ClusMomentumPlots.cxx:11
D3PD::egammaRetaphiFillerTool::egammaRetaphiFillerTool
egammaRetaphiFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: egammaRetaphiFillerTool.cxx:29
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
Egamma.h
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
egammaRetaphiFillerTool.h
Fill reta/rphi.
D3PD::egammaRetaphiFillerTool::m_reta
float * m_reta
Variable: E237 / E277.
Definition: egammaRetaphiFillerTool.h:56
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
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition: BlockFillerTool.h:68
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
D3PD::egammaRetaphiFillerTool::book
virtual StatusCode book() final
Book variables for this block.
Definition: egammaRetaphiFillerTool.cxx:42
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
errorcheck.h
Helpers for checking error return status codes and reporting errors.
D3PD::egammaRetaphiFillerTool::fill
virtual StatusCode fill(const xAOD::Egamma &p) override
Fill one block — type-safe version.
Definition: egammaRetaphiFillerTool.cxx:58
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
xAOD::EgammaParameters::e277
@ e277
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7
Definition: EgammaEnums.h:80
xAOD::EgammaParameters::e237
@ e237
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x7
Definition: EgammaEnums.h:77