CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions
FFTGenericScaleCalculator.cc File Reference
#include <cassert>
#include <cfloat>
#include "JetMETCorrections/FFTJetObjects/interface/FFTGenericScaleCalculator.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "DataFormats/JetReco/interface/PFJet.h"

Go to the source code of this file.

Macros

#define check_param(varname)
 
#define int_param(varname)   m_ ## varname (ps.getParameter< int >( #varname ))
 

Functions

static double delPhi (const double phi1, const double phi2)
 

Macro Definition Documentation

#define check_param (   varname)
Value:
if ((m_ ## varname) >= 0) {\
if ((m_ ## varname) >= nFactors)\
throw cms::Exception("FFTJetBadConfig")\
<< "In FFTGenericScaleCalculator constructor: "\
<< "out of range mapping for variable \""\
<< #varname << "\"" << std::endl;\
mask[(m_ ## varname)] = 1;\
++dim;\
}
if(dp >Float(M_PI)) dp-

Definition at line 10 of file FFTGenericScaleCalculator.cc.

Referenced by FFTGenericScaleCalculator::FFTGenericScaleCalculator().

#define int_param (   varname)    m_ ## varname (ps.getParameter< int >( #varname ))

Definition at line 8 of file FFTGenericScaleCalculator.cc.

Function Documentation

static double delPhi ( const double  phi1,
const double  phi2 
)
inlinestatic

Definition at line 21 of file FFTGenericScaleCalculator.cc.

References M_PI.

Referenced by FFTGenericScaleCalculator::mapFFTJet().

22 {
23  double dphi = phi1 - phi2;
24  if (dphi > M_PI)
25  dphi -= 2.0*M_PI;
26  else if (dphi < -M_PI)
27  dphi += 2.0*M_PI;
28  return dphi;
29 }
#define M_PI
Definition: BFit3D.cc:3