1 #ifndef JetMETCorrections_FFTJetObjects_FFTJetScaleCalculators_h 2 #define JetMETCorrections_FFTJetObjects_FFTJetScaleCalculators_h 11 template <
class MyJet,
class Adjustable>
18 inline void map(
const MyJet&
jet,
const Adjustable& current,
double* buf,
const unsigned dim)
const override {
21 throw cms::Exception(
"FFTJetBadConfig") <<
"In FFTEtaLogPtConeRadiusMapper::map: " 22 <<
"invalid table dimensionality: " << dim << std::endl;
23 buf[0] = current.vec().eta();
24 buf[1] =
log(current.vec().pt());
25 buf[2] = jet.getFFTSpecific().f_recoScale();
29 template <
class MyJet,
class Adjustable>
46 inline void map(
const MyJet&
jet,
const Adjustable& current,
double* buf,
const unsigned dim)
const override {
47 return calc_->mapFFTJet(jet, jet.getFFTSpecific(), current.vec(), buf, dim);
53 #endif // JetMETCorrections_FFTJetObjects_FFTJetScaleCalculators_h
~FFTSpecificScaleCalculator() override
FFTSpecificScaleCalculator(std::shared_ptr< npstat::AbsMultivariateFunctor > f, const AbsFFTSpecificScaleCalculator *p)
FFTEtaLogPtConeRadiusMapper(std::shared_ptr< npstat::AbsMultivariateFunctor > f)
void map(const MyJet &jet, const Adjustable ¤t, double *buf, const unsigned dim) const override
void map(const MyJet &jet, const Adjustable ¤t, double *buf, const unsigned dim) const override
const AbsFFTSpecificScaleCalculator * calc_