 |
Belle II Software
release-05-01-25
|
12 #include <tracking/trackFindingCDC/fitting/EFitVariance.h>
21 namespace TrackFindingCDC {
28 class CDCSZObservations {
39 bool onlyStereo =
false)
47 std::size_t
size()
const
71 void reserve(std::size_t nObservations)
77 double getS(
int iObservation)
const
83 double getZ(
int iObservation)
const
105 std::size_t
fill(
double s,
double z,
double weight = 1.0);
114 std::size_t
appendRange(
const std::vector<CDCRecoHit3D>& recoHit3Ds);
Vector2D centralize()
Picks one observation as a reference point and transform all observations to that new origin.
Class representing a three dimensional reconstructed hit.
Vector2D getCentralPoint() const
Extracts the observation center that is at the index in the middle.
Class representing a sequence of three dimensional reconstructed hits.
A two dimensional vector which is equipped with functions for correct handeling of orientation relat...
EFitVariance m_fitVariance
Indicator which variance information should preferably be extracted from hits in calls to append.
std::size_t append(const CDCRecoHit3D &recoHit3D)
Appends the observed position.
CDCSZObservations(EFitVariance fitVariance=EFitVariance::c_Proper, bool onlyStereo=false)
Constructor taking in prefered variance quanity be taken from the various hit objects if present.
std::size_t size() const
Returns the number of observations stored.
bool empty() const
Returns true if there are no observations stored.
A segment consisting of three dimensional reconstructed hits.
void setFitVariance(EFitVariance fitVariance)
Setter for the indicator that the drift variance should be used.
void passiveMoveBy(const Vector2D &origin)
Moves all observations passively such that the given vector becomes to origin of the new coordinate s...
void clear()
Removes all observations stored.
double * data()
Return the pointer to the number buffer.
double getZ(int iObservation) const
Getter for the z value of the observation at the given index.
Abstract base class for different kinds of events.
std::size_t appendRange(const std::vector< CDCRecoHit3D > &recoHit3Ds)
Appends all reconstructed hits from the three dimensional track.
double getS(int iObservation) const
Getter for the arc length value of the observation at the given index.
std::vector< double > m_szObservations
Memory for the individual observations.
double getWeight(int iObservation) const
Getter for the weight / inverse variance of the observation at the given index.
void reserve(std::size_t nObservations)
Reserves enough space for nObservations.
std::size_t fill(double s, double z, double weight=1.0)
Appends the observed position.
bool m_onlyStereo
Switch to only use information from stereo hits.