 |
ATLAS Offline Software
|
Go to the documentation of this file.
17 return "failed calibration";
27 m_posInChamber{std::move(posInChamber)},
28 m_parent{uncalibSpacePoint},
57 const auto t =
type();
58 return t == MdtDriftCircleType || (
t == Other &&
m_beamLine !=
nullptr);
79 m_beamLine = std::make_unique<Amg::Vector3D>(std::move(beamDir));
86 ostr<<
"Auxiliary measurement";
96 auto boolToStr = [](
const bool B) -> std::string {
97 return B ?
"yay" :
"nay";
100 ostr<<
", time: "<<
time();
102 ostr<<
", measures eta/phi/time: "<<boolToStr(
measuresEta())
void print(std::ostream &ostr) const
Print function.
const MuonGMR4::SpectrometerSector * msSector() const
const Identifier & identify(const UncalibratedMeasurement *meas)
Returns the associated identifier from the muon measurement.
const Amg::Vector3D & toNextSensor() const
xAOD::UncalibMeasType type() const
const Cov_t & covariance() const
Returns the covariance array.
const Amg::Vector3D & planeNormal() const
Returns the vector pointing out of the measurement plane.
const Amg::Vector3D & localPosition() const
bool measuresPhi() const
: Does the space point contain a phi measurement
Amg::Vector3D m_posInChamber
Calibrated position.
Cov_t m_cov
Covariance array.
bool m_measuresTime
time flag (By default true for Mdt detectors)
void setBeamDirection(Amg::Vector3D &&beamDir)
Sets the beamline direction.
bool measuresPhi() const
Returns whether the calibrated space point measures phi.
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
State
State flag to distinguish different space point states.
void setDriftRadius(const double r)
Update the drift radius of the space point measurement.
bool isStraw() const
Returns whether the measurement is a Mdt.
bool hasTime() const
Returns whether the measurement carries time information.
double m_driftRadius
Calibrated drift radius.
xAOD::UncalibMeasType type() const
Returns the space point type.
std::shared_ptr< Amg::Vector3D > m_beamLine
Direction of the beamline (Beamspot constraint)
The muon space point is the combination of two uncalibrated measurements one of them measures the eta...
void setTimeMeasurement(double t)
Set the time measurement.
const Muon::IMuonIdHelperSvc * idHelperSvc() const
Returns the IdHelpeSvc.
State fitState() const
Returns the state of the calibrated space point.
const Amg::Vector3D & toNextSensor() const
Eigen::Matrix< double, 3, 1 > Vector3D
State m_state
Calibration state.
This header ties the generic definitions in this package.
unsigned dimension() const
Returns the local dimension of the measurement.
static std::string toString(const State s)
Converts the state enum into a string.
virtual std::string toString(const Identifier &id) const =0
print all fields to string
void setCovariance(const Cov_t &cov)
Set the covariance matrix of the calibrated space point.
bool measuresEta() const
: Does the space point contain an eta measurement
double m_time
Calibrated time (Acts units)
const Amg::Vector3D & planeNormal() const
Returns the vector pointing out of the measurement plane.
UncalibMeasType
Define the type of the uncalibrated measurement.
bool measuresLoc0() const
Returns whether the measurement constains the non-bending direction.
void setFitState(State st)
Set the state of the calibrated space point.
const Amg::Vector3D & sensorDirection() const
const SpacePoint * spacePoint() const
The pointer to the space point out of which this space point has been built.
CalibratedSpacePoint(const SpacePoint *uncalibSpacePoint, Amg::Vector3D &&posInChamber, State st=State::Valid)
Standard constructor.
double driftRadius() const
: Returns the size of the drift radius
double time() const
Returns the measurement's recorded time.
bool measuresLoc1() const
Returns whether the measurement constains the bending direction.
void zero(TH2 *h)
zero the contents of a 2d histogram
const Amg::Vector3D & sensorDirection() const
const SpacePoint * m_parent
Uncalibrated space point from which this space point is constructed.
bool measuresEta() const
Returns whether the calibrated space point measures eta.