Go to the documentation of this file. 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");
63 fmt::print(
"{:<32}",
" ");
68 fmt::print(
" {:<30} = ",
"Charge");
73 fmt::print(
" {:<30} = ",
"ChargeNoPL");
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");
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",
"");
LayerVariable< TofClusterTypeVariable< float > > AverageDTime
Average delta-t for tof clusters on each layer. See Tof::BetaClusterType for list of cluster types.
float Chi2Time
Tof clusters temporal reconstruction normalized chi-square. (Good luck finding out how this is comput...
short NTrkClusters
Total number of clusters matching Tracker track.
TVector3 InterpolateAtZ(float z) const
Get Tof track interpolation at given height.
TofChargeVariable< float > ChargeNoPL
Charge measurement obtained using every layer, regardless of GoodPathl. One for each type....
short NBetaClusters
Total number of clusters used for beta estimation.
TofChargeVariable< float > Charge
Charge measurement obtained using only layers for which GoodPathl is true. One for each type....
std::enable_if< std::is_convertible< Key, size_t >::value, bool >::type ContainsKeys(const std::array< T, N > &container, Key key)
void Dump() const
Dump on screen container content.
static const std::array< std::string, numBetaTypes > betaNames
std::vector< bool > LayerGoodPathl
Pathlength check for each tof layer. False if the track crosses a paddle edge, or if this is the stan...
std::vector< TVector3 > m_pointAndDir
static const std::string BranchName
void Clear()
Clear container content.
LayerVariable< float > LayerEdep
Energy deposition in each tof layer.
LayerVariable< TofClusterTypeVariable< unsigned int > > NClusters
Number of tof clusters on each layer both on-time or off-time (far from trigger). See Tof::BetaCluste...
void Dump() const
Dump on screen container content.
LayerVariable< TofClusterTypeVariable< float > > AverageEdep
Average cluster energy deposition on each tof layer. See Tof::BetaClusterType for list of cluster typ...
static const std::string BranchName
static const std::string BranchName
constexpr std::array< BetaType, numBetaTypes > betaTypes
Tof container class description.
float Chi2Coo
Tof clusters spatial reconstruction normalized chi-square. The tof cluster residuals are computed w....
LayerVariable< float > LayerCharge
Charge estimation for each tof layer.
float ChargeLikelihoodEst
Likelihood estimation of the event discrete charge.
static const std::string BranchName
TofBetaVariable< short > BetaPattern
Tof layer pattern used for the beta reconstruction (for each beta type). See Tof::BetaType for list o...
short NChargeClusters
Total number of clusters used for charge estimation.
TofBetaVariable< float > Beta
Beta measurement, one for each type. See Tof::BetaType for list of types.
void Clear()
Clear container content.
constexpr std::array< ChargeType, numChargeTypes > recoTypes
static const std::array< std::string, numChargeTypes > recoNames
float ChargeLikelihoodProb
Likelihood probability of the event discrete charge estimation.