CMS 3D CMS Logo

Namespaces | Macros | Typedefs | Functions
FFTJetParameterParser.cc File Reference
#include <cstdlib>
#include <cstring>
#include <string>
#include <fstream>
#include "RecoJets/FFTJetProducers/interface/FFTJetParameterParser.h"
#include "RecoJets/FFTJetAlgorithms/interface/JetConvergenceDistance.h"
#include "RecoJets/FFTJetAlgorithms/interface/ScaleCalculators.h"
#include "RecoJets/FFTJetAlgorithms/interface/EtaAndPtDependentPeakSelector.h"
#include "RecoJets/FFTJetAlgorithms/interface/EtaDependentPileup.h"
#include "RecoJets/FFTJetAlgorithms/interface/PileupGrid2d.h"
#include "RecoJets/FFTJetAlgorithms/interface/JetAbsEta.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "fftjet/PeakSelectors.hh"
#include "fftjet/Kernel2dFactory.hh"
#include "fftjet/GaussianNoiseMembershipFcn.hh"
#include "fftjet/EquidistantSequence.hh"
#include "fftjet/PeakEtaPhiDistance.hh"
#include "fftjet/PeakEtaDependentDistance.hh"
#include "fftjet/JetProperty.hh"
#include "fftjet/InterpolatedMembershipFcn.hh"
#include "fftjet/CompositeKernel.hh"
#include "fftjet/InterpolatedKernel.hh"
#include "fftjet/InterpolatedKernel3d.hh"
#include "fftjet/MagneticSmearingKernel.hh"

Go to the source code of this file.

Namespaces

 fftjetcms
 

Macros

#define make_param(type, varname)   const type& varname(ps.getParameter<type>(#varname))
 

Typedefs

typedef fftjet::RecombinedJet< VectorLikeRecoFFTJet
 

Functions

std::unique_ptr< AbsBgFunctorfftjetcms::fftjet_BgFunctor_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjet::ClusteringTreeSparsifier< fftjet::Peak, long > > fftjetcms::fftjet_ClusteringTreeSparsifier_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjet::AbsDistanceCalculator< fftjet::Peak > > fftjetcms::fftjet_DistanceCalculator_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjet::Functor1< double, double > > fftjetcms::fftjet_Function_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjet::Grid2d< Real > > fftjetcms::fftjet_Grid2d_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjet::Functor2< double, fftjet::RecombinedJet< VectorLike >, fftjet::RecombinedJet< VectorLike > > > fftjetcms::fftjet_JetDistance_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjet::Functor1< double, fftjet::RecombinedJet< VectorLike > > > fftjetcms::fftjet_JetFunctor_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjet::JetMagnitudeMapper2d< fftjet::RecombinedJet< VectorLike > > > fftjetcms::fftjet_JetMagnitudeMapper2d_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjet::LinearInterpolator1d > fftjetcms::fftjet_LinearInterpolator1d_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjet::LinearInterpolator2d > fftjetcms::fftjet_LinearInterpolator2d_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjetcms::LinInterpolatedTable1Dfftjetcms::fftjet_LinInterpolatedTable1D_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjet::ScaleSpaceKernel > fftjetcms::fftjet_MembershipFunction_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjet::Functor1< double, fftjet::Peak > > fftjetcms::fftjet_PeakFunctor_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjet::JetMagnitudeMapper2d< fftjet::Peak > > fftjetcms::fftjet_PeakMagnitudeMapper2d_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< fftjet::Functor1< bool, fftjet::Peak > > fftjetcms::fftjet_PeakSelector_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< AbsPileupCalculatorfftjetcms::fftjet_PileupCalculator_parser (const edm::ParameterSet &ps)
 
std::unique_ptr< std::vector< double > > fftjetcms::fftjet_ScaleSet_parser (const edm::ParameterSet &ps)
 
static bool parse_jet_member_function (const char *fname, fftjet::JetProperty< RecoFFTJet >::JetMemberFunction *f)
 
static bool parse_peak_member_function (const char *fname, fftjet::JetProperty< fftjet::Peak >::JetMemberFunction *f)
 

Macro Definition Documentation

◆ make_param

