21#include <fmt/format.h>
32 double zAtMID,
const TMatrixD& paramAtMID,
const TMatrixD& covAtMID,
const Time&
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);
94 auto trackBCinTF = std::llround(mTimeMUS.getTimeStamp() / constants::lhc::LHCBunchSpacingMUS);
95 return startIR + trackBCinTF;
106 auto pt = std::sqrt(
t.getPx() *
t.getPx() +
t.getPy() *
t.getPy());
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
void setCovariances(const TMatrixD &cov)
set the track parameter covariances
void setParameters(const TMatrixD ¶m)
set the track parameters
void setCovariancesAtMID(const TMatrixD &cov)
set the track parameter covariances on the MID side
GLdouble GLdouble GLdouble z
std::string asString(const o2::mch::TrackMCH &t)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...