21#include <fmt/format.h>
32 double zAtMID,
const TMatrixD& paramAtMID,
const TMatrixD& covAtMID,
const Time&
time)
33 : mZ(
z), mChi2(chi2), mClusRef(firstClIdx,
nClusters), mZAtMID(zAtMID), mTimeMUS(
time)
46 return getPz() * mParam[1];
53 return getPz() * mParam[3];
60 if (mParam[4] != 0.) {
61 return -std::abs(1. / mParam[4]) / std::sqrt(1. + mParam[3] * mParam[3]);
63 return -std::numeric_limits<float>::max() / std::sqrt(1. + mParam[3] * mParam[3] + mParam[1] * mParam[1]);
71 if (mParam[4] != 0.) {
72 return std::abs(1. / mParam[4]) / std::sqrt(1. + mParam[3] * mParam[3]) *
73 std::sqrt(1. + mParam[3] * mParam[3] + mParam[1] * mParam[1]);
75 return std::numeric_limits<float>::max();
83 for (
int i = 0;
i < SNParams;
i++) {
84 for (
int j = 0;
j <=
i;
j++) {
85 dest[SCovIdx[
i][
j]] =
src(
i,
j);
95 return startIR + trackBCinTF;
107 return fmt::format(
"({:s}) p {:7.2f} pt {:7.2f} nclusters: {} z: {:7.2f}", t.
getSign() == -1 ?
"-" :
"+", t.
getP(), pt, t.
getNClusters(), t.
getZ());
Definition of the MCH track.
MCH track external format.
void setParametersAtMID(const TMatrixD ¶m)
set the track parameters on the MID side
InteractionRecord getMeanIR(uint32_t refOrbit) const
interaction record corresponding to the mean track time
double getZ() const
get the track z position where the parameters are evaluated
void setCovariances(const TMatrixD &cov)
set the track parameter covariances
void setParameters(const TMatrixD ¶m)
set the track parameters
int getNClusters() const
get the number of clusters attached to the track
void setCovariancesAtMID(const TMatrixD &cov)
set the track parameter covariances on the MID side
short getSign() const
get the muon sign
GLdouble GLdouble GLdouble z
constexpr double LHCBunchSpacingMUS
std::string asString(const o2::mch::TrackMCH &t)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...