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));
98 JetParameters(std::initializer_list<typename value_type::value_type> init);
138 return (value >=
min) && (value <=
max);
size_t nVariables() const
const std::vector< Binning > & getVariables() const
size_t nParameters() const
const Record * getRecord(const JetParameters &bins) const
JetParameters & setJetEta(float eta)
std::unordered_map< Binning, float > value_type
JetParameters & setRho(float rho)
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)
JetParameters & set(const Binning &bin, float value)
const std::vector< std::string > & getVariablesName() const
std::unordered_map< T, U > left_type
const std::vector< Range > & getVariablesRange() const
void saveToFile(const std::string &file) const
std::string getVariableName(size_t variable) const
float evaluateFormula(const Record &record, const JetParameters &variables) const
Container::value_type value_type
size_t nVariables() const
const std::vector< Record > & getRecords() const
std::vector< Binning > m_bins
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::shared_ptr< TFormula > m_formula
std::vector< float > m_parameters_values
std::vector< float > createVector(const std::vector< Binning > &binning) const
TFormula const * getFormula() const
std::unordered_map< U, T > right_type
const std::vector< float > & getParametersValues() const
bool is_inside(float value) const
std::string m_formula_str
JetParameters & setJetE(float e)
JME::Binning argument_type
#define COND_SERIALIZABLE
JetParameters & setMu(float mu)
bimap(std::initializer_list< typename left_type::value_type > l)
JetParameters & setJetPt(float pt)
std::vector< Binning > m_variables
std::vector< Record > m_records
std::vector< Range > m_bins_range
const std::vector< Range > & getBinsRange() const
std::vector< Range > m_variables_range
JetParameters & setNPV(float npv)
JetParameters & setJetArea(float area)
static const bimap< Binning, std::string > binning_to_string