#include <RecEmcTofHit.h>
Definition at line 19 of file RecEmcTofHit.h.
◆ RecEmcTofHit() [1/3]
RecEmcTofHit::RecEmcTofHit |
( |
| ) |
|
◆ RecEmcTofHit() [2/3]
Definition at line 16 of file RecEmcTofHit.cxx.
19{
20 m_cellId = id;
21 m_energy = e;
22 m_pos = pos;
23}
◆ ~RecEmcTofHit()
RecEmcTofHit::~RecEmcTofHit |
( |
| ) |
|
◆ RecEmcTofHit() [3/3]
Definition at line 29 of file RecEmcTofHit.cxx.
30{
31 m_cellId = tofHit.
CellId();
32 m_energy = tofHit.
Energy();
34}
Identifier CellId() const
HepPoint3D Position() const
◆ Assign()
Definition at line 69 of file RecEmcTofHit.cxx.
72{
73 m_cellId = id;
74 m_energy = e;
75 m_pos = pos;
76}
◆ CellId() [1/2]
◆ CellId() [2/2]
void RecEmcTofHit::CellId |
( |
const Identifier & |
id | ) |
|
◆ Clear()
void RecEmcTofHit::Clear |
( |
| ) |
|
Definition at line 78 of file RecEmcTofHit.cxx.
79{
81 m_energy = 0;
83}
HepGeom::Point3D< double > HepPoint3D
void clear()
Reset to invalid state.
Referenced by RecEmcTofHit().
◆ DistanceTo()
double RecEmcTofHit::DistanceTo |
( |
const RecEmcTofHit & |
tofHit | ) |
|
Definition at line 85 of file RecEmcTofHit.cxx.
86{
87
88
89
90
91
92 Hep3Vector pos1(m_pos);
93 Hep3Vector pos2(tofHit.m_pos);
94
95 return fabs(pos1.deltaPhi(pos2));
96
97
98
99}
◆ Energy() [1/2]
double RecEmcTofHit::Energy |
( |
| ) |
const |
|
inline |
◆ Energy() [2/2]
void RecEmcTofHit::Energy |
( |
const double |
e | ) |
|
◆ IntCellId()
int RecEmcTofHit::IntCellId |
( |
| ) |
const |
Definition at line 47 of file RecEmcTofHit.cxx.
48{
51 return im+layer*88;
52}
static int phi_module(const Identifier &id)
static int layer(const Identifier &id)
Referenced by operator<<().
◆ operator<()
Definition at line 33 of file RecEmcTofHit.h.
33 {
34 return m_energy < tofHit.m_energy;
35 }
◆ operator=()
Definition at line 36 of file RecEmcTofHit.cxx.
37{
38 if(this!=&tofHit) {
39 m_cellId = tofHit.
CellId();
40 m_energy = tofHit.
Energy();
42 }
43 return *this;
44}
◆ operator>()
Definition at line 37 of file RecEmcTofHit.h.
37 {
38 return m_energy > tofHit.m_energy;
39 }
◆ Position() [1/2]
◆ Position() [2/2]
void RecEmcTofHit::Position |
( |
const HepPoint3D |
pos | ) |
|
◆ ZPosition() [1/2]
double RecEmcTofHit::ZPosition |
( |
| ) |
const |
|
inline |
◆ ZPosition() [2/2]
void RecEmcTofHit::ZPosition |
( |
const double |
z | ) |
|
The documentation for this class was generated from the following files: