CMS 3D CMS Logo

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

Typedefs

typedef fftjet::RecombinedJet
< VectorLike
RecoFFTJet
 

Functions

std::auto_ptr< AbsBgFunctorfftjetcms::fftjet_BgFunctor_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< fftjet::ClusteringTreeSparsifier
< fftjet::Peak, long > > 
fftjetcms::fftjet_ClusteringTreeSparsifier_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< fftjet::AbsDistanceCalculator
< fftjet::Peak > > 
fftjetcms::fftjet_DistanceCalculator_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< fftjet::Functor1< double,
double > > 
fftjetcms::fftjet_Function_parser (const edm::ParameterSet &ps)
 
std::auto_ptr< fftjet::Grid2d
< Real > > 
fftjetcms::fftjet_Grid2d_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< fftjet::Functor2< double,
fftjet::RecombinedJet
< VectorLike >
, fftjet::RecombinedJet
< VectorLike > > > 
fftjetcms::fftjet_JetDistance_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< fftjet::Functor1< double,
fftjet::RecombinedJet
< VectorLike > > > 
fftjetcms::fftjet_JetFunctor_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< fftjet::JetMagnitudeMapper2d
< fftjet::RecombinedJet
< VectorLike > > > 
fftjetcms::fftjet_JetMagnitudeMapper2d_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< fftjet::LinearInterpolator1d > 
fftjetcms::fftjet_LinearInterpolator1d_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< fftjet::LinearInterpolator2d > 
fftjetcms::fftjet_LinearInterpolator2d_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< fftjetcms::LinInterpolatedTable1D
fftjetcms::fftjet_LinInterpolatedTable1D_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< fftjet::ScaleSpaceKernel > 
fftjetcms::fftjet_MembershipFunction_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< fftjet::Functor1< double,
fftjet::Peak > > 
fftjetcms::fftjet_PeakFunctor_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< fftjet::JetMagnitudeMapper2d
< fftjet::Peak > > 
fftjetcms::fftjet_PeakMagnitudeMapper2d_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< fftjet::Functor1< bool,
fftjet::Peak > > 
fftjetcms::fftjet_PeakSelector_parser (const edm::ParameterSet &ps)
 
std::auto_ptr
< AbsPileupCalculator
fftjetcms::fftjet_PileupCalculator_parser (const edm::ParameterSet &ps)
 
std::auto_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

#define make_param (   type,
  varname 
)

Typedef Documentation

typedef fftjet::RecombinedJet<VectorLike> RecoFFTJet

Definition at line 36 of file FFTJetParameterParser.cc.

Function Documentation

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

Definition at line 78 of file FFTJetParameterParser.cc.

References pileupReCalc_HLTpaths::scale.

Referenced by fftjetcms::fftjet_JetFunctor_parser().

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, "scale") == 0)
96  *f = &RecoFFTJet::scale;
97  else if (strcmp(fname, "nearestNeighborDistance") == 0)
98  *f = &RecoFFTJet::nearestNeighborDistance;
99  else if (strcmp(fname, "membershipFactor") == 0)
100  *f = &RecoFFTJet::membershipFactor;
101  else if (strcmp(fname, "recoScale") == 0)
102  *f = &RecoFFTJet::recoScale;
103  else if (strcmp(fname, "recoScaleRatio") == 0)
104  *f = &RecoFFTJet::recoScaleRatio;
105  else if (strcmp(fname, "laplacian") == 0)
106  *f = &RecoFFTJet::laplacian;
107  else if (strcmp(fname, "hessianDeterminant") == 0)
108  *f = &RecoFFTJet::hessianDeterminant;
109  else if (strcmp(fname, "clusterRadius") == 0)
110  *f = &RecoFFTJet::clusterRadius;
111  else if (strcmp(fname, "clusterSeparation") == 0)
112  *f = &RecoFFTJet::clusterSeparation;
113  else
114  {
115  return false;
116  }
117  return true;
118 }
double f[11][100]
string fname
main script
static bool parse_peak_member_function ( const char *  fname,
fftjet::JetProperty< fftjet::Peak >::JetMemberFunction *  f 
)
static

Definition at line 38 of file FFTJetParameterParser.cc.

References eta(), phi, and pileupReCalc_HLTpaths::scale.

Referenced by fftjetcms::fftjet_PeakFunctor_parser().

40 {
41  if (strcmp(fname, "eta") == 0)
42  *f = &fftjet::Peak::eta;
43  else if (strcmp(fname, "phi") == 0)
44  *f = &fftjet::Peak::phi;
45  else if (strcmp(fname, "magnitude") == 0)
46  *f = &fftjet::Peak::magnitude;
47  else if (strcmp(fname, "driftSpeed") == 0)
48  *f = &fftjet::Peak::driftSpeed;
49  else if (strcmp(fname, "magSpeed") == 0)
50  *f = &fftjet::Peak::magSpeed;
51  else if (strcmp(fname, "lifetime") == 0)
52  *f = &fftjet::Peak::lifetime;
53  else if (strcmp(fname, "scale") == 0)
55  else if (strcmp(fname, "nearestNeighborDistance") == 0)
56  *f = &fftjet::Peak::nearestNeighborDistance;
57  else if (strcmp(fname, "membershipFactor") == 0)
58  *f = &fftjet::Peak::membershipFactor;
59  else if (strcmp(fname, "recoScale") == 0)
60  *f = &fftjet::Peak::recoScale;
61  else if (strcmp(fname, "recoScaleRatio") == 0)
62  *f = &fftjet::Peak::recoScaleRatio;
63  else if (strcmp(fname, "laplacian") == 0)
64  *f = &fftjet::Peak::laplacian;
65  else if (strcmp(fname, "hessianDeterminant") == 0)
66  *f = &fftjet::Peak::hessianDeterminant;
67  else if (strcmp(fname, "clusterRadius") == 0)
68  *f = &fftjet::Peak::clusterRadius;
69  else if (strcmp(fname, "clusterSeparation") == 0)
70  *f = &fftjet::Peak::clusterSeparation;
71  else
72  {
73  return false;
74  }
75  return true;
76 }
T eta() const
double f[11][100]
string fname
main script
Definition: DDAxes.h:10