1 #include "fmt/format.h"
26 fmt::print(
"{:=^120} \n",
" EcalBaseData ");
27 fmt::print(
"{:^15} {:^15}\n",
"TotalHits",
"ShowerHits");
31 fmt::print(
" {:^15}",
" ");
36 fmt::print(
" {:<15}",
"Energy");
37 for (
auto recoType : Ecal::recoTypes)
38 fmt::print(
" {:>20f}",
Energy[recoType]);
43 fmt::print(
" {:^15}",
" ");
48 fmt::print(
" {:<15}",
"BDT");
49 for (
auto bdtType : Ecal::BDTTypes)
50 fmt::print(
" {:>20f}",
BDT[bdtType]);
55 fmt::print(
"\n COG: ({:5.2f}, {:5.2f}, {:5.2f}) Direction: ({:5.2f}, {:5.2f}, {:5.2f})\n",
GetCOG().x(),
59 fmt::print(
"{:-^120}\n",
"");
63 fmt::print(
"{:=^120} \n",
" EcalPlusData ");
64 fmt::print(
"{:^15} {:^15}\n",
"EcalKNShowers",
"EcalKHadronicFlag");
73 fmt::print(
" {:<15}",
"MaxEnergyFraction:");
74 for (
unsigned int iLayer = 0; iLayer < 18; iLayer++) {
81 fmt::print(
"{:-^120}\n",
"");
int EcalKHadronicFlag
Hadronic interaction flag (W. Xu reconstruction)
const TVector3 & GetCOG() const
Get the shower COG coordinates.
short ShowerHits
Total number of Ecal hits in the shower.
void Clear()
Clear container content.
std::vector< TVector3 > m_pointAndDir
void Dump() const
Dump on screen container content.
EcalBDTVariable< float > BDT
Ecal BDT estimator for e/p separation. See Ecal::BDTType for a list of available types.
void Clear()
Clear container content.
short TotalHits
Total number of Ecal hits.
constexpr std::array< EnergyRecoType, numEnergyRecos > recoTypes
LayerVariable< float > MaxEnergyFraction
Energy fraction in the cell with the highest edep, for each Ecal layer.
void Dump() const
Dump on screen container content.
int EcalKNShowers
Number of reconstructed showers (W. Xu reconstruction)
static const std::string BranchName
static const std::array< std::string, numBDTTypes > BDTNames
EcalLikelihoodVariable< float > Likelihood
Likelihood variable for e/p separation (W. Xu reconstruction). See Ecal::LikelihoodType for a list of...
static const std::array< std::string, numEnergyRecos > recoNames
static const std::string BranchName
Ecal container class description.
EcalEnergyVariable< float > Energy
Reconstructed shower energy. See Ecal::EnergyRecoType for a list of available energy reconstructions...
const TVector3 & GetDirection() const
Get the shower Direction.
std::enable_if< std::is_convertible< Key, size_t >::value, bool >::type ContainsKeys(const std::array< T, N > &container, Key key)
constexpr std::array< BDTType, numBDTTypes > BDTTypes