#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 EventContext & |
ctx | ) |
const |
|
finaloverridevirtual |
Definition at line 48 of file PhotonsDirectionTool.cxx.
53 auto recEta = std::make_unique<std::vector<float>>();
54 auto recPhi = std::make_unique<std::vector<float>>();
55 auto recEt = std::make_unique<std::vector<float>>();
56 auto recE = std::make_unique<std::vector<float>>();
61 float eta(0.0),
phi(0.0),
e(0.0),
et(0.0);
63 if (ph->nCaloClusters() > 0) {
71 "Couldn't retrieve photon cluster, will use photon 4-momentum");
77 recEta->push_back(
eta);
78 recPhi->push_back(
phi);
90 ATH_CHECK(phis.record(std::move(recPhi)));
100 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: