CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
fftjetcms::EtaAndPtDependentPeakSelector Class Reference

#include <EtaAndPtDependentPeakSelector.h>

Inheritance diagram for fftjetcms::EtaAndPtDependentPeakSelector:

Public Member Functions

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

Private Member Functions

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

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

Definition at line 6 of file EtaAndPtDependentPeakSelector.cc.

7  : ip_(fftjet::LinearInterpolator2d::read(in))
8  {
9  }
fftjetcms::EtaAndPtDependentPeakSelector::~EtaAndPtDependentPeakSelector ( )
override

Definition at line 11 of file EtaAndPtDependentPeakSelector.cc.

References ip_.

12  {
13  delete ip_;
14  }
fftjetcms::EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector ( )
privatedelete

Referenced by isValid().

fftjetcms::EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector ( const EtaAndPtDependentPeakSelector )
privatedelete

Member Function Documentation

bool fftjetcms::EtaAndPtDependentPeakSelector::isValid ( void  ) const
inline
bool fftjetcms::EtaAndPtDependentPeakSelector::operator() ( const fftjet::Peak &  peak) const
override

Definition at line 16 of file EtaAndPtDependentPeakSelector.cc.

References JetChargeProducer_cfi::exp, and cmsBatch::log.

18  {
19  const double lookup = (*ip_)(peak.eta(), log(peak.scale()));
20  return peak.magnitude() > exp(lookup);
21  }
EtaAndPtDependentPeakSelector& fftjetcms::EtaAndPtDependentPeakSelector::operator= ( const EtaAndPtDependentPeakSelector )
privatedelete

Referenced by isValid().

Member Data Documentation

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

Definition at line 33 of file EtaAndPtDependentPeakSelector.h.

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