![]() |
ATLAS Offline Software
|
Simple helper class for defining track parameters for charged particles. More...
#include <Charged.h>
Public Member Functions | |
| Charged (const double &charge=1.) | |
| Default constructor. | |
| Charged (const Charged &)=default | |
| Copy constructor. | |
| Charged (Charged &&)=default | |
| Move constructor. | |
| ~Charged ()=default | |
| Destructor. | |
| Charged & | operator= (const Charged &)=default |
| Assignment operator. | |
| Charged & | operator= (Charged &&)=default |
| Move assignment operator. | |
| double | charge () const |
| Return the charge. | |
| void | setCharge (double charge) |
| Set the charge. | |
| bool | operator== (const Charged &rOther) const |
| Equality operator. | |
| bool | operator!= (const Charged &rOther) const |
| Inequality operator. | |
Private Attributes | |
| double | m_charge |
| the charge value | |
Simple helper class for defining track parameters for charged particles.
double for the charge? Would an int be sufficient?
|
inline |
|
default |
Copy constructor.
|
default |
Move constructor.
|
default |
Destructor.
|
inline |
|
inline |