LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "SpacePoint.h"
Public Types | |
using | ID_t = int |
type of spacepoint ID More... | |
Public Member Functions | |
SpacePoint () | |
SpacePoint (Double32_t const *xyz, Double32_t const *err, Double32_t chisq, int id=InvalidID) | |
ID_t | ID () const |
const Double32_t * | XYZ () const |
const Double32_t * | ErrXYZ () const |
Double32_t | Chisq () const |
geo::Point_t | position () const |
Returns the position of the point in world coordinates [cm]. More... | |
double | covariance (unsigned int i, unsigned int j) const |
Static Public Member Functions | |
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... | |
Static Public Attributes | |
static constexpr ID_t | InvalidID = util::kBogusI |
Special value for an invalid ID. More... | |
Private Attributes | |
ID_t | fID |
Default constructor. More... | |
Double32_t | fXYZ [3] |
position of SpacePoint in xyz More... | |
Double32_t | fErrXYZ [6] |
Error matrix (lower triangular). More... | |
Double32_t | fChisq |
Chisquare. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, const SpacePoint &a) |
bool | operator< (const SpacePoint &a, const SpacePoint &b) |
Definition at line 23 of file SpacePoint.h.
using recob::SpacePoint::ID_t = int |
type of spacepoint ID
Definition at line 26 of file SpacePoint.h.
recob::SpacePoint::SpacePoint | ( | ) |
Definition at line 17 of file SpacePoint.cxx.
recob::SpacePoint::SpacePoint | ( | Double32_t const * | xyz, |
Double32_t const * | err, | ||
Double32_t | chisq, | ||
int | id = InvalidID |
||
) |
Definition at line 20 of file SpacePoint.cxx.
|
inline |
Definition at line 86 of file SpacePoint.h.
References fChisq.
Referenced by trkf::SpacePointAlg::makeSpacePoints().
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 30 of file SpacePoint.cxx.
References covIndex(), and fErrXYZ.
|
static |
Returns the internal index of correlation structure for coordinates i
and j
.
Definition at line 38 of file SpacePoint.cxx.
Referenced by covariance().
|
inline |
Definition at line 82 of file SpacePoint.h.
References fErrXYZ.
|
inline |
Definition at line 74 of file SpacePoint.h.
References fID.
Referenced by evd::RecoBaseDrawer::Edge3D(), trkf::SpacePointAlg::getAssociatedHits(), recob::operator<(), recob::operator<<(), and lar_pandora::LArPandoraEventDump::PrintSpacePoint().
|
inline |
Returns the position of the point in world coordinates [cm].
Definition at line 91 of file SpacePoint.h.
References fXYZ.
Referenced by ShowerRecoTools::ShowerTrackTrajToSpacePoint::CalculateElement(), shower::LArPandoraShowerAlg::DistanceBetweenSpacePoints(), shower::LArPandoraShowerAlg::SpacePointPerpendicular(), and shower::LArPandoraShowerAlg::SpacePointProjection().
|
inline |
Definition at line 78 of file SpacePoint.h.
References fXYZ.
Referenced by mvapid::MVAAlg::_Var_Shape(), lar_pandora::PFParticleMonitoring::analyze(), cluster::DBScan3DAlg::dist(), evdb_tool::SpacePoint3DDrawerStandard::Draw(), evd::RecoBaseDrawer::DrawPFParticle3D(), evd::RecoBaseDrawer::DrawSpacePointOrtho(), evd::RecoBaseDrawer::Edge3D(), lar_pandora::PFParticleHitDumper::FillReco3D(), mvapid::MVAAlg::FitAndSortTrack(), recob::Seed::GetDistanceFrom(), lar_cluster3d::SpacePointHit3DBuilder::Hit3DBuilder(), recob::operator<<(), lar_pandora::LArPandoraEventDump::PrintSpacePoint(), lar_pandora::LArPandoraShowerCreation::produce(), lar_pandora::LArPandoraTrackCreation::produce(), mvapid::MVAAlg::SortShower(), sp_sort_3dx(), sp_sort_3dy(), sp_sort_3dz(), shower::TrackShowerSeparationAlg::SpacePointPos(), spt_sort_x0(), spt_sort_x1(), spt_sort_y0(), spt_sort_y1(), spt_sort_z0(), spt_sort_z1(), and vertex::PrimaryVertexFinder::StartPointSeperation().
|
friend |
Definition at line 64 of file SpacePoint.cxx.
|
friend |
Definition at line 51 of file SpacePoint.cxx.
|
private |
|
private |
Error matrix (lower triangular).
Definition at line 36 of file SpacePoint.h.
Referenced by covariance(), ErrXYZ(), and SpacePoint().
|
private |
|
private |
position of SpacePoint in xyz
Definition at line 35 of file SpacePoint.h.
Referenced by position(), SpacePoint(), and XYZ().
|
static |
Special value for an invalid ID.
Definition at line 29 of file SpacePoint.h.