Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
24 declareInterface<DerivationFramework::IAugmentationTool>(
this);
37 ATH_MSG_ERROR(
"You are requesting the PhotonsDirectionTool but have "
38 "provided no SG names for any of the results");
39 return StatusCode::FAILURE;
45 return StatusCode::SUCCESS;
51 const EventContext& ctx = Gaudi::Hive::currentContext();
55 auto recEta = std::make_unique<std::vector<float>>();
56 auto recPhi = std::make_unique<std::vector<float>>();
57 auto recEt = std::make_unique<std::vector<float>>();
58 auto recE = std::make_unique<std::vector<float>>();
63 float eta(0.0), phi(0.0),
e(0.0),
et(0.0);
65 if (ph->nCaloClusters() > 0) {
67 eta = gCluster->
etaBE(2);
68 phi = gCluster->
phi();
73 "Couldn't retrieve photon cluster, will use photon 4-momentum");
79 recEta->push_back(eta);
80 recPhi->push_back(phi);
102 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.