CMS 3D CMS Logo

JetAbsEta.h
Go to the documentation of this file.
1 #ifndef RecoJets_FFTJetAlgorithms_JetAbsEta_h
2 #define RecoJets_FFTJetAlgorithms_JetAbsEta_h
3 
4 #include <cmath>
5 
6 #include "fftjet/SimpleFunctors.hh"
7 
8 namespace fftjetcms {
9  template <class Jet>
10  struct PeakAbsEta : public fftjet::Functor1<double, Jet> {
11  inline double operator()(const Jet& j) const override { return fabs(j.eta()); }
12  };
13 
14  template <class Jet>
15  struct JetAbsEta : public fftjet::Functor1<double, Jet> {
16  inline double operator()(const Jet& j) const override { return fabs(j.vec().Eta()); }
17  };
18 } // namespace fftjetcms
19 
20 #endif // RecoJets_FFTJetAlgorithms_JetAbsEta_h
double operator()(const Jet &j) const override
Definition: JetAbsEta.h:11
double operator()(const Jet &j) const override
Definition: JetAbsEta.h:16
Definition: Jet.py:1