File indexing completed on 2024-04-06 12:25:21
0001 #ifndef RecoJets_FFTJetAlgorithms_JetAbsEta_h
0002 #define RecoJets_FFTJetAlgorithms_JetAbsEta_h
0003
0004 #include <cmath>
0005
0006 #include "fftjet/SimpleFunctors.hh"
0007
0008 namespace fftjetcms {
0009 template <class Jet>
0010 struct PeakAbsEta : public fftjet::Functor1<double, Jet> {
0011 inline double operator()(const Jet& j) const override { return fabs(j.eta()); }
0012 };
0013
0014 template <class Jet>
0015 struct JetAbsEta : public fftjet::Functor1<double, Jet> {
0016 inline double operator()(const Jet& j) const override { return fabs(j.vec().Eta()); }
0017 };
0018 }
0019
0020 #endif