CMS 3D CMS Logo

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

◆ check_param

#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; \
}

Definition at line 10 of file FFTGenericScaleCalculator.cc.

◆ int_param

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

Definition at line 8 of file FFTGenericScaleCalculator.cc.

Function Documentation

◆ delPhi()

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

Definition at line 20 of file FFTGenericScaleCalculator.cc.

20  {
21  double dphi = phi1 - phi2;
22  if (dphi > M_PI)
23  dphi -= 2.0 * M_PI;
24  else if (dphi < -M_PI)
25  dphi += 2.0 * M_PI;
26  return dphi;
27 }

References M_PI.

Referenced by GEMGeometryParsFromDD::buildEtaPartition(), GEMGeometryBuilder::buildEtaPartition(), CandidateChargeBTagComputer::discriminator(), PFEGammaAlgo::evaluateSingleLegMVA(), tmtt::Sector::insidePhi(), and FFTGenericScaleCalculator::mapFFTJet().

M_PI
#define M_PI
Definition: BXVectorInputProducer.cc:49
Exception
Definition: hltDiff.cc:246