27#include "Acts/Utilities/MathHelpers.hpp"
28#include "Acts/Utilities/Enumerate.hpp"
32 constexpr double c_inv = 1./ Gaudi::Units::c_light;
37 inline Acts::BoundTrackParameters makeBoundPars(
const ActsTrk::MutableTrackContainer::TrackStateProxy& state) {
38 return Acts::BoundTrackParameters{state.referenceSurface().getSharedPtr(),
39 state.parameters(), state.covariance(),
40 Acts::ParticleHypothesis::muon()};
46 using namespace Acts::UnitLiterals;
58 return StatusCode::SUCCESS;
64 std::vector<int> signs = SeedingAux::strawSigns(trackPos, trackDir,
66 for (
const auto [spIdx,
sp]: Acts::enumerate(hitsToCalib)) {
67 sp->setDriftRadius(
sp->driftRadius() * signs[spIdx]);
74 const double timeDelay)
const {
79 calibSP = std::make_unique<CalibratedSpacePoint>(spacePoint);
81 if (spacePoint.
fitState() == State::Outlier) {
82 calibSP->setFitState(State::Outlier);
83 }
else if (spacePoint.
fitState() == State::Duplicate) {
84 calibSP->setFitState(State::Duplicate);
92 const double timeDelay,
95 const EventContext* ctx = cctx.get<
const EventContext*>();
96 newCalib.reserve(spacePoints.size());
98 newCalib.emplace_back(
calibrate(*ctx, *
sp, segPos, segDir, timeDelay));
107 const double timeDelay)
const {
119 : spPos +
Amg::intersect<3>(posInChamb, dirInChamb, spPos, chDir).value_or(0) * chDir;
124 switch (spacePoint->
type()) {
126 case MdtDriftCircleType: {
129 posInChamb, dirInChamb).value_or(0) * dirInChamb;
131 Amg::Vector3D closestApproach{locToGlob* locClosestApproach};
138 std::abs(dirInChamb.phi() - 90._degree) > 1.e-7 );
140 const auto magnitude = closestApproach.mag();
145 State fitState{State::Valid};
147 if (calibOutput.
status() != Muon::MdtDriftCircleStatus::MdtStatusDriftTime) {
149 <<std::endl<<calibInput<<std::endl<<calibOutput);
150 fitState = State::FailedCalib;
151 cov[Acts::toUnderlying(AxisDefs::etaCov)] = dc->readoutElement()->innerTubeRadius();
153 cov[Acts::toUnderlying(AxisDefs::etaCov)] = Acts::square(calibOutput.
driftRadiusUncert());
155 calibSP = std::make_unique<CalibratedSpacePoint>(spacePoint, std::move(calibSpPos), fitState);
156 calibSP->setCovariance(cov);
157 calibSP->setDriftRadius(calibOutput.
driftRadius());
159 double fastToF {(locToGlob * calibSP->localPosition()).norm() * c_inv};
163 <<
", ToF / fastToF: " << fastToF <<
" / " << magnitude * c_inv
171 MdtCalibInput twinInput{dc->twinIdentify(), dc->twinAdc(), dc->twinTdc(), dc->readoutElement(), *gctx};
176 std::move(calibInput),
177 std::move(twinInput));
179 State fitState{State::Valid};
180 if (calibOutput.
primaryStatus() != Muon::MdtDriftCircleStatus::MdtStatusDriftTime) {
182 <<std::endl<<calibOutput);
183 cov[Acts::toUnderlying(AxisDefs::etaCov)] = Acts::square(dc->readoutElement()->innerTubeRadius());
184 cov[Acts::toUnderlying(AxisDefs::phiCov)] = Acts::square(0.5* dc->readoutElement()->activeTubeLength(dc->measurementHash()));
185 fitState = State::FailedCalib;
187 cov[Acts::toUnderlying(AxisDefs::etaCov)] = Acts::square(calibOutput.
uncertPrimaryR());
188 cov[Acts::toUnderlying(AxisDefs::phiCov)] = Acts::square(calibOutput.
sigmaZ());
190 calibSP = std::make_unique<CalibratedSpacePoint>(spacePoint, std::move(calibSpPos), fitState);
191 calibSP->setCovariance(cov);
194 double fastToF {(locToGlob * calibSP->localPosition()).norm() * c_inv};
195 double tubeT0 {
m_mdtCalibrationTool->getCalibConstants(ctx, dc->identify())->tubeCalib->getCalib(dc->identify())->t0};
205 const Acts::Transform3 toGasGap{
strip->readoutElement()->globalToLocalTransform(*gctx,
strip->layerHash()) * locToGlob};
208 calibSP = std::make_unique<CalibratedSpacePoint>(spacePoint, std::move(calibSpPos));
214 const double time1 =
strip->time()
215 -
strip->readoutElement()->distanceToEdge(
strip->layerHash(), lPos,
221 const double time2 = strip2->time() -
222 strip2->readoutElement()->distanceToEdge(strip2->layerHash(),lPos, EdgeSide::readOut)/
m_rpcSignalVelocity;
226 cov[Acts::toUnderlying(AxisDefs::timeCov)] += Acts::square(
ActsTrk::timeToActs(0.5*(time1 - time2)));
230 calibSP->setCovariance(cov);
232 <<
", at "<<
Amg::toString(calibSP->localPosition())<<
", uncalib time: "
234 <<
", time Uncert: "<<
ActsTrk::timeToAthena(std::sqrt(calibSP->covariance()[Acts::toUnderlying(AxisDefs::timeCov)])));
238 calibSP = std::make_unique<CalibratedSpacePoint>(spacePoint, std::move(calibSpPos));
242 const Acts::Transform3 toGasGap{
strip->readoutElement()->globalToLocalTransform(*gctx,
strip->layerHash()) * locToGlob};
243 const Amg::Vector3D lPos = toGasGap * calibSP->localPosition();
244 const auto& sensorPlane =
strip->readoutElement()->sensorLayout(
strip->layerHash());
245 const auto& radialDesign =
strip->readoutElement()->stripLayout(
strip->layerHash());
246 cov[Acts::toUnderlying(AxisDefs::phiCov)] = Acts::square(
247 radialDesign.stripPitch(
strip->channelNumber(), sensorPlane->to2D(lPos,
true))) / 12.;
249 calibSP->setCovariance(cov);
252 case MMClusterType: {
257 std::pair<double, double> calibPosCov {
calibrateMM(ctx, *gctx, *cluster, globalPos, globalDir)};
259 ATH_MSG_DEBUG(
"Calibrated pos and cov" << calibPosCov.first <<
" " << calibPosCov.second);
260 cov[Acts::toUnderlying(AxisDefs::etaCov)] = calibPosCov.second;
264 Amg::Vector3D calibSpPosInLayer = toChamberTrans.inverse() * calibSpPos;
266 calibSpPosInLayer.x() = calibPosCov.first;
268 calibSpPos = toChamberTrans * calibSpPosInLayer;
270 calibSP = std::make_unique<CalibratedSpacePoint>(spacePoint, std::move(calibSpPos));
271 calibSP->setCovariance(cov);
276 case sTgcStripType: {
282 calibSP = std::make_unique<CalibratedSpacePoint>(spacePoint, std::move(calibSpPos));
283 calibSP->setCovariance(cov);
287 std::optional<double> posAlongTheStrip{std::nullopt};
294 if (secMeas->numDimensions() == 2) {
295 posAlongTheStrip =
static_cast<double>(secMeas->localPosition<2>()[0]);
297 posAlongTheStrip =
static_cast<double>(secMeas->localPosition<1>()[0]);
307 const auto [calibPos, calibCov] =
calibratesTGC(ctx, *gctx, *stripClus, posAlongTheStrip, globalPos, globalDir);
309 ATH_MSG_DEBUG(
"Calibrated pos and cov" << calibPos <<
" " << calibCov);
310 cov[Acts::toUnderlying(AxisDefs::etaCov)] = calibCov;
311 Acts::Transform3 toChamberTrans{ locToGlob.inverse() * cluster->readoutElement()->localToGlobalTransform(*gctx, cluster->layerHash())};
314 cov[Acts::toUnderlying(AxisDefs::phiCov)] *=
319 Amg::Vector3D calibSpPosInLayer = toChamberTrans.inverse() * calibSpPos;
321 calibSpPosInLayer.x() = calibPos;
323 calibSpPos = toChamberTrans * calibSpPosInLayer;
325 calibSP = std::make_unique<CalibratedSpacePoint>(spacePoint, std::move(calibSpPos));
326 calibSP->setCovariance(cov);
327 ATH_MSG_DEBUG(
"calibrated sTGC cluster "<<
m_idHelperSvc->toString(cluster->identify()) <<
" loc x old " << cluster->localPosition<1>()[0] <<
" new loc x " << calibSP->localPosition()[1] <<
"cov " << calibSP->covariance());
338 const std::vector<const SpacePoint*>& spacePoints,
341 const double timeDelay)
const {
343 calibSpacePoints.reserve(spacePoints.size());
344 for(
const SpacePoint* spacePoint : spacePoints) {
347 calibSpacePoints.push_back(std::move(
hit));
350 return calibSpacePoints;
357 const std::optional<double> driftTime = calibConsts->
rtRelation->tr()->driftTime(spacePoint.
driftRadius());
366 const std::optional<double> driftTime = calibConsts->
rtRelation->tr()->driftTime(spacePoint.
driftRadius());
377 std::vector<NSWCalib::CalibratedStrip> calibClus;
378 StatusCode
sc =
m_nswCalibTool->calibrateClus(ctx, gctx, cluster, globalPos, calibClus);
381 return std::make_pair(0., 0.);
388 calibCov.resize(1,1);
390 ATH_MSG_DEBUG(
"old loc pos " << locPos[0] <<
" old cov" << calibCov(0,0) );
393 if(rotAuthor == Muon::IMMClusterBuilderTool::RIO_Author::unKnownAuthor){
396 ATH_MSG_DEBUG(
"new loc pos " << locPos[0] <<
" new cov" << calibCov(0,0) );
397 return std::make_pair(locPos[0], Acts::square(
m_mmStripErrorScale.value()) * calibCov(0,0));
403 std::optional<double> posAlongTheStrip,
408 if(!posAlongTheStrip) {
410 posAlongTheStrip = extPosLocal[1];
419 ActsTrk::MutableTrackContainer::TrackStateProxy state)
const {
447 const Acts::BoundTrackParameters trackPars{makeBoundPars(state)};
448 std::pair<double, double> calibPosCov{
calibratesTGC(ctx, gctx, *primStripMeas, cmbPos[1] ,
449 trackPars.position(gctx.
context()),
450 trackPars.direction())};
451 cmbPos[0] = calibPosCov.first;
452 cmbCov(0,0) = calibPosCov.second;
465 const Acts::CalibrationContext& cctx,
466 const Acts::SourceLink& link,
467 ActsTrk::MutableTrackContainer::TrackStateProxy trackState)
const {
470 const Acts::BoundTrackParameters trackPars{makeBoundPars(trackState)};
475 const EventContext* ctx = cctx.get<
const EventContext*>();
477 <<
", smoothened: "<<trackState.hasSmoothed()<<
", filtered: "<<trackState.hasFiltered()
478 <<
", predicted: "<<trackState.hasPredicted()
479 <<
" @\n"<<trackPars);
481 if (muonMeas->numDimensions() == 0u) {
490 switch (muonMeas->type()){
492 case MdtDriftCircleType: {
499 static_cast<double>(acc_trackSign(*dc)) :
500 Acts::copySign(1.,trackPars.parameters()[Acts::eBoundLoc0]);
502 if (muonMeas->numDimensions() == 1) [[
likely]] {
508 if (calibOutput.
status() != Muon::MdtDriftCircleStatus::MdtStatusDriftTime) {
510 <<std::endl<<calibInput<<std::endl<<calibOutput);
511 cov(Acts::eBoundLoc0,Acts::eBoundLoc0) = std::pow(dc->readoutElement()->innerTubeRadius(), 2);
513 pos[Acts::eBoundLoc0] = driftSign*calibOutput.
driftRadius();
514 cov(Acts::eBoundLoc0, Acts::eBoundLoc0) = std::pow(calibOutput.
driftRadiusUncert(), 2);
521 MdtCalibInput twinInput{twinDC->twinIdentify(), twinDC->twinAdc(), twinDC->twinTdc(), twinDC->readoutElement(), *gctx};
526 std::move(calibInput),
527 std::move(twinInput));
530 if (calibOutput.
primaryStatus() != Muon::MdtDriftCircleStatus::MdtStatusDriftTime) {
532 <<std::endl<<calibOutput);
533 locCov(Acts::eBoundLoc0, Acts::eBoundLoc0) = std::pow(dc->readoutElement()->innerTubeRadius(), 2);
534 locCov(Acts::eBoundLoc1, Acts::eBoundLoc1) = std::pow(0.5* dc->readoutElement()->activeTubeLength(dc->measurementHash()), 2);
536 locCov(Acts::eBoundLoc0, Acts::eBoundLoc0) = std::pow(calibOutput.
uncertPrimaryR(), 2);
537 locCov(Acts::eBoundLoc1, Acts::eBoundLoc1) = std::pow(calibOutput.
sigmaZ(), 2);
538 locPos[Acts::eBoundLoc0] = driftSign*calibOutput.
primaryDriftR();
539 locPos[Acts::eBoundLoc1] = calibOutput.
locZ();
544 }
case RpcStripType: {
547 if (rpcClust->numDimensions() == 1) [[
likely]] {
553 rpcClust->localCovariance<1>(), link, trackState);
557 measPars[0] = rpcClust->localPosition<1>()[0];
558 measCov(0,0) = rpcClust->localCovariance<1>()(0, 0);
559 ATH_MSG_WARNING(__FILE__<<
":"<<__LINE__<<
"Please fix me using the ActsInterops package");
563 setState<2>(proj, measPars, measCov, link, trackState);
570 rpcClust->localPosition<2>(),
571 rpcClust->localCovariance<2>(), link, trackState);
575 measPars.block<2,1>(0,0) = xAOD::toEigen(rpcClust->localPosition<2>());
576 measCov.block<2,2>(0,0) = xAOD::toEigen(rpcClust->localCovariance<2>());
577 ATH_MSG_WARNING(__FILE__<<
":"<<__LINE__<<
"Please fix me using the ActsInterops package");
583 }
case TgcStripType: {
584 const auto* tgcClust =
static_cast<const xAOD::TgcStrip*
>(muonMeas);
586 if (!tgcClust->measuresPhi()) {
588 tgcClust->localPosition<1>(),
589 tgcClust->localCovariance<1>(),
602 case MMClusterType: {
604 std::pair<double, double> calibPosCov{
calibrateMM(*ctx,* gctx, *mmClust, trackPos, trackDir)};
610 }
case sTgcStripType: {
615 muonMeas->localPosition<1>(),
616 muonMeas->localCovariance<1>(), link, trackState);
619 stgcClust->localPosition<2>(),
620 stgcClust->localCovariance<2>(), link, trackState);
623 std::pair<double, double> calibPosCov{
calibratesTGC(*ctx, *gctx, *stgCluster, std::nullopt, trackPos, trackDir)};
632 pos[0] = calibPosCov.first;
633 pos[1] = stgCluster->time();
634 cov(0,0) = calibPosCov.second;
635 ATH_MSG_WARNING(__FILE__<<
":"<<__LINE__<<
"Please fix me using the ActsInterops package");
636 cov(1,1) = std::pow(25 , 2);
644 auxCalibrator.
calibrate(geoctx, cctx, link, trackState);
647 THROW_EXCEPTION(
"The parsed measurement is not a muon measurement. Please check.");
656 const int sign = SeedingAux::strawSign(segPos, segLine, *meas);
659 dec_trackSign(*meas->spacePoint()->primaryMeasurement()) =
sign;
666 const double timeDelay)
const {
677 const double timeDelay)
const {
687 const double timeDelay)
const {
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_WARNING(x,...)
#define ATH_MSG_VERBOSE(x,...)
#define AmgSymMatrix(dim)
Acts::GeometryContext context() const
static Acts::SourceLink pack(const Ptr_t &measurement)
Pack the measurement type pointer to an Acts::SourceLink including the intermediate conversion into a...
@ e2DimWithTime
Project out the locY & time coordinate - (Applies to Rpc, Tgc, sTgc).
@ e2DimNoTime
Project out solely the locY - Complementary projector if the strip plane is rotated (Applies to Itk e...
@ e1DimWithTime
Project out the two spatial coordinates - (Applies to ITk pixel, BI-Rpc, sTgc pad).
@ e1DimRotNoTime
Project out solely the locX (Applies to Itk strips, Rpc, Tgc, sTgc, Mm).
@ e1DimRotWithTime
Project out the locX & time coordinate - (Applies to Rpc, Tgc, Mm, sTgc).
void setState(const ProjectorType projector, const pos_t &locpos, const cov_t &cov, Acts::SourceLink link, proxy_t &trackState) const
Copy the local position & covariance into the Acts track state proxy.
Source link calibrator implementation for xAOD::Uncalibrated measurements.
void calibrate(const Acts::GeometryContext &tgContext, const Acts::CalibrationContext &calContext, const Acts::SourceLink &sl, const MutableTrackStateBackend::TrackStateProxy trackState) const
: Interface method for the Acts fitter to calibrate the trajectory track states from the source link ...
static const xAOD::UncalibratedMeasurement * unpack(const Acts::SourceLink &sl)
Helper method to unpack an Acts source link to an uncalibrated measurement.
double driftRadiusUncert() const
Returns the uncertainty on the drift radius.
double driftRadius() const
Returns the drift radius of the calibrated object.
MdtDriftCircleStatus status() const
Status of the calibration.
double signalPropagationTime() const
Returns the signal propagation time.
double tubeT0() const
Returns the point in time where the muon typically enters the chamber.
MdtDriftCircleStatus primaryStatus() const
double primaryDriftR() const
double uncertPrimaryR() const
Acts::Transform3 globalToLocalTransform(const ActsTrk::GeometryContext &ctx) const
Returns the transformation from the global ATLAS coordinate system into the local coordinate system o...
const Acts::Transform3 & localToGlobalTransform(const ActsTrk::GeometryContext &ctx) const override final
Returns the transformation from the local coordinate system of the readout element into the global AT...
const Acts::Transform3 & localToGlobalTransform(const ActsTrk::GeometryContext &gctx) const
Returns the local -> global tarnsformation from the sector.
The calibrated Space point is created during the calibration process.
double driftRadius() const
: Returns the size of the drift radius
double time() const
Returns the measurement's recorded time.
const SpacePoint * spacePoint() const
The pointer to the space point out of which this space point has been built.
xAOD::UncalibMeasType type() const
Returns the space point type.
State
State flag to distinguish different space point states.
State fitState() const
Returns the state of the calibrated space point.
Acts::CloneablePtr< CalibratedSpacePoint > CalibSpacePointPtr
std::vector< CalibSpacePointPtr > CalibSpacePointVec
Placeholder for what will later be the muon segment EDM representation.
const MeasVec & measurements() const
Returns the associated measurements.
Gaudi::Property< bool > m_useRpcTime
Load the Rpc time on the track states for the track fit.
void calibrateCombinedPrd(const EventContext &ctx, const ActsTrk::GeometryContext &gctx, const xAOD::CombinedMuonStrip *combinedPrd, ActsTrk::MutableTrackContainer::TrackStateProxy state) const
Calibrates the track states from a combined muon strip.
ToolHandle< Muon::IMMClusterBuilderTool > m_clusterBuilderToolMM
void calibrateSourceLink(const Acts::GeometryContext &geoctx, const Acts::CalibrationContext &cctx, const Acts::SourceLink &link, ActsTrk::MutableTrackContainer::TrackStateProxy state) const override final
double driftRadius(const Acts::CalibrationContext &cctx, const CalibratedSpacePoint &spacePoint, const double timeDelay) const override final
ToolHandle< Muon::INSWCalibTool > m_nswCalibTool
std::pair< double, double > calibratesTGC(const EventContext &ctx, const ActsTrk::GeometryContext &gctx, const xAOD::sTgcStripCluster &cluster, std::optional< double > posAlongTheStrip, const Amg::Vector3D &globalPos, const Amg::Vector3D &globalDir) const
Calibrates the position and covariance of an sTGC (small-strip Thin Gap Chamber) cluster.
double driftVelocity(const Acts::CalibrationContext &ctx, const CalibratedSpacePoint &spacePoint) const override final
ToolHandle< IMdtCalibrationTool > m_mdtCalibrationTool
CalibSpacePointPtr calibrate(const EventContext &ctx, const SpacePoint *spacePoint, const Amg::Vector3D &seedPosInChamb, const Amg::Vector3D &seedDirInChamb, const double timeDelay) const override final
Gaudi::Property< double > m_rpcSignalVelocity
How fast does an electron signal travel along an rpc strip.
void updateSigns(const Amg::Vector3D &trackPos, const Amg::Vector3D &trackDir, CalibSpacePointVec &hitsToCalib) const override final
StatusCode initialize() override final
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
const MuonGMR4::MuonDetectorManager * m_detMgr
Gaudi::Property< bool > m_MdtSignFromSegment
Gaudi::Property< bool > m_useTgcTime
Load the Tgc bunch crossing ID on the track states.
Gaudi::Property< bool > m_usesTgcTime
double driftAcceleration(const Acts::CalibrationContext &ctx, const CalibratedSpacePoint &spacePoint) const override final
ActsTrk::GeoContextReadKey_t m_geoCtxKey
access to the ACTS geometry context
Gaudi::Property< double > m_rpcTimeResolution
std::pair< double, double > calibrateMM(const EventContext &ctx, const ActsTrk::GeometryContext &gctx, const xAOD::MMCluster &cluster, const Amg::Vector3D &globalPos, const Amg::Vector3D &globalDir) const
Calibrates the position and covariance of a MicroMegas (MM) cluster.
void stampSignsOnMeasurements(const xAOD::MuonSegment &segment) const override final
Gaudi::Property< double > m_sTgcPrecCoordErrorScale
Scale factor applied to the sTGC strip measurement uncertainty.
Gaudi::Property< double > m_sTgcNonPrecCoordErrorScale
Scale factor applied to the sTGC non-precise coordinate measurement uncertainty.
Gaudi::Property< double > m_mmStripErrorScale
Scale factor applied to the MM strip measurement uncertainty.
The muon space point is the combination of two uncalibrated measurements one of them measures the eta...
const Amg::Vector3D & sensorDirection() const
const Cov_t & covariance() const
Returns the covariance array.
const Identifier & identify() const
: Identifier of the primary measurement
unsigned dimension() const
Is the space point a 1D or combined 2D measurement.
xAOD::UncalibMeasType type() const
const MuonGMR4::SpectrometerSector * msSector() const
const xAOD::MuonMeasurement * secondaryMeasurement() const
const xAOD::MuonMeasurement * primaryMeasurement() const
std::array< double, 3 > Cov_t
Abrivation of the covariance type.
const Amg::Vector3D & localPosition() const
Helper class to provide constant type-safe access to aux data.
const xAOD::MuonMeasurement * primaryStrip() const
Returns the primary associated measurement.
virtual xAOD::UncalibMeasType type() const override final
Returns the type of the measurement type as a simple enumeration.
const MuonGMR4::MmReadoutElement * readoutElement() const override final
Retrieve the associated MmReadoutElement.
IdentifierHash layerHash() const override final
Returns the hash of the associated layer (Needed for surface retrieval).
virtual std::uint8_t measuresPhi() const =0
Returns whether the phi coordinate is measured.
const Identifier & identify() const
Returns the Athena identifier of the measurement.
ConstMatrixMap< N > localCovariance() const
Returns the local covariance of the measurement.
ConstVectorMap< N > localPosition() const
Returns the local position of the measurement.
IdentifierHash layerHash() const override final
Returns the hash of the associated gasGap layer.
const MuonGMR4::sTgcReadoutElement * readoutElement() const override final
Retrieve the associated sTgcReadoutElement.
constexpr double velocityToActs(const double athenaV)
Converts a velocity from Athena to Acts units.
constexpr double accelerationToActs(const double athenaA)
Converts an acceleration from Athena to Acts units.
constexpr double timeToAthena(T actsT)
Converts a time unit from Acts to Athena units.
constexpr auto timeToActs(T athenaT)
Converts a time unit from Athena to Acts units.
std::optional< double > intersect(const AmgVector(N)&posA, const AmgVector(N)&dirA, const AmgVector(N)&posB, const AmgVector(N)&dirB)
Calculates the point B' along the line B that's closest to a second line A.
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 2, 1 > Vector2D
Eigen::Matrix< double, 3, 1 > Vector3D
Parameters localSegmentPars(const xAOD::MuonSegment &seg)
Returns the localSegPars decoration from a xAODMuon::Segment.
std::pair< Amg::Vector3D, Amg::Vector3D > makeLine(const Parameters &pars)
Returns the parsed parameters into an Eigen line parametrization.
This header ties the generic definitions in this package.
ISpacePointCalibrator::CalibSpacePointVec CalibSpacePointVec
CalibratedSpacePoint::State State
ISpacePointCalibrator::CalibSpacePointPtr CalibSpacePointPtr
const Segment * detailedSegment(const xAOD::MuonSegment &seg)
Helper function to navigate from the xAOD::MuonSegment to the MuonR4::Segment.
Amg::Vector3D toLocal(const Amg::Transform3D &toLocalTrans, const Amg::Vector3D &dir)
Rotates a direction vector into a local frame: x-axis : Parallell to the radial direction of the dete...
SG::Decorator< T, ALLOC > Decorator
Helper class to provide type-safe access to aux data, specialized for JaggedVecElt.
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
MdtDriftCircle_v1 MdtDriftCircle
MdtTwinDriftCircle_v1 MdtTwinDriftCircle
sTgcStripCluster_v1 sTgcStripCluster
UncalibMeasType
Define the type of the uncalibrated measurement.
const Identifier & identify(const UncalibratedMeasurement *meas)
Returns the associated identifier from the muon measurement.
RpcMeasurement_v1 RpcMeasurement
std::pair< Amg::Vector2D, AmgSymMatrix(2)> positionAndCovariance(const MuonMeasurement *oneDimMeas)
Returns the 1D position of the uncalibrated measurement expressed in the coordinate system of the mea...
sTgcMeasurement_v1 sTgcMeasurement
MuonSegment_v1 MuonSegment
Reference the current persistent version:
CombinedMuonStrip_v1 CombinedMuonStrip
class which holds the full set of calibration constants for a given tube
#define THROW_EXCEPTION(MESSAGE)