CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_4/src/RecoJets/FFTJetAlgorithms/interface/JetAbsEta.h

Go to the documentation of this file.
00001 #ifndef RecoJets_FFTJetAlgorithms_JetAbsEta_h
00002 #define RecoJets_FFTJetAlgorithms_JetAbsEta_h
00003 
00004 #include <cmath>
00005 
00006 #include "fftjet/SimpleFunctors.hh"
00007 
00008 namespace fftjetcms {
00009     template<class Jet>
00010     struct PeakAbsEta : public fftjet::Functor1<double,Jet>
00011     {
00012         inline double operator()(const Jet& j) const
00013             {return fabs(j.eta());}
00014     };
00015 
00016     template<class Jet>
00017     struct JetAbsEta : public fftjet::Functor1<double,Jet>
00018     {
00019         inline double operator()(const Jet& j) const
00020             {return fabs(j.vec().Eta());}
00021     };
00022 }
00023 
00024 #endif // RecoJets_FFTJetAlgorithms_JetAbsEta_h