#include <PhotonsDirectionTool.h>
Definition at line 21 of file PhotonsDirectionTool.h.
◆ PhotonsDirectionTool()
DerivationFramework::PhotonsDirectionTool::PhotonsDirectionTool |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ addBranches()
StatusCode DerivationFramework::PhotonsDirectionTool::addBranches |
( |
| ) |
const |
|
finaloverridevirtual |
Definition at line 48 of file PhotonsDirectionTool.cxx.
50 const EventContext& ctx = Gaudi::Hive::currentContext();
54 auto recEta = std::make_unique<std::vector<float>>();
55 auto recPhi = std::make_unique<std::vector<float>>();
56 auto recEt = std::make_unique<std::vector<float>>();
57 auto recE = std::make_unique<std::vector<float>>();
62 float eta(0.0),
phi(0.0),
e(0.0),
et(0.0);
64 if (ph->nCaloClusters() > 0) {
72 "Couldn't retrieve photon cluster, will use photon 4-momentum");
78 recEta->push_back(
eta);
79 recPhi->push_back(
phi);
91 ATH_CHECK(phis.record(std::move(recPhi)));
101 return StatusCode::SUCCESS;
◆ initialize()
StatusCode DerivationFramework::PhotonsDirectionTool::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 27 of file PhotonsDirectionTool.cxx.
36 ATH_MSG_ERROR(
"You are requesting the PhotonsDirectionTool but have "
37 "provided no SG names for any of the results");
38 return StatusCode::FAILURE;
44 return StatusCode::SUCCESS;
◆ m_collName
Initial value:{ this,
"PhotonContainer",
"Photons",
"Input Photons" }
Definition at line 33 of file PhotonsDirectionTool.h.
◆ m_doE
bool DerivationFramework::PhotonsDirectionTool::m_doE = false |
|
private |
◆ m_doEt
bool DerivationFramework::PhotonsDirectionTool::m_doEt = false |
|
private |
◆ m_doEta
bool DerivationFramework::PhotonsDirectionTool::m_doEta = false |
|
private |
◆ m_doPhi
bool DerivationFramework::PhotonsDirectionTool::m_doPhi = false |
|
private |
◆ m_sgE
◆ m_sgEt
◆ m_sgEta
SG::WriteHandleKey<std::vector<float> > DerivationFramework::PhotonsDirectionTool::m_sgEta |
|
private |
◆ m_sgPhi
SG::WriteHandleKey<std::vector<float> > DerivationFramework::PhotonsDirectionTool::m_sgPhi |
|
private |
The documentation for this class was generated from the following files: