Class to have a type for indicating cylindrical coordinate components. More...
#include <BasicVector.h>
Public Types | |
enum | Kind { eCartesian = 0, eCylindrical = 1, eSpherical = 2 } |
Coordinate type integral typification. More... | |
typedef utl::ConsecutiveEnumFactory < Kind, eSpherical, fgKindTags, utl::ThrowPolicy< Kind, CoordinateSystemException > > | KindCreator |
Convenience typedef for creation of Kind enumerators. More... | |
Public Member Functions | |
virtual double | X (double rho, double phi, double z) const override |
virtual double | Y (double rho, double phi, double z) const override |
virtual double | Z (double rho, double phi, double z) const override |
Static Public Member Functions | |
static const CoordinateType & | Create (const Kind k) |
Factory method via enumeration. More... | |
Static Public Attributes | |
static const char *const | fgKindTags [3] = { "cartesian", "cylindrical", "spherical" } |
Class to have a type for indicating cylindrical coordinate components.
The arguments are in the order rho
, phi
, z
.
Definition at line 127 of file BasicVector.h.
|
inherited |
Convenience typedef for creation of Kind enumerators.
Definition at line 79 of file BasicVector.h.
|
inherited |
Coordinate type integral typification.
Alternative typification via integral values for ease of streaming. Note that the values are explicitly defined with the integral value to be used in XML, binary files or database.
Enumerator | |
---|---|
eCartesian | |
eCylindrical | |
eSpherical |
Definition at line 62 of file BasicVector.h.
|
inlinestaticinherited |
Factory method via enumeration.
Definition at line 83 of file BasicVector.h.
References utl::BasicVector< HepVector >::CoordinateType::eCartesian, utl::BasicVector< HepVector >::CoordinateType::eCylindrical, and utl::BasicVector< HepVector >::CoordinateType::eSpherical.
|
overridevirtual |
Implements utl::BasicVector< HepVector >::CoordinateType.
Definition at line 34 of file BasicVector.cc.
|
overridevirtual |
Implements utl::BasicVector< HepVector >::CoordinateType.
Definition at line 45 of file BasicVector.cc.
|
overridevirtual |
Implements utl::BasicVector< HepVector >::CoordinateType.
Definition at line 56 of file BasicVector.cc.
|
staticinherited |
Coordinate type string typification Alternative typification via strings for ease of streaming and clarity.
Definition at line 71 of file BasicVector.h.