ATLAS Offline Software
|
The calibrated Space point is created during the calibration process. More...
#include <CalibratedSpacePoint.h>
Public Types | |
enum | State : uint8_t { State::Valid = 0, State::FailedCalib = 1, State::Outlier = 2 } |
State flag to distinguish different space point states. More... | |
using | Covariance_t = std::variant< AmgSymMatrix(2), AmgSymMatrix(3)> |
The spatial covariance matrix of the calibrated space point. More... | |
Public Member Functions | |
CalibratedSpacePoint (const SpacePoint *uncalibSpacePoint, Amg::Vector3D &&posInChamber, Amg::Vector3D &&dirInChamber, State st=State::Valid) | |
Standard constructor. More... | |
~CalibratedSpacePoint ()=default | |
const Amg::Vector3D & | positionInChamber () const |
The position of the calibrated space point inside the chamber. More... | |
const Amg::Vector3D & | directionInChamber () const |
The direction of the calibrated space point inside the chamber. More... | |
double | driftRadius () const |
The drift radius of the calibrated space point. More... | |
void | setDriftRadius (const double r) |
Set the drift radius of the calibrated space point after the calibration procedure. More... | |
const Covariance_t & | covariance () const |
template<unsigned k> | |
void | setCovariance (const AmgSymMatrix(k)&cov) |
Set the covariance matrix of the calibrated space pooint. More... | |
const SpacePoint * | spacePoint () const |
The pointer to the space point out of which this space point has been built. More... | |
xAOD::UncalibMeasType | type () const |
Returns the space point type. More... | |
double | time () const |
Current time of the calibrated space point. More... | |
void | setTimeMeasurement (double t) |
Set the time measurement. More... | |
bool | measuresTime () const |
Returns whether the calibrated space point measures time. More... | |
bool | measuresPhi () const |
Returns whether the calibrated space point measures phi. More... | |
bool | measuresEta () const |
Returns whether the calibrated space point measures eta. More... | |
State | fitState () const |
Returns the state of the calibrated space point. More... | |
void | setFitState (State st) |
Set the state of the calibrated space point. More... | |
unsigned | dimension () const |
Returns the local dimension of the measurement. More... | |
Private Attributes | |
const SpacePoint * | m_parent {nullptr} |
Amg::Vector3D | m_posInChamber {Amg::Vector3D::Zero()} |
Amg::Vector3D | m_dirInChamber {Amg::Vector3D::Zero()} |
double | m_driftRadius {0.} |
Covariance_t | m_cov {} |
double | m_time {0.} |
bool | m_measuresTime {type() == xAOD::UncalibMeasType::MdtDriftCircleType} |
By default the Mdt may measure time. More... | |
State | m_state {State::Valid} |
The calibrated Space point is created during the calibration process.
It usually exploits the information of the external tracking seed. Calibrated space points may also be created without a link to a measurement space point. In this case, they serve in an analogous way as the Trk::PseudoMeasurement
Definition at line 15 of file CalibratedSpacePoint.h.
using MuonR4::CalibratedSpacePoint::Covariance_t = std::variant<AmgSymMatrix(2), AmgSymMatrix(3)> |
The spatial covariance matrix of the calibrated space point.
Definition at line 49 of file CalibratedSpacePoint.h.
|
strong |
State flag to distinguish different space point states.
Enumerator | |
---|---|
Valid | |
FailedCalib | |
Outlier |
Definition at line 24 of file CalibratedSpacePoint.h.
MuonR4::CalibratedSpacePoint::CalibratedSpacePoint | ( | const SpacePoint * | uncalibSpacePoint, |
Amg::Vector3D && | posInChamber, | ||
Amg::Vector3D && | dirInChamber, | ||
State | st = State::Valid |
||
) |
Standard constructor.
uncalibSpacePoint | Pointer to the underyling uncalibrated space point |
posInChamber | Calibrated position of the space point inside the chamber |
dirInChamber | Direction of the space point in chamber |
Definition at line 9 of file CalibratedSpacePoint.cxx.
|
default |
const Covariance_t & MuonR4::CalibratedSpacePoint::covariance | ( | ) | const |
Definition at line 33 of file CalibratedSpacePoint.cxx.
unsigned MuonR4::CalibratedSpacePoint::dimension | ( | ) | const |
Returns the local dimension of the measurement.
Definition at line 61 of file CalibratedSpacePoint.cxx.
const Amg::Vector3D & MuonR4::CalibratedSpacePoint::directionInChamber | ( | ) | const |
The direction of the calibrated space point inside the chamber.
Definition at line 24 of file CalibratedSpacePoint.cxx.
double MuonR4::CalibratedSpacePoint::driftRadius | ( | ) | const |
The drift radius of the calibrated space point.
Needs to be set externally
Definition at line 27 of file CalibratedSpacePoint.cxx.
CalibratedSpacePoint::State MuonR4::CalibratedSpacePoint::fitState | ( | ) | const |
Returns the state of the calibrated space point.
Definition at line 55 of file CalibratedSpacePoint.cxx.
bool MuonR4::CalibratedSpacePoint::measuresEta | ( | ) | const |
Returns whether the calibrated space point measures eta.
Definition at line 52 of file CalibratedSpacePoint.cxx.
bool MuonR4::CalibratedSpacePoint::measuresPhi | ( | ) | const |
Returns whether the calibrated space point measures phi.
Definition at line 49 of file CalibratedSpacePoint.cxx.
bool MuonR4::CalibratedSpacePoint::measuresTime | ( | ) | const |
Returns whether the calibrated space point measures time.
Definition at line 46 of file CalibratedSpacePoint.cxx.
const Amg::Vector3D & MuonR4::CalibratedSpacePoint::positionInChamber | ( | ) | const |
The position of the calibrated space point inside the chamber.
Definition at line 21 of file CalibratedSpacePoint.cxx.
|
inline |
void MuonR4::CalibratedSpacePoint::setDriftRadius | ( | const double | r | ) |
Set the drift radius of the calibrated space point after the calibration procedure.
Definition at line 30 of file CalibratedSpacePoint.cxx.
void MuonR4::CalibratedSpacePoint::setFitState | ( | State | st | ) |
Set the state of the calibrated space point.
Definition at line 58 of file CalibratedSpacePoint.cxx.
void MuonR4::CalibratedSpacePoint::setTimeMeasurement | ( | double | t | ) |
Set the time measurement.
t | Time of arrival |
Definition at line 42 of file CalibratedSpacePoint.cxx.
const SpacePoint * MuonR4::CalibratedSpacePoint::spacePoint | ( | ) | const |
The pointer to the space point out of which this space point has been built.
Definition at line 18 of file CalibratedSpacePoint.cxx.
double MuonR4::CalibratedSpacePoint::time | ( | ) | const |
Current time of the calibrated space point.
Definition at line 39 of file CalibratedSpacePoint.cxx.
xAOD::UncalibMeasType MuonR4::CalibratedSpacePoint::type | ( | ) | const |
Returns the space point type.
If the calibrated space point is built without a valid point to a spacePoint, e.g. external beamspot constraint, Other is returned
Definition at line 36 of file CalibratedSpacePoint.cxx.
|
private |
Definition at line 85 of file CalibratedSpacePoint.h.
|
private |
Definition at line 82 of file CalibratedSpacePoint.h.
|
private |
Definition at line 84 of file CalibratedSpacePoint.h.
|
private |
By default the Mdt may measure time.
Definition at line 89 of file CalibratedSpacePoint.h.
|
private |
Definition at line 80 of file CalibratedSpacePoint.h.
|
private |
Definition at line 81 of file CalibratedSpacePoint.h.
|
private |
Definition at line 90 of file CalibratedSpacePoint.h.
|
private |
Definition at line 87 of file CalibratedSpacePoint.h.