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) {
111 std::vector<float>
createVector(
const std::vector<std::string>& binname)
const;
int def(FILE *, FILE *, int)
const std::vector< std::string > & getParametersName() const
const reco::FormulaEvaluator * getFormula() const
const std::vector< Range > & getBinsRange() const
JetParameters & setJetEta(float eta)
std::vector< float > createVector(const std::vector< Binning > &binning) const
std::unordered_map< Binning, float > value_type
std::string getVariableName(size_t variable) const
JetParameters & setRho(float rho)
T clip(const T &n, const T &lower, const T &upper)
result_type operator()(argument_type const &s) const
size_t nParameters() const
Range(float min, float max)
std::unordered_map< T, U > left_type
size_t nParameters() const
const std::vector< std::string > & getVariablesName() const
const std::vector< Range > & getVariablesRange() const
std::vector< std::string > m_parameters_name
std::shared_ptr< reco::FormulaEvaluator > m_formula
Container::value_type value_type
std::vector< Binning > m_bins
size_t nVariables() const
const std::vector< std::string > & getBinsName() const
std::vector< std::string > m_variables_name
std::vector< std::string > m_bins_name
std::vector< float > m_parameters_values
const std::vector< float > & getParametersValues() const
std::unordered_map< U, T > right_type
const std::vector< Binning > & getVariables() const
const Definition & getDefinition() const
const Record * getRecord(const JetParameters &bins) 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)
const std::vector< Binning > & getBins() const
std::string getFormulaString() const
void saveToFile(const std::string &file) const
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< Record > & getRecords() const
float evaluateFormula(const Record &record, const JetParameters &variables) const
std::vector< Range > m_variables_range
JetParameters & setNPV(float npv)
size_t nVariables() const
std::string getBinName(size_t bin) const
JetParameters & setJetArea(float area)
static const bimap< Binning, std::string > binning_to_string