 |
ATLAS Offline Software
|
Go to the documentation of this file.
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;
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) {
66 eta = gCluster->
etaBE(2);
67 phi = gCluster->
phi();
72 "Couldn't retrieve photon cluster, will use photon 4-momentum");
78 recEta->push_back(eta);
79 recPhi->push_back(phi);
101 return StatusCode::SUCCESS;
virtual double phi() const
The azimuthal angle ( ) of the particle.
Extra patterns decribing particle interation process.
const std::string & key() const
Return the StoreGate ID for the referenced object.
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
Description of a calorimeter cluster.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
#define ATH_MSG_WARNING(x)
virtual double e() const
The total energy of the particle.