test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 

Private Attributes

double _deltaR_factor
 
double _Rmax
 

Detailed Description

Definition at line 17 of file FastjetJetProducer.h.

Constructor & Destructor Documentation

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

Definition at line 20 of file FastjetJetProducer.h.

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

Member Function Documentation

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

Definition at line 23 of file FastjetJetProducer.h.

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

23  {
24  if (! j.has_pieces()) return _Rmax;
25 
26  std::vector<fastjet::PseudoJet> pieces = j.pieces();
27  if (pieces.size() != 2) return _Rmax;
28 
29  double deltaR = pieces[0].delta_R(pieces[1]);
30  return std::min(_Rmax, _deltaR_factor * deltaR);
31  }
tuple pieces
Definition: csv2json.py:31
int j
Definition: DBlmapReader.cc:9
T min(T a, T b)
Definition: MathUtil.h:58
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17

Member Data Documentation

double DynamicRfilt::_deltaR_factor
private

Definition at line 34 of file FastjetJetProducer.h.

Referenced by result().

double DynamicRfilt::_Rmax
private

Definition at line 34 of file FastjetJetProducer.h.

Referenced by result().