1 #include "fmt/format.h"
39 result[0] += dxdz * (z - result[2]);
40 result[1] += dydz * (z - result[2]);
47 fmt::print(
"{:=^120} \n",
" TofBaseData ");
50 fmt::print(
"{:<32}",
" ");
55 fmt::print(
" {:<30} = ",
"Beta");
56 for (
auto bType : Tof::betaTypes) {
63 fmt::print(
"{:<32}",
" ");
68 fmt::print(
" {:<30} = ",
"Charge");
69 for (
auto cType : Tof::recoTypes) {
77 fmt::print(
"{:=^120} \n",
" TofPlusData ");
79 fmt::print(
"{:^15} {:^15} {:^15} {:^15} {:^15} {:^15}\n",
"Chi2Coo",
"Chi2Time",
"NTrkClusters",
"NBetaClusters",
80 "NChargeClusters",
"ChargeLikelihood");
85 fmt::print(
"{:<32}",
"Beta type");
90 fmt::print(
" {:<30} = ",
"BetaPattern");
91 for (
auto bType : Tof::betaTypes) {
98 fmt::print(
"{:-^120}\n",
"");
99 fmt::print(
"{:<32} {:>15} {:>15} {:>15}\n",
" ",
"LayerGoodPathl",
"LayerCharge",
"LayerEdep");
100 for (
size_t iLayer = 0; iLayer <
LayerGoodPathl.size(); iLayer++) {
102 fmt::print(
" - {:<28} = {:>15} {:> 15.4f} {:> 15.4f}\n", fmt::format(
"Layer {}", iLayer),
LayerGoodPathl[iLayer],
108 fmt::print(
"{:-^120}\n",
"");
109 fmt::print(
"{:<32} {:>15} {:>15} {:>15}\n",
" ",
"NClusters",
"AverageDTime",
"AverageEdep");
110 for (
size_t iLayer = 0; iLayer <
LayerGoodPathl.size(); iLayer++) {
112 fmt::print(
" - {:<28} = {:>15} {:> 15.4f} {:> 15.4f}\n", fmt::format(
"Layer {} (On Time)", iLayer),
117 fmt::print(
" - {:<28} = {:>15} {:> 15.4f} {:> 15.4f}\n", fmt::format(
"Layer {} (Off Time)", iLayer),
124 fmt::print(
"{:-^120}\n",
"");
TofBetaVariable< float > Beta
Beta measurement, one for each type. See Tof::BetaType for list of types.
void Dump() const
Dump on screen container content.
LayerVariable< TofClusterTypeVariable< unsigned int > > NClusters
Number of tof clusters on each layer both on-time or off-time (far from trigger). See Tof::BetaCluste...
float ChargeLikelihood
Likelihood probability of the discrete charge estimation.
LayerVariable< TofClusterTypeVariable< float > > AverageDTime
Average delta-t for tof clusters on each layer. See Tof::BetaClusterType for list of cluster types...
constexpr std::array< BetaType, numBetaTypes > betaTypes
LayerVariable< float > LayerEdep
Energy deposition in each tof layer.
short NChargeClusters
Total number of clusters used for charge estimation.
TofBetaVariable< short > BetaPattern
Tof layer pattern used for the beta reconstruction (for each beta type). See Tof::BetaType for list o...
short NTrkClusters
Total number of clusters matching Tracker track.
float Chi2Coo
Tof clusters spatial reconstruction normalized chi-square. The tof cluster residuals are computed w...
static const std::string BranchName
void Clear()
Clear container content.
constexpr std::array< ChargeType, numChargeTypes > recoTypes
static const std::string BranchName
std::vector< float > LayerCharge
Charge estimation for each tof layer.
LayerVariable< TofClusterTypeVariable< float > > AverageEdep
Average cluster energy deposition on each tof layer. See Tof::BetaClusterType for list of cluster typ...
static const std::array< std::string, numChargeTypes > recoNames
TVector3 InterpolateAtZ(float z) const
Get Tof track interpolation at given height.
short NBetaClusters
Total number of clusters used for beta estimation.
void Dump() const
Dump on screen container content.
void Clear()
Clear container content.
TofChargeVariable< float > Charge
Charge measurement, one for each type. See Tof::ChargeType for list of types.
std::vector< bool > LayerGoodPathl
Pathlength check for each tof layer. False if the track (or the cluster line-fit in case of standalon...
Tof container class description.
float Chi2Time
Tof clusters temporal reconstruction normalized chi-square. (Good luck finding out how this is comput...
std::vector< TVector3 > m_pointAndDir
static const std::string BranchName
std::enable_if< std::is_convertible< T, Key >::value, bool >::type ContainsKeys(const std::map< Key, Value > &container, T key)
static const std::string BranchName
static const std::array< std::string, numBetaTypes > betaNames