Class ChargedPolicy¶
Defined in File ChargePolicy.hpp
Class Documentation¶
-
class
Acts
::
ChargedPolicy
¶ policy class for charged particles/tracks
This type is meant to be used as template parameter to the SingleTrackParameters class and its derived classes in order to provide a distinction between charged and neutral track (parameters) at the C++ type level. This allows other class to employ optimized algorithms for either case by using template specializations.
Public Functions
-
ChargedPolicy
(double charge)¶ constructor with given charge
- Parameters
charge
: electric charge of particle/track (parameters)
-
void
flipSign
()¶ flip sign of electric charge
-
double
getCharge
() const¶ retrieve stored value of the electric charge
- Return
value for charge
-
bool
operator!=
(const ChargedPolicy &rhs) const¶ inequality operator
- Return
true
if rhs has a different charge, otherwisefalse
-
bool
operator==
(const ChargedPolicy &rhs) const¶ equality operator
- Return
true
if rhs has the same charge, otherwisefalse
-
void
setCharge
(double charge)¶ sets charge
- Parameters
charge
: new value for the electric charge
-