16 return std::numeric_limits<double>::quiet_NaN();
52 std::pair<int, int> indices_BetaGammaLog10;
53 if (
empty())
return {-1,-1};
62 return indices_BetaGammaLog10;
74 if ((indices_BetaGammaLog10.first == -1) && (indices_BetaGammaLog10.second == -1))
return -1.;
75 if (
empty())
return -1.;
79 std::pair<int, int> indices_IntXLog10_x2 =
81 if (indices_IntXLog10_x2.first < 0) {
84 if (indices_IntXLog10_x2.second < 0) {
90 const auto diff = y22 - y21;
100 double Est = std::clamp(Est_x2,-300.,300.);
101 return std::pow(10., Est);
118 if (
empty())
return -1;
119 if (indices_BetaGammaLog10.first < 0) {
122 if (indices_BetaGammaLog10.second < 0) {
125 if (indices_BetaGammaLog10.second == indices_BetaGammaLog10.first){
136 const auto diff=BetaGammaLog10_2 - BetaGammaLog10_1;
140 double Est = ((BetaGammaLog10_2 - BetaGammaLog10) * Est_1 + (BetaGammaLog10 - BetaGammaLog10_1) * Est_2) /
diff;
141 Est = std::clamp(Est,-300.,300.);
142 return std::pow(10., Est);
void diff(const Jet &rJet1, const Jet &rJet2, std::map< std::string, double > varDiff)
Difference between jets - Non-Class function required by trigger.
std::pair< int, int > fastSearch(const std::vector< double > &vec, double item)
std::vector< std::vector< double > > logIntegratedCrossSectionsVectorOfVector
void addEntry(double logBetaGamma, double logCollisionEnergy, double logIntegratedCrossSection)
std::vector< std::vector< double > > logCollisionEnergyVectorOfVector
void updateAfterLastEntry()
double interpolateCrossSection(std::pair< int, int > indices_BetaGammaLog10, double BetaGammaLog10) const
std::pair< int, int > getBetaGammaIndices(double BetaGammaLog10) const
std::vector< double > logHighestCrossSectionsVector
double lastBetaGammaValue() const
double interpolateCollisionEnergy(std::pair< int, int > indices_BetaGammaLog10, double IntXLog10) const
std::vector< double > logBetaGammaVector
void addNewLogBetaGamma(double logBetaGamma)