1 #ifndef JetResolutionObject_h 2 #define JetResolutionObject_h 12 #define COND_SERIALIZABLE 13 #define COND_TRANSIENT 16 #include <unordered_map> 21 #include <initializer_list> 41 template <
typename T,
typename U>
49 bimap(std::initializer_list<typename left_type::value_type>
l) {
89 return int_hash(static_cast<uint8_t>(s));
117 std::vector<float> createVector(
const std::vector<Binning>&
binning)
const;
142 return (value >= min) && (value <=
max);
166 return m_bins_name[
bin];
170 return m_bins_name.size();
174 return m_variables_name;
186 return m_variables.size();
194 return m_formula_str;
199 return m_formula.get();
202 TFormula
const * getFormula()
const {
203 return m_formula.get();
238 return m_variables_range;
242 return m_parameters_values;
246 return m_variables_range.size();
250 return m_parameters_values.size();
284 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
size_t nParameters() const
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
const reco::FormulaEvaluator * getFormula() const
std::string getBinName(size_t bin) const
std::vector< float > m_parameters_values
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
const std::vector< std::string > & getParametersName() const
static const bimap< Binning, std::string > binning_to_string