1 #include "fmt/format.h"
12 fmt::print(
"{:=^120} \n",
" TrdKBaseData ");
13 fmt::print(
"{:^15} {:^15} {:^15}\n",
"AlignStatus",
"CalibStatus",
"ChargeStatus");
14 fmt::print(
"{:^15} {:^15} {:^15}\n", AlignStatus, CalibStatus, ChargeStatus);
16 if (!(AlignStatus || CalibStatus || ChargeStatus))
19 if (NHits.size() > 0) {
20 fmt::print(
" {:<25} {:>15} {:>15}\n",
"Type",
"NHits",
"Amps");
22 fmt::print(
" - {:<23} {:>15} {:>15}\n",
TrdK::qualNames[qualType], NHits[qualType], Amps[qualType]);
26 fmt::print(
"{:-^120}\n",
"");
28 if (Charge.size() > 0) {
29 fmt::print(
" {:^25}",
" ");
34 fmt::print(
" {:<25}",
"Charge");
35 for (
auto chargeType : TrdK::recoTypes)
36 fmt::print(
" {:>15f}", Charge[chargeType]);
40 fmt::print(
"{:-^120}\n",
"");
42 if (Likelihood.size() > 0) {
43 fmt::print(
" {:^25}",
" ");
48 fmt::print(
" {:<25}",
"Likelihood");
49 for (
size_t likeType = 0; likeType < Likelihood.size(); likeType++)
50 fmt::print(
" {:>15f}", Likelihood[likeType]);
54 if (LikelihoodRatio.size() > 0) {
55 fmt::print(
" {:^25}",
" ");
60 fmt::print(
" {:<25}",
"Likelihood ratio");
61 for (
auto likeType : TrdK::likelihoodRTypes)
62 fmt::print(
" {:>15f}", LikelihoodRatio[likeType]);
66 fmt::print(
"{:-^120}\n",
"");
68 if (Edep.size() > 0) {
69 fmt::print(
"{:-^120}\n",
"");
70 fmt::print(
"{:<32} {:>15} {:>15}\n",
" ",
"Edep",
"Pathlength");
71 for (
auto layerIter : Edep) {
72 fmt::print(
" - {:<28} = {:> 15.4f} {:> 15.4f}\n", fmt::format(
"Layer {}", layerIter.first),
73 Edep.at(layerIter.first), Pathlength.at(layerIter.first));
76 fmt::print(
"{:-^120}\n",
"");
88 LikelihoodRatio.clear();
92 Cleanliness = IPChi2 = 0;
93 DirectionalStoermerCutoff = {0, 0};
95 m_pointAndDir.clear();
100 float dxdz = m_pointAndDir.at(1)[0] / m_pointAndDir.at(1)[2];
101 float dydz = m_pointAndDir.at(1)[1] / m_pointAndDir.at(1)[2];
103 TVector3 result{m_pointAndDir.at(0)};
104 result[0] += dxdz * (z - result[2]);
105 result[1] += dydz * (z - result[2]);
static const std::array< std::string, numQualTypes > qualNames
void Clear()
Clear container content.
static const std::array< std::string, numChargeTypes > recoNames
static const std::array< std::string, numLikelihoodTypes > likelihoodNames
constexpr std::array< QualType, numQualTypes > qualTypes
constexpr std::array< LikelihoodRType, numLikelihoodRTypes > likelihoodRTypes
void Dump() const
Dump on screen container content.
static const std::array< std::string, numLikelihoodRTypes > likelihoodRNames
TrdK container class description.
TVector3 InterpolateAtZ(float z) const
Get Trd track interpolation at given height.
static const std::string BranchName
constexpr std::array< LikelihoodType, numLikelihoodTypes > likelihoodTypes
static const std::string BranchName
constexpr std::array< ChargeType, numChargeTypes > recoTypes