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 {
53 #endif // JetMETCorrections_FFTJetObjects_FFTJetScaleCalculators_h
static std::vector< std::string > checklist log
~FFTSpecificScaleCalculator() override
FFTSpecificScaleCalculator(std::shared_ptr< npstat::AbsMultivariateFunctor > f, const AbsFFTSpecificScaleCalculator *p)
void map(const MyJet &jet, const Adjustable ¤t, double *buf, const unsigned dim) const override
virtual void mapFFTJet(const reco::Jet &jet, const reco::FFTJet< float > &fftJet, const math::XYZTLorentzVector ¤t, double *buf, unsigned dim) const =0
FFTEtaLogPtConeRadiusMapper(std::shared_ptr< npstat::AbsMultivariateFunctor > f)
void map(const MyJet &jet, const Adjustable ¤t, double *buf, const unsigned dim) const override
const AbsFFTSpecificScaleCalculator * calc_