CMS 3D CMS Logo

Namespaces | Macros | Typedefs | Functions
FFTJetParameterParser.cc File Reference
#include <cstdlib>
#include <cstring>
#include <memory>
#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 33 of file FFTJetParameterParser.cc.

Typedef Documentation

◆ RecoFFTJet

typedef fftjet::RecombinedJet<VectorLike> RecoFFTJet

Definition at line 37 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 80 of file FFTJetParameterParser.cc.

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

References f, alignmentValidation::fname, and L1EGammaCrystalsEmulatorProducer_cfi::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 39 of file FFTJetParameterParser.cc.

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

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

Referenced by fftjetcms::fftjet_PeakFunctor_parser().

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