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, PbPb_ZMuSkimMuonDPG_cff::deltaR, min(), and csv2json::pieces.

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

Member Data Documentation

double DynamicRfilt::_deltaR_factor
private

Definition at line 38 of file FastjetJetProducer.h.

Referenced by result().

double DynamicRfilt::_Rmax
private

Definition at line 38 of file FastjetJetProducer.h.

Referenced by result().