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) {
84 result_type
operator()(argument_type
const&
s)
const {
return int_hash(static_cast<uint8_t>(s)); }
110 std::vector<float> createVector(
const std::vector<Binning>&
binning)
const;
144 const std::vector<std::string>&
getBinsName()
const {
return m_bins_name; }
146 const std::vector<Binning>&
getBins()
const {
return m_bins; }
150 size_t nBins()
const {
return m_bins_name.size(); }
154 const std::vector<Binning>&
getVariables()
const {
return m_variables; }
165 TFormula
const* getFormula()
const {
return m_formula.get(); }
193 const std::vector<Range>&
getBinsRange()
const {
return m_bins_range; }
199 size_t nVariables()
const {
return m_variables_range.size(); }
222 const std::vector<Record>&
getRecords()
const {
return m_records; }
230 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
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
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