CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DynamicRfilt Class Reference

#include <FastjetJetProducer.h>

Inheritance diagram for DynamicRfilt:

Public Member Functions

 DynamicRfilt (double Rmax, double deltaR_factor)
 
double result (const fastjet::PseudoJet &j) const override
 

Private Attributes

double _deltaR_factor
 
double _Rmax
 

Detailed Description

Definition at line 19 of file FastjetJetProducer.h.

Constructor & Destructor Documentation

DynamicRfilt::DynamicRfilt ( double  Rmax,
double  deltaR_factor 
)
inline

Definition at line 22 of file FastjetJetProducer.h.

22 : _Rmax(Rmax), _deltaR_factor(deltaR_factor){}
const double Rmax[kNumberCalorimeter]

Member Function Documentation

double DynamicRfilt::result ( const fastjet::PseudoJet &  j) const
inlineoverride

Definition at line 25 of file FastjetJetProducer.h.

References _deltaR_factor, _Rmax, boostedElectronIsolation_cff::deltaR, min(), and csvLumiCalc::pieces.

25  {
26  if (! j.has_pieces()) return _Rmax;
27 
28  std::vector<fastjet::PseudoJet> pieces = j.pieces();
29  if (pieces.size() != 2) return _Rmax;
30 
31  double deltaR = pieces[0].delta_R(pieces[1]);
32  return std::min(_Rmax, _deltaR_factor * deltaR);
33  }
T min(T a, T b)
Definition: MathUtil.h:58

Member Data Documentation

double DynamicRfilt::_deltaR_factor
private

Definition at line 36 of file FastjetJetProducer.h.

Referenced by result().

double DynamicRfilt::_Rmax
private

Definition at line 36 of file FastjetJetProducer.h.

Referenced by result().