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
fftjetcms
Definition: AbsPileupCalculator.h:15
fftjetcms::PeakAbsEta
Definition: JetAbsEta.h:10
Jet
Definition: Jet.py:1
fftjetcms::JetAbsEta::operator()
double operator()(const Jet &j) const override
Definition: JetAbsEta.h:16
fftjetcms::JetAbsEta
Definition: JetAbsEta.h:15
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
fftjetcms::PeakAbsEta::operator()
double operator()(const Jet &j) const override
Definition: JetAbsEta.h:11