![]() |
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 | Cov_t = SpacePoint::Cov_t |
using | CovIdx = SpacePoint::CovIdx |
Public Member Functions | |
CalibratedSpacePoint (const SpacePoint *uncalibSpacePoint, Amg::Vector3D &&posInChamber, State st=State::Valid) | |
Standard constructor. More... | |
~CalibratedSpacePoint ()=default | |
const Amg::Vector3D & | localPosition () const |
const Amg::Vector3D & | sensorDirection () const |
const Amg::Vector3D & | toNextSensor () const |
const Amg::Vector3D & | planeNormal () const |
Returns the vector pointing out of the measurement plane. More... | |
double | time () const |
Returns the measurement's recorded time. More... | |
bool | isStraw () const |
Returns whether the measurement is a Mdt. More... | |
bool | hasTime () const |
Returns whether the measurement carries time information. More... | |
bool | measuresLoc0 () const |
Returns whether the measurement constains the non-bending direction. More... | |
bool | measuresLoc1 () const |
Returns whether the measurement constains the bending direction. More... | |
double | driftRadius () const |
: Returns the size of the drift radius More... | |
const Cov_t & | covariance () const |
Returns the covariance array. More... | |
void | setCovariance (const Cov_t &cov) |
Set the covariance matrix of the calibrated space point. More... | |
void | setDriftRadius (const double r) |
Update the drift radius of the space point measurement. 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... | |
void | setTimeMeasurement (double t) |
Set the time measurement. 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 Member Functions | |
void | print (std::ostream &ostr) const |
Private Attributes | |
const SpacePoint * | m_parent {nullptr} |
Amg::Vector3D | m_posInChamber {Amg::Vector3D::Zero()} |
double | m_driftRadius {0.} |
Cov_t | m_cov {Acts::filledArray<double, 3>(0.)} |
double | m_time {0.} |
bool | m_measuresTime {type() == xAOD::UncalibMeasType::MdtDriftCircleType} |
By default the Mdt may measure time. More... | |
State | m_state {State::Valid} |
Friends | |
std::ostream & | operator<< (std::ostream &ostr, const CalibratedSpacePoint &sp) |
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 14 of file CalibratedSpacePoint.h.
Definition at line 16 of file CalibratedSpacePoint.h.
Definition at line 17 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, | ||
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 8 of file CalibratedSpacePoint.cxx.
|
default |
const CalibratedSpacePoint::Cov_t & MuonR4::CalibratedSpacePoint::covariance | ( | ) | const |
Returns the covariance array.
Definition at line 30 of file CalibratedSpacePoint.cxx.
unsigned MuonR4::CalibratedSpacePoint::dimension | ( | ) | const |
Returns the local dimension of the measurement.
Definition at line 53 of file CalibratedSpacePoint.cxx.
double MuonR4::CalibratedSpacePoint::driftRadius | ( | ) | const |
: Returns the size of the drift radius
Definition at line 37 of file CalibratedSpacePoint.cxx.
CalibratedSpacePoint::State MuonR4::CalibratedSpacePoint::fitState | ( | ) | const |
Returns the state of the calibrated space point.
Definition at line 51 of file CalibratedSpacePoint.cxx.
bool MuonR4::CalibratedSpacePoint::hasTime | ( | ) | const |
Returns whether the measurement carries time information.
Definition at line 33 of file CalibratedSpacePoint.cxx.
bool MuonR4::CalibratedSpacePoint::isStraw | ( | ) | const |
const Amg::Vector3D & MuonR4::CalibratedSpacePoint::localPosition | ( | ) | const |
Definition at line 16 of file CalibratedSpacePoint.cxx.
bool MuonR4::CalibratedSpacePoint::measuresEta | ( | ) | const |
Returns whether the calibrated space point measures eta.
Definition at line 50 of file CalibratedSpacePoint.cxx.
bool MuonR4::CalibratedSpacePoint::measuresLoc0 | ( | ) | const |
Returns whether the measurement constains the non-bending direction.
Definition at line 34 of file CalibratedSpacePoint.cxx.
bool MuonR4::CalibratedSpacePoint::measuresLoc1 | ( | ) | const |
Returns whether the measurement constains the bending direction.
Definition at line 35 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.
const Amg::Vector3D & MuonR4::CalibratedSpacePoint::planeNormal | ( | ) | const |
Returns the vector pointing out of the measurement plane.
Definition at line 25 of file CalibratedSpacePoint.cxx.
|
private |
Definition at line 56 of file CalibratedSpacePoint.cxx.
const Amg::Vector3D & MuonR4::CalibratedSpacePoint::sensorDirection | ( | ) | const |
Definition at line 17 of file CalibratedSpacePoint.cxx.
Set the covariance matrix of the calibrated space point.
Definition at line 54 of file CalibratedSpacePoint.cxx.
void MuonR4::CalibratedSpacePoint::setDriftRadius | ( | const double | r | ) |
Update the drift radius of the space point measurement.
r | Radius to set |
Definition at line 40 of file CalibratedSpacePoint.cxx.
void MuonR4::CalibratedSpacePoint::setFitState | ( | State | st | ) |
Set the state of the calibrated space point.
Definition at line 52 of file CalibratedSpacePoint.cxx.
void MuonR4::CalibratedSpacePoint::setTimeMeasurement | ( | double | t | ) |
Set the time measurement.
t | Time of Record |
Definition at line 45 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 15 of file CalibratedSpacePoint.cxx.
double MuonR4::CalibratedSpacePoint::time | ( | ) | const |
const Amg::Vector3D & MuonR4::CalibratedSpacePoint::toNextSensor | ( | ) | const |
Definition at line 21 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 41 of file CalibratedSpacePoint.cxx.
|
friend |
Definition at line 87 of file CalibratedSpacePoint.h.
|
private |
Definition at line 97 of file CalibratedSpacePoint.h.
|
private |
Definition at line 96 of file CalibratedSpacePoint.h.
|
private |
By default the Mdt may measure time.
Definition at line 101 of file CalibratedSpacePoint.h.
|
private |
Definition at line 93 of file CalibratedSpacePoint.h.
|
private |
Definition at line 94 of file CalibratedSpacePoint.h.
|
private |
Definition at line 102 of file CalibratedSpacePoint.h.
|
private |
Definition at line 99 of file CalibratedSpacePoint.h.