Simple helper class for defining track parameters for charged particles.
More...
#include <Charged.h>
Simple helper class for defining track parameters for charged particles.
- Todo
- Do we really need a
double for the charge? Would an int be sufficient?
- Author
- Christian Gumpert chris.nosp@m.tian.nosp@m..gump.nosp@m.ert@.nosp@m.cern..nosp@m.ch
Definition at line 26 of file Charged.h.
◆ Charged() [1/3]
| Trk::Charged::Charged |
( |
const double & | charge = 1. | ) |
|
|
inline |
Default constructor.
Definition at line 30 of file Charged.h.
30 :
32 {}
double charge() const
Return the charge.
double m_charge
the charge value
◆ Charged() [2/3]
| Trk::Charged::Charged |
( |
const Charged & | | ) |
|
|
default |
◆ Charged() [3/3]
| Trk::Charged::Charged |
( |
Charged && | | ) |
|
|
default |
◆ ~Charged()
| Trk::Charged::~Charged |
( |
| ) |
|
|
default |
◆ charge()
| double Trk::Charged::charge |
( |
| ) |
const |
|
inline |
Return the charge.
Definition at line 50 of file Charged.h.
◆ operator!=()
| bool Trk::Charged::operator!= |
( |
const Charged & | rOther | ) |
const |
|
inline |
Inequality operator.
Definition at line 63 of file Charged.h.
64 {
65 return !(*this == rOther);
66 }
◆ operator=() [1/2]
Move assignment operator.
◆ operator=() [2/2]
◆ operator==()
| bool Trk::Charged::operator== |
( |
const Charged & | rOther | ) |
const |
|
inline |
Equality operator.
Definition at line 56 of file Charged.h.
57 {
60 }
constexpr double tolerance
◆ setCharge()
| void Trk::Charged::setCharge |
( |
double | charge | ) |
|
|
inline |
◆ m_charge
| double Trk::Charged::m_charge |
|
private |
the charge value
Definition at line 69 of file Charged.h.
The documentation for this class was generated from the following file: