1 #ifndef JetResolutionObject_h 2 #define JetResolutionObject_h 12 #define COND_SERIALIZABLE 13 #define COND_TRANSIENT 16 #include <unordered_map> 21 #include <initializer_list> 37 template <
typename T,
typename U>
45 bimap(std::initializer_list<typename left_type::value_type>
l) {
85 return int_hash(static_cast<uint8_t>(s));
113 std::vector<float> createVector(
const std::vector<Binning>&
binning)
const;
138 return (value >= min) && (value <=
max);
162 return m_bins_name[
bin];
166 return m_bins_name.size();
170 return m_variables_name;
182 return m_variables.size();
186 return m_formula_str;
190 return m_formula.get();
221 return m_variables_range;
225 return m_parameters_values;
229 return m_variables_range.size();
233 return m_parameters_values.size();
267 bool m_valid =
false;
size_t nVariables() const
const std::vector< Binning > & getVariables() const
size_t nParameters() const
std::unordered_map< Binning, float > value_type
std::string getFormulaString() const
T clip(const T &n, const T &lower, const T &upper)
const std::vector< Binning > & getBins() const
Range(float min, float max)
const std::vector< std::string > & getVariablesName() const
std::unordered_map< T, U > left_type
const std::vector< Range > & getVariablesRange() const
std::string getVariableName(size_t variable) const
Container::value_type value_type
size_t nVariables() const
const std::vector< Record > & getRecords() const
std::vector< std::string > m_variables_name
const Definition & getDefinition() const
result_type operator()(argument_type const &s) const
const std::vector< std::string > & getBinsName() const
std::vector< std::string > m_bins_name
std::string getBinName(size_t bin) const
std::vector< float > m_parameters_values
TFormula const * getFormula() const
std::unordered_map< U, T > right_type
bin
set the eta bin as selection string.
const std::vector< float > & getParametersValues() const
bool is_inside(float value) const
std::string m_formula_str
JME::Binning argument_type
#define COND_SERIALIZABLE
bimap(std::initializer_list< typename left_type::value_type > l)
std::vector< Record > m_records
std::vector< Range > m_bins_range
const std::vector< Range > & getBinsRange() const
std::vector< Range > m_variables_range
static const bimap< Binning, std::string > binning_to_string