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 "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::LinearInterpolator1d > 
fftjetcms::fftjet_LinearInterpolator1d_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::Functor1< bool,
fftjet::Peak > > 
fftjetcms::fftjet_PeakSelector_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 33 of file FFTJetParameterParser.cc.

Function Documentation

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

Definition at line 75 of file FFTJetParameterParser.cc.

Referenced by fftjetcms::fftjet_JetFunctor_parser().

77 {
78  if (strcmp(fname, "peakEta") == 0)
79  *f = &RecoFFTJet::peakEta;
80  else if (strcmp(fname, "peakPhi") == 0)
81  *f = &RecoFFTJet::peakPhi;
82  else if (strcmp(fname, "peakMagnitude") == 0)
83  *f = &RecoFFTJet::peakMagnitude;
84  else if (strcmp(fname, "magnitude") == 0)
85  *f = &RecoFFTJet::magnitude;
86  else if (strcmp(fname, "driftSpeed") == 0)
87  *f = &RecoFFTJet::driftSpeed;
88  else if (strcmp(fname, "magSpeed") == 0)
89  *f = &RecoFFTJet::magSpeed;
90  else if (strcmp(fname, "lifetime") == 0)
91  *f = &RecoFFTJet::lifetime;
92  else if (strcmp(fname, "scale") == 0)
93  *f = &RecoFFTJet::scale;
94  else if (strcmp(fname, "nearestNeighborDistance") == 0)
95  *f = &RecoFFTJet::nearestNeighborDistance;
96  else if (strcmp(fname, "membershipFactor") == 0)
97  *f = &RecoFFTJet::membershipFactor;
98  else if (strcmp(fname, "recoScale") == 0)
99  *f = &RecoFFTJet::recoScale;
100  else if (strcmp(fname, "recoScaleRatio") == 0)
101  *f = &RecoFFTJet::recoScaleRatio;
102  else if (strcmp(fname, "laplacian") == 0)
103  *f = &RecoFFTJet::laplacian;
104  else if (strcmp(fname, "hessianDeterminant") == 0)
105  *f = &RecoFFTJet::hessianDeterminant;
106  else if (strcmp(fname, "clusterRadius") == 0)
107  *f = &RecoFFTJet::clusterRadius;
108  else if (strcmp(fname, "clusterSeparation") == 0)
109  *f = &RecoFFTJet::clusterSeparation;
110  else
111  {
112  return false;
113  }
114  return true;
115 }
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 35 of file FFTJetParameterParser.cc.

References eta(), and phi.

Referenced by fftjetcms::fftjet_PeakFunctor_parser().

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, "scale") == 0)
51  *f = &fftjet::Peak::scale;
52  else if (strcmp(fname, "nearestNeighborDistance") == 0)
53  *f = &fftjet::Peak::nearestNeighborDistance;
54  else if (strcmp(fname, "membershipFactor") == 0)
55  *f = &fftjet::Peak::membershipFactor;
56  else if (strcmp(fname, "recoScale") == 0)
57  *f = &fftjet::Peak::recoScale;
58  else if (strcmp(fname, "recoScaleRatio") == 0)
59  *f = &fftjet::Peak::recoScaleRatio;
60  else if (strcmp(fname, "laplacian") == 0)
61  *f = &fftjet::Peak::laplacian;
62  else if (strcmp(fname, "hessianDeterminant") == 0)
63  *f = &fftjet::Peak::hessianDeterminant;
64  else if (strcmp(fname, "clusterRadius") == 0)
65  *f = &fftjet::Peak::clusterRadius;
66  else if (strcmp(fname, "clusterSeparation") == 0)
67  *f = &fftjet::Peak::clusterSeparation;
68  else
69  {
70  return false;
71  }
72  return true;
73 }
T eta() const
double f[11][100]
string fname
main script
Definition: DDAxes.h:10