#define make_param (   type,
  varname 
)    const type& varname(ps.getParameter<type>(#varname))

Definition at line 31 of file FFTJetParameterParser.cc.

Typedef Documentation

◆ RecoFFTJet

typedef fftjet::RecombinedJet<VectorLike> RecoFFTJet

Definition at line 35 of file FFTJetParameterParser.cc.

Function Documentation

◆ parse_jet_member_function()

static bool parse_jet_member_function ( const char *  fname,
fftjet::JetProperty< RecoFFTJet >::JetMemberFunction *  f 
)
static

Definition at line 78 of file FFTJetParameterParser.cc.

78  {
79  if (strcmp(fname, "peakEta") == 0)
80  *f = &RecoFFTJet::peakEta;
81  else if (strcmp(fname, "peakPhi") == 0)
82  *f = &RecoFFTJet::peakPhi;
83  else if (strcmp(fname, "peakMagnitude") == 0)
84  *f = &RecoFFTJet::peakMagnitude;
85  else if (strcmp(fname, "magnitude") == 0)
86  *f = &RecoFFTJet::magnitude;
87  else if (strcmp(fname, "driftSpeed") == 0)
88  *f = &RecoFFTJet::driftSpeed;
89  else if (strcmp(fname, "magSpeed") == 0)
90  *f = &RecoFFTJet::magSpeed;
91  else if (strcmp(fname, "lifetime") == 0)
92  *f = &RecoFFTJet::lifetime;
93  else if (strcmp(fname, "mergeTime") == 0)
94  *f = &RecoFFTJet::mergeTime;
95  else if (strcmp(fname, "splitTime") == 0)
96  *f = &RecoFFTJet::splitTime;
97  else if (strcmp(fname, "scale") == 0)
98  *f = &RecoFFTJet::scale;
99  else if (strcmp(fname, "nearestNeighborDistance") == 0)
100  *f = &RecoFFTJet::nearestNeighborDistance;
101  else if (strcmp(fname, "membershipFactor") == 0)
102  *f = &RecoFFTJet::membershipFactor;
103  else if (strcmp(fname, "recoScale") == 0)
104  *f = &RecoFFTJet::recoScale;
105  else if (strcmp(fname, "recoScaleRatio") == 0)
106  *f = &RecoFFTJet::recoScaleRatio;
107  else if (strcmp(fname, "laplacian") == 0)
108  *f = &RecoFFTJet::laplacian;
109  else if (strcmp(fname, "hessianDeterminant") == 0)
110  *f = &RecoFFTJet::hessianDeterminant;
111  else if (strcmp(fname, "clusterRadius") == 0)
112  *f = &RecoFFTJet::clusterRadius;
113  else if (strcmp(fname, "clusterSeparation") == 0)
114  *f = &RecoFFTJet::clusterSeparation;
115  else {
116  return false;
117  }
118  return true;
119 }

References f, alignmentValidation::fname, and Scenarios_cff::scale.

Referenced by fftjetcms::fftjet_JetFunctor_parser().

◆ parse_peak_member_function()

static bool parse_peak_member_function ( const char *  fname,
fftjet::JetProperty< fftjet::Peak >::JetMemberFunction *  f 
)
static

Definition at line 37 of file FFTJetParameterParser.cc.

37  {
38  if (strcmp(fname, "eta") == 0)
39  *f = &fftjet::Peak::eta;
40  else if (strcmp(fname, "phi") == 0)
41  *f = &fftjet::Peak::phi;
42  else if (strcmp(fname, "magnitude") == 0)
43  *f = &fftjet::Peak::magnitude;
44  else if (strcmp(fname, "driftSpeed") == 0)
45  *f = &fftjet::Peak::driftSpeed;
46  else if (strcmp(fname, "magSpeed") == 0)
47  *f = &fftjet::Peak::magSpeed;
48  else if (strcmp(fname, "lifetime") == 0)
49  *f = &fftjet::Peak::lifetime;
50  else if (strcmp(fname, "mergeTime") == 0)
51  *f = &fftjet::Peak::mergeTime;
52  else if (strcmp(fname, "splitTime") == 0)
53  *f = &fftjet::Peak::splitTime;
54  else if (strcmp(fname, "scale") == 0)
56  else if (strcmp(fname, "nearestNeighborDistance") == 0)
57  *f = &fftjet::Peak::nearestNeighborDistance;
58  else if (strcmp(fname, "membershipFactor") == 0)
59  *f = &fftjet::Peak::membershipFactor;
60  else if (strcmp(fname, "recoScale") == 0)
61  *f = &fftjet::Peak::recoScale;
62  else if (strcmp(fname, "recoScaleRatio") == 0)
63  *f = &fftjet::Peak::recoScaleRatio;
64  else if (strcmp(fname, "laplacian") == 0)
65  *f = &fftjet::Peak::laplacian;
66  else if (strcmp(fname, "hessianDeterminant") == 0)
67  *f = &fftjet::Peak::hessianDeterminant;
68  else if (strcmp(fname, "clusterRadius") == 0)
69  *f = &fftjet::Peak::clusterRadius;
70  else if (strcmp(fname, "clusterSeparation") == 0)
71  *f = &fftjet::Peak::clusterSeparation;
72  else {
73  return false;
74  }
75  return true;
76 }

References PVValHelper::eta, f, alignmentValidation::fname, PVValHelper::phi, and Scenarios_cff::scale.

Referenced by fftjetcms::fftjet_PeakFunctor_parser().

f
double f[11][100]
Definition: MuScleFitUtils.cc:78
PVValHelper::eta
Definition: PVValidationHelpers.h:69
Scenarios_cff.scale
scale
Definition: Scenarios_cff.py:2186
PVValHelper::phi
Definition: PVValidationHelpers.h:68
alignmentValidation.fname
string fname
main script
Definition: alignmentValidation.py:959