CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

fftjetcms::EtaAndPtDependentPeakSelector Class Reference

#include <EtaAndPtDependentPeakSelector.h>

List of all members.

Public Member Functions

 EtaAndPtDependentPeakSelector (std::istream &in)
bool isValid () const
bool operator() (const fftjet::Peak &peak) const
 ~EtaAndPtDependentPeakSelector ()

Private Member Functions

 EtaAndPtDependentPeakSelector ()
 EtaAndPtDependentPeakSelector (const EtaAndPtDependentPeakSelector &)
EtaAndPtDependentPeakSelectoroperator= (const EtaAndPtDependentPeakSelector &)

Private Attributes

fftjet::LinearInterpolator2d * ip_

Detailed Description

Definition at line 17 of file EtaAndPtDependentPeakSelector.h.


Constructor & Destructor Documentation

fftjetcms::EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector ( std::istream &  in) [explicit]
fftjetcms::EtaAndPtDependentPeakSelector::~EtaAndPtDependentPeakSelector ( )

Definition at line 11 of file EtaAndPtDependentPeakSelector.cc.

References ip_.

    {
        delete ip_;
    }
fftjetcms::EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector ( ) [private]
fftjetcms::EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector ( const EtaAndPtDependentPeakSelector ) [private]

Member Function Documentation

bool fftjetcms::EtaAndPtDependentPeakSelector::isValid ( void  ) const [inline]

Definition at line 25 of file EtaAndPtDependentPeakSelector.h.

References ip_.

Referenced by fftjetcms::fftjet_PeakSelector_parser().

{return ip_;}
bool fftjetcms::EtaAndPtDependentPeakSelector::operator() ( const fftjet::Peak &  peak) const

Definition at line 16 of file EtaAndPtDependentPeakSelector.cc.

References funct::exp(), and funct::log().

    {
        const double lookup = (*ip_)(peak.eta(), log(peak.scale()));
        return peak.magnitude() > exp(lookup);
    }
EtaAndPtDependentPeakSelector& fftjetcms::EtaAndPtDependentPeakSelector::operator= ( const EtaAndPtDependentPeakSelector ) [private]

Member Data Documentation

fftjet::LinearInterpolator2d* fftjetcms::EtaAndPtDependentPeakSelector::ip_ [private]

Definition at line 33 of file EtaAndPtDependentPeakSelector.h.

Referenced by isValid(), and ~EtaAndPtDependentPeakSelector().