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) {
73 fmt::print(
" {:<30} = ",
"ChargeNoPL");
74 for (
auto cType : Tof::recoTypes) {
82 fmt::print(
"{:=^120} \n",
" TofPlusData ");
84 fmt::print(
"{:^15} {:^15} {:^15} {:^15} {:^15} {:^30}\n",
"Chi2Coo",
"Chi2Time",
"NTrkClusters",
"NBetaClusters",
85 "NChargeClusters",
"ChargeLikelihoodEst (prob)");
90 fmt::print(
"{:<32}",
"Beta type");
95 fmt::print(
" {:<30} = ",
"BetaPattern");
96 for (
auto bType : Tof::betaTypes) {
103 fmt::print(
"{:-^120}\n",
"");
104 fmt::print(
"{:<32} {:>15} {:>15} {:>15}\n",
" ",
"LayerGoodPathl",
"LayerCharge",
"LayerEdep");
105 for (
size_t iLayer = 0; iLayer <
LayerGoodPathl.size(); iLayer++) {
108 fmt::print(
" - {:<28} = {:>15} {:> 15.4f} {:> 15.4f}\n", fmt::format(
"Layer {}", iLayer),
LayerGoodPathl[iLayer],
109 LayerChargeV, LayerEdepV);
114 fmt::print(
"{:-^120}\n",
"");
115 fmt::print(
"{:<32} {:>15} {:>15} {:>15}\n",
" ",
"NClusters",
"AverageDTime",
"AverageEdep");
116 for (
size_t iLayer = 0; iLayer <
LayerGoodPathl.size(); iLayer++) {
118 fmt::print(
" - {:<28} = {:>15} {:> 15.4f} {:> 15.4f}\n", fmt::format(
"Layer {} (On Time)", iLayer),
123 fmt::print(
" - {:<28} = {:>15} {:> 15.4f} {:> 15.4f}\n", fmt::format(
"Layer {} (Off Time)", iLayer),
130 fmt::print(
"{:-^120}\n",
"");
TofBetaVariable< float > Beta
Beta measurement, one for each type. See Tof::BetaType for list of types.
float ChargeLikelihoodEst
Likelihood estimation of the event discrete charge.
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...
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.
TofChargeVariable< float > ChargeNoPL
Charge measurement obtained using every layer, regardless of GoodPathl. One for each type...
float ChargeLikelihoodProb
Likelihood probability of the event discrete 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
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 obtained using only layers for which GoodPathl is true. One for each type...
std::vector< bool > LayerGoodPathl
Pathlength check for each tof layer. False if the track crosses a paddle edge, or if this is the stan...
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
static const std::string BranchName
std::enable_if< std::is_convertible< Key, size_t >::value, bool >::type ContainsKeys(const std::array< T, N > &container, Key key)
LayerVariable< float > LayerCharge
Charge estimation for each tof layer.
static const std::array< std::string, numBetaTypes > betaNames