Skip to content
Snippets Groups Projects
Commit 3520637f authored by Johannes Elmsheuser's avatar Johannes Elmsheuser
Browse files

Merge branch 'CaloCell_also_overload_et' into 'master'

CaloCell, add overload for et on top of e and sinTh

See merge request atlas/athena!42243
parents 3b8414c8 4a7d4c6c
No related branches found
No related tags found
No related merge requests found
......@@ -124,9 +124,10 @@ public:
virtual double cotTh () const final;
/** @brief get mass (hardcoded to be null) */
virtual double m () const final;
/** @brief get energy (data member) (synonym to method e() */
/** @brief get energy (data member) (synonym to method energy() */
virtual double e () const final;
/** @brief get et */
virtual double et () const final;
/** @brief get x (through CaloDetDescrElement) */
virtual float x () const final;
/** @brief get y (through CaloDetDescrElement) */
......@@ -403,6 +404,11 @@ double CaloCell::cosPhi() const
return m_caloDDE->cosPhi();
}
inline double
CaloCell::et() const
{
return this->e() * this->sinTh();
}
inline
float CaloCell::x() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment