Go to the documentation of this file. 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) {
std::unordered_map< Binning, float > value_type
std::vector< Range > m_variables_range
JetParameters & setJetEta(float eta)
const std::vector< float > & getParametersValues() const
Range(float min, float max)
JetParameters & setNPV(float npv)
std::vector< std::string > m_variables_name
std::unordered_map< U, T > right_type
T clip(const T &n, const T &lower, const T &upper)
size_t nParameters() const
#define COND_SERIALIZABLE
const Record * getRecord(const JetParameters &bins) const
const std::vector< Binning > & getBins() const
float evaluateFormula(const Record &record, const JetParameters &variables) const
JetParameters & setJetArea(float area)
std::vector< Record > m_records
const std::vector< Binning > & getVariables() const
std::string getFormulaString() const
std::vector< Binning > m_variables
JetParameters & set(const Binning &bin, float value)
std::string m_formula_str
size_t nVariables() const
JetParameters & setJetPt(float pt)
const Definition & getDefinition() const
const std::vector< Record > & getRecords() const
std::unordered_map< T, U > left_type
std::vector< Range > m_bins_range
const reco::FormulaEvaluator * getFormula() const
static const bimap< Binning, std::string > binning_to_string
std::string getBinName(size_t bin) const
std::string getVariableName(size_t variable) const
bool is_inside(float value) const
JetParameters & setRho(float rho)
bimap(std::initializer_list< typename left_type::value_type > l)
size_t nVariables() const
std::vector< float > m_parameters_values
const std::vector< Range > & getBinsRange() const
size_t nParameters() const
Container::value_type value_type
const std::vector< std::string > & getParametersName() const
result_type operator()(argument_type const &s) const
std::vector< float > createVector(const std::vector< Binning > &binning) const
const std::vector< std::string > & getVariablesName() const
const std::vector< std::string > & getBinsName() const
std::vector< std::string > m_parameters_name
JetParameters & setJetE(float e)
int def(FILE *, FILE *, int)
std::vector< Binning > m_bins
std::vector< std::string > m_bins_name
JME::Binning argument_type
JetParameters & setMu(float mu)
void saveToFile(const std::string &file) const
std::shared_ptr< reco::FormulaEvaluator > m_formula
const std::vector< Range > & getVariablesRange() const