1 #ifndef JetResolutionObject_h
2 #define JetResolutionObject_h
12 #define COND_SERIALIZABLE
13 #define COND_TRANSIENT
16 #include <unordered_map>
21 #include <initializer_list>
32 T clip(
const T&
n,
const T& lower,
const T& upper) {
37 template <
typename T,
typename U>
45 bimap(std::initializer_list<typename left_type::value_type>
l) {
size_t nVariables() const
const std::vector< Binning > & getVariables() const
size_t nParameters() const
int def(FILE *, FILE *, int)
const Record * getRecord(const JetParameters &bins) const
JetParameters & setJetEta(float eta)
std::unordered_map< Binning, float > value_type
size_t nParameters() const
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
std::vector< std::string > m_parameters_name
void saveToFile(const std::string &file) const
std::shared_ptr< reco::FormulaEvaluator > m_formula
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
const reco::FormulaEvaluator * getFormula() const
std::string getBinName(size_t bin) const
std::vector< float > m_parameters_values
std::vector< float > createVector(const std::vector< Binning > &binning) 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)
const std::vector< std::string > & getParametersName() const
JetParameters & setJetArea(float area)
static const bimap< Binning, std::string > binning_to_string