#include <SpacePoint.h>
|
static constexpr std::size_t | covIndex (unsigned int i, unsigned int j) |
| Returns the internal index of correlation structure for coordinates i and j . More...
|
|
Definition at line 23 of file SpacePoint.h.
recob::SpacePoint::SpacePoint |
( |
| ) |
|
Definition at line 17 of file SpacePoint.cxx.
ID_t fID
Default constructor.
Double32_t fXYZ[3]
position of SpacePoint in xyz
Double32_t fChisq
Chisquare.
Double32_t fErrXYZ[6]
Error matrix (lower triangular).
recob::SpacePoint::SpacePoint |
( |
Double32_t const * |
xyz, |
|
|
Double32_t const * |
err, |
|
|
Double32_t |
chisq, |
|
|
int |
id = InvalidID |
|
) |
| |
Definition at line 26 of file SpacePoint.cxx.
33 for(
int i = 0; i < 3; ++i)
fXYZ[i] = xyz[i];
34 for(
int i = 0; i < 6; ++i)
fErrXYZ[i] =
err[i];
EResult err(const char *call)
ID_t fID
Default constructor.
Double32_t fXYZ[3]
position of SpacePoint in xyz
Double32_t fChisq
Chisquare.
Double32_t fErrXYZ[6]
Error matrix (lower triangular).
Double32_t recob::SpacePoint::Chisq |
( |
| ) |
const |
|
inline |
Definition at line 78 of file SpacePoint.h.
Double32_t fChisq
Chisquare.
double recob::SpacePoint::covariance |
( |
unsigned int |
i, |
|
|
unsigned int |
j |
|
) |
| const |
Returns the error matrix element for two position coordinates (0
for x, 1
for y and 2
for z)
Definition at line 38 of file SpacePoint.cxx.
static constexpr std::size_t covIndex(unsigned int i, unsigned int j)
Returns the internal index of correlation structure for coordinates i and j.
Double32_t fErrXYZ[6]
Error matrix (lower triangular).
constexpr std::size_t recob::SpacePoint::covIndex |
( |
unsigned int |
i, |
|
|
unsigned int |
j |
|
) |
| |
|
static |
Returns the internal index of correlation structure for coordinates i
and j
.
Definition at line 46 of file SpacePoint.cxx.
48 constexpr std::size_t offsets[3U] = { 0U, 1U, 3U };
50 if (i < j) std::swap(i, j);
51 return offsets[i] + j;
const Double32_t * recob::SpacePoint::ErrXYZ |
( |
| ) |
const |
|
inline |
Definition at line 77 of file SpacePoint.h.
Double32_t fErrXYZ[6]
Error matrix (lower triangular).
Definition at line 75 of file SpacePoint.h.
ID_t fID
Default constructor.
Returns the position of the point in world coordinates [cm].
Definition at line 80 of file SpacePoint.h.
Double32_t fXYZ[3]
position of SpacePoint in xyz
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
const Double32_t * recob::SpacePoint::XYZ |
( |
| ) |
const |
|
inline |
Definition at line 76 of file SpacePoint.h.
Double32_t fXYZ[3]
position of SpacePoint in xyz
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const SpacePoint & |
a |
|
) |
| |
|
friend |
Definition at line 58 of file SpacePoint.cxx.
60 o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
61 o <<
" SpacePoint ID " << std::setw(5) <<
std::right <<
a.ID()
62 <<
" (X,Y,Z) = (" << std::setw(5) <<
std::right <<
a.XYZ()[0]
63 <<
" , " << std::setw(5) <<
std::right <<
a.XYZ()[1]
64 <<
" , " << std::setw(5) <<
std::right <<
a.XYZ()[2]
Double32_t recob::SpacePoint::fChisq |
|
private |
Double32_t recob::SpacePoint::fErrXYZ[6] |
|
private |
Error matrix (lower triangular).
Definition at line 37 of file SpacePoint.h.
ID_t recob::SpacePoint::fID |
|
private |
Double32_t recob::SpacePoint::fXYZ[3] |
|
private |
Special value for an invalid ID.
Definition at line 29 of file SpacePoint.h.
The documentation for this class was generated from the following files: