CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
constexpr char Jet[]
Definition: modules.cc:9
double operator()(const Jet &j) const override
Definition: JetAbsEta.h:16