29 ATH_MSG_ERROR(
"You are requesting the PhotonsDirectionTool but have "
30 "provided no SG names for any of the results");
31 return StatusCode::FAILURE;
37 return StatusCode::SUCCESS;
46 auto recEta = std::make_unique<std::vector<float>>();
47 auto recPhi = std::make_unique<std::vector<float>>();
48 auto recEt = std::make_unique<std::vector<float>>();
49 auto recE = std::make_unique<std::vector<float>>();
54 float eta(0.0),
phi(0.0), e(0.0),
et(0.0);
56 if (ph->nCaloClusters() > 0) {
64 "Couldn't retrieve photon cluster, will use photon 4-momentum");
70 recEta->push_back(
eta);
71 recPhi->push_back(
phi);
79 ATH_CHECK(etas.record(std::move(recEta)));
93 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
float et(const xAOD::jFexSRJetRoI *j)
static const Attributes_t empty
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
virtual double e() const
The total energy of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
::StatusCode StatusCode
StatusCode definition for legacy code.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Photon_v1 Photon
Definition of the current "egamma version".
Extra patterns decribing particle interation process.