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  {
12  inline double operator()(const Jet& j) const
13  {return fabs(j.eta());}
14  };
15 
16  template<class Jet>
17  struct JetAbsEta : public fftjet::Functor1<double,Jet>
18  {
19  inline double operator()(const Jet& j) const
20  {return fabs(j.vec().Eta());}
21  };
22 }
23 
24 #endif // RecoJets_FFTJetAlgorithms_JetAbsEta_h
double operator()(const Jet &j) const
Definition: JetAbsEta.h:12
Definition: Jet.py:1
double operator()(const Jet &j) const
Definition: JetAbsEta.h:19