![]() |
Belle II Software
release-08-02-04
|
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 prefered variance quanity be taken from the various hit objects if present. More... | |
| 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. More... | |
| 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. More... | |
| std::size_t | appendRange (const CDCSegment3D &segment3D) |
| Appends all reconstructed hits from the three dimensional segment. More... | |
| std::size_t | appendRange (const CDCTrack &track) |
| Appends all reconstructed hits from the three dimensional track. More... | |
| 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. More... | |
| EFitVariance | m_fitVariance |
| Indicator which variance information should preferably be extracted from hits in calls to append. More... | |
| 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 prefered variance quanity be 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 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.
| 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.
|
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 |
Memory for the individual observations.
Arrangement of values is s, z, weight, s, z, .....
Definition at line 147 of file CDCSZObservations.h.