HistAxis.cxx
Go to the documentation of this file.
1 #include "CAFAna/Core/HistAxis.h"
2 #include "CAFAna/Core/Var.h"
3 
5 
6 namespace ana
7 {
8  //----------------------------------------------------------------------
10  {
11  std::vector<Var> vars;
12  for(const NuTruthVar& var: ntha.GetVars())
13  vars.push_back(VarFromNuTruthVar(var, _default));
14 
15  return HistAxis(ntha.GetLabels(),
16  ntha.GetBinnings(),
17  vars);
18  }
19 }
_HistAxis< Var > HistAxis
Definition: HistAxis.h:103
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
const std::vector< T > & GetVars() const
Definition: HistAxis.h:92
HistAxis HistAxisFromNuTruthHistAxis(NuTruthHistAxis ntha, double _default)
Definition: HistAxis.cxx:9
const std::map< std::pair< std::string, std::string >, Variable > vars
const std::vector< Binning > & GetBinnings() const
Definition: LabelsAndBins.h:69
Var VarFromNuTruthVar(const NuTruthVar &stv, double _default)
Definition: Var.cxx:7
Collect information describing the x-axis of an analysis histogram.
Definition: HistAxis.h:18
Template for Var and SpillVar.
const std::vector< std::string > & GetLabels() const
Definition: LabelsAndBins.h:68