Belle II Software development
|
Class serving as a storage of observed sz positions to present to the sz line fitters. More...
#include <CDCSZObservations.h>
Public Member Functions | |
CDCSZObservations (EFitVariance fitVariance=EFitVariance::c_Proper, bool onlyStereo=false) | |
Constructor taking in preferred variance which is taken from the various hit objects if present. | |
std::size_t | size () const |
Returns the number of observations stored. | |
double * | data () |
Return the pointer to the number buffer. | |
bool | empty () const |
Returns true if there are no observations stored. | |
void | clear () |
Removes all observations stored. | |
void | reserve (std::size_t nObservations) |
Reserves enough space for nObservations. | |
double | getS (int iObservation) const |
Getter for the arc length value of the observation at the given index. | |
double | getZ (int iObservation) const |
Getter for the z value of the observation at the given index. | |
double | getWeight (int iObservation) const |
Getter for the weight / inverse variance of the observation at the given index. | |
std::size_t | fill (double s, double z, double weight=1.0) |
Appends the observed position. | |
std::size_t | append (const CDCRecoHit3D &recoHit3D) |
Appends the observed position. | |
std::size_t | appendRange (const std::vector< CDCRecoHit3D > &recoHit3Ds) |
Appends all reconstructed hits from the three dimensional track. | |
std::size_t | appendRange (const CDCSegment3D &segment3D) |
Appends all reconstructed hits from the three dimensional segment. | |
std::size_t | appendRange (const CDCTrack &track) |
Appends all reconstructed hits from the three dimensional track. | |
Vector2D | getCentralPoint () const |
Extracts the observation center that is at the index in the middle. | |
void | passiveMoveBy (const Vector2D &origin) |
Moves all observations passively such that the given vector becomes to origin of the new coordinate system. | |
Vector2D | centralize () |
Picks one observation as a reference point and transform all observations to that new origin. | |
void | setFitVariance (EFitVariance fitVariance) |
Setter for the indicator that the drift variance should be used. | |
Private Attributes | |
std::vector< double > | m_szObservations |
Memory for the individual observations. | |
EFitVariance | m_fitVariance |
Indicator which variance information should preferably be extracted from hits in calls to append. | |
bool | m_onlyStereo |
Switch to only use information from stereo hits. | |
Class serving as a storage of observed sz positions to present to the sz line fitters.
Definition at line 26 of file CDCSZObservations.h.
|
inlineexplicit |
Constructor taking in preferred variance which is taken from the various hit objects if present.
fitVariance | Variance information to be used Currently only c_Unit and c_Proper are supported. |
onlyStereo | Switch to only use the information of stereo hits. |
Definition at line 36 of file CDCSZObservations.h.
std::size_t append | ( | const CDCRecoHit3D & | recoHit3D | ) |
Appends the observed position.
Definition at line 38 of file CDCSZObservations.cc.
std::size_t appendRange | ( | const CDCSegment3D & | segment3D | ) |
Appends all reconstructed hits from the three dimensional segment.
Definition at line 82 of file CDCSZObservations.cc.
std::size_t appendRange | ( | const CDCTrack & | track | ) |
Appends all reconstructed hits from the three dimensional track.
Definition at line 88 of file CDCSZObservations.cc.
std::size_t appendRange | ( | const std::vector< CDCRecoHit3D > & | recoHit3Ds | ) |
Appends all reconstructed hits from the three dimensional track.
Definition at line 73 of file CDCSZObservations.cc.
Vector2D centralize | ( | ) |
Picks one observation as a reference point and transform all observations to that new origin.
Definition at line 118 of file CDCSZObservations.cc.
|
inline |
Removes all observations stored.
Definition at line 63 of file CDCSZObservations.h.
|
inline |
Return the pointer to the number buffer.
Definition at line 51 of file CDCSZObservations.h.
|
inline |
Returns true if there are no observations stored.
Definition at line 57 of file CDCSZObservations.h.
std::size_t fill | ( | double | s, |
double | z, | ||
double | weight = 1.0 |
||
) |
Appends the observed position.
s | S coordinate of the center of the observed position. |
z | Z coordinate of the center of the observed position. |
weight | The relative weight of the observation. In order to generate a unit less chi^2 measure the weight should be chosen as the inverse variance of the drift length. Defaults to 1. |
Definition at line 23 of file CDCSZObservations.cc.
Vector2D getCentralPoint | ( | ) | const |
Extracts the observation center that is at the index in the middle.
Definition at line 94 of file CDCSZObservations.cc.
|
inline |
Getter for the arc length value of the observation at the given index.
Definition at line 75 of file CDCSZObservations.h.
|
inline |
Getter for the weight / inverse variance of the observation at the given index.
Definition at line 87 of file CDCSZObservations.h.
|
inline |
Getter for the z value of the observation at the given index.
Definition at line 81 of file CDCSZObservations.h.
void passiveMoveBy | ( | const Vector2D & | origin | ) |
Moves all observations passively such that the given vector becomes to origin of the new coordinate system.
Definition at line 111 of file CDCSZObservations.cc.
|
inline |
Reserves enough space for nObservations.
Definition at line 69 of file CDCSZObservations.h.
|
inline |
Setter for the indicator that the drift variance should be used.
Definition at line 137 of file CDCSZObservations.h.
|
inline |
Returns the number of observations stored.
Definition at line 45 of file CDCSZObservations.h.
|
private |
Indicator which variance information should preferably be extracted from hits in calls to append.
Meaning of the constants detailed in EFitVariance.
Definition at line 154 of file CDCSZObservations.h.
|
private |
Switch to only use information from stereo hits.
Definition at line 157 of file CDCSZObservations.h.
|
private |
Memory for the individual observations.
Arrangement of values is s, z, weight, s, z, .....
Definition at line 147 of file CDCSZObservations.h.