![]() |
ATLAS Offline Software
|
The calibrated Space point is created during the calibration process. More...
#include <CalibratedSpacePoint.h>
Public Types | |
| enum | State : std::uint8_t { State::Valid = 1, State::FailedCalib, State::Outlier, State::Duplicate } |
| 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... | |
| void | setBeamDirection (Amg::Vector3D &&beamDir) |
| Sets the beamline direction. More... | |
Static Public Member Functions | |
| static std::string | toString (const State s) |
| Converts the state enum into a string. More... | |
Private Member Functions | |
| void | print (std::ostream &ostr) const |
| Print function. More... | |
Private Attributes | |
| Amg::Vector3D | m_posInChamber {Amg::Vector3D::Zero()} |
| Calibrated position. More... | |
| Cov_t | m_cov {Acts::filledArray<double, 3>(0.)} |
| Covariance array. More... | |
| double | m_driftRadius {0.} |
| Calibrated drift radius. More... | |
| double | m_time {0.} |
| Calibrated time (Acts units) More... | |
| const SpacePoint * | m_parent {nullptr} |
| Uncalibrated space point from which this space point is constructed. More... | |
| std::shared_ptr< Amg::Vector3D > | m_beamLine {} |
| Direction of the beamline (Beamspot constraint) More... | |
| State | m_state {State::Valid} |
| Calibration state. More... | |
| bool | m_measuresTime {type() == xAOD::UncalibMeasType::MdtDriftCircleType} |
| time flag (By default true for Mdt detectors) More... | |
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 | |
| Duplicate | |
Definition at line 26 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 24 of file CalibratedSpacePoint.cxx.
|
default |
| const CalibratedSpacePoint::Cov_t & MuonR4::CalibratedSpacePoint::covariance | ( | ) | const |
Returns the covariance array.
Definition at line 49 of file CalibratedSpacePoint.cxx.
| unsigned MuonR4::CalibratedSpacePoint::dimension | ( | ) | const |
Returns the local dimension of the measurement.
Definition at line 76 of file CalibratedSpacePoint.cxx.
| double MuonR4::CalibratedSpacePoint::driftRadius | ( | ) | const |
: Returns the size of the drift radius
Definition at line 60 of file CalibratedSpacePoint.cxx.
| CalibratedSpacePoint::State MuonR4::CalibratedSpacePoint::fitState | ( | ) | const |
Returns the state of the calibrated space point.
Definition at line 74 of file CalibratedSpacePoint.cxx.
| bool MuonR4::CalibratedSpacePoint::hasTime | ( | ) | const |
Returns whether the measurement carries time information.
Definition at line 52 of file CalibratedSpacePoint.cxx.
| bool MuonR4::CalibratedSpacePoint::isStraw | ( | ) | const |
| const Amg::Vector3D & MuonR4::CalibratedSpacePoint::localPosition | ( | ) | const |
Definition at line 32 of file CalibratedSpacePoint.cxx.
| bool MuonR4::CalibratedSpacePoint::measuresEta | ( | ) | const |
Returns whether the calibrated space point measures eta.
Definition at line 73 of file CalibratedSpacePoint.cxx.
| bool MuonR4::CalibratedSpacePoint::measuresLoc0 | ( | ) | const |
Returns whether the measurement constains the non-bending direction.
Definition at line 53 of file CalibratedSpacePoint.cxx.
| bool MuonR4::CalibratedSpacePoint::measuresLoc1 | ( | ) | const |
Returns whether the measurement constains the bending direction.
Definition at line 54 of file CalibratedSpacePoint.cxx.
| bool MuonR4::CalibratedSpacePoint::measuresPhi | ( | ) | const |
Returns whether the calibrated space point measures phi.
Definition at line 72 of file CalibratedSpacePoint.cxx.
| const Amg::Vector3D & MuonR4::CalibratedSpacePoint::planeNormal | ( | ) | const |
Returns the vector pointing out of the measurement plane.
Definition at line 44 of file CalibratedSpacePoint.cxx.
|
private |
Print function.
Definition at line 82 of file CalibratedSpacePoint.cxx.
| const Amg::Vector3D & MuonR4::CalibratedSpacePoint::sensorDirection | ( | ) | const |
Definition at line 33 of file CalibratedSpacePoint.cxx.
| void MuonR4::CalibratedSpacePoint::setBeamDirection | ( | Amg::Vector3D && | beamDir | ) |
Sets the beamline direction.
Definition at line 78 of file CalibratedSpacePoint.cxx.
Set the covariance matrix of the calibrated space point.
Definition at line 77 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 63 of file CalibratedSpacePoint.cxx.
| void MuonR4::CalibratedSpacePoint::setFitState | ( | State | st | ) |
Set the state of the calibrated space point.
Definition at line 75 of file CalibratedSpacePoint.cxx.
| void MuonR4::CalibratedSpacePoint::setTimeMeasurement | ( | double | t | ) |
Set the time measurement.
| t | Time of Record |
Definition at line 68 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 31 of file CalibratedSpacePoint.cxx.
| double MuonR4::CalibratedSpacePoint::time | ( | ) | const |
| const Amg::Vector3D & MuonR4::CalibratedSpacePoint::toNextSensor | ( | ) | const |
To calculate the residual only the sensor direction is needed. Set the planeNormal & toNextSensor to zero to avoid that the measurement is picked up by e.g. the fast line fitter
Definition at line 37 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 64 of file CalibratedSpacePoint.cxx.
|
friend |
Definition at line 93 of file CalibratedSpacePoint.h.
|
private |
Direction of the beamline (Beamspot constraint)
Definition at line 112 of file CalibratedSpacePoint.h.
|
private |
Covariance array.
Definition at line 103 of file CalibratedSpacePoint.h.
|
private |
Calibrated drift radius.
Definition at line 105 of file CalibratedSpacePoint.h.
|
private |
time flag (By default true for Mdt detectors)
Definition at line 116 of file CalibratedSpacePoint.h.
|
private |
Uncalibrated space point from which this space point is constructed.
Definition at line 110 of file CalibratedSpacePoint.h.
|
private |
Calibrated position.
Definition at line 101 of file CalibratedSpacePoint.h.
|
private |
Calibration state.
Definition at line 114 of file CalibratedSpacePoint.h.
|
private |
Calibrated time (Acts units)
Definition at line 107 of file CalibratedSpacePoint.h.
1.8.18