1 #include "fmt/format.h"
16 auto dumpHitData = [](
const auto &hitDatap) {
17 const HitData &hitData = hitDatap.second;
18 fmt::print(
"{:-^120}\n",
"");
20 fmt::print(
"{:<32} {:>15} {:>15}\n",
"",
"Pos X",
"Pos Y");
21 fmt::print(
" - {:<28} = {:> 15.4f} {:> 15.4f}", fmt::format(
"Layer {}", hitDatap.first ==
ExtHit::L1 ?
"1" :
"9"),
25 fmt::print(
"{:<32} {:>15} {:>15} {:>15} {:>32}\n",
"Charge type",
"Standard",
"Hu Liu",
"Yi Jia",
"status");
26 if (hitData.
Charge.size() > 0) {
27 fmt::print(
" - {:<28} = ", fmt::format(
"Layer {}", hitDatap.first ==
ExtHit::L1 ?
"1" :
"9"));
29 fmt::print(
"{:> 15.4f} ", hitData.
Charge.at(chType));
33 fmt::print(
"{:>32} ", dummy.to_string());
40 fmt::print(
"{:=^120} \n",
" UnbExtHitBaseData ");
42 std::for_each(cbegin(
m_hits), cend(
m_hits), dumpHitData);
44 fmt::print(
"{:-^120}\n",
"");
constexpr std::array< ChargeRecoType, numChargeRecos > recoTypes
UnbExtHit container class description.
needed to get basic info without computing twice
static const std::string BranchName
void Clear()
Clear container content.
void Dump() const
Dump on screen container content.
HitChargeVariable< float > Charge
std::map< ExtHit, HitData > m_hits