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)
 

Typedefs

typedef fftjet::RecombinedJet< VectorLikeRecoFFTJet
 

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::LinInterpolatedTable1Dfftjetcms::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< AbsPileupCalculatorfftjetcms::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 
)
Value:
const \
type & varname (ps.getParameter< type >( #varname ))
type
Definition: HCALResponse.h:21

Definition at line 31 of file FFTJetParameterParser.cc.

Referenced by fftjetcms::fftjet_JetDistance_parser(), fftjetcms::fftjet_MembershipFunction_parser(), and fftjetcms::fftjet_PeakSelector_parser().

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 82 of file FFTJetParameterParser.cc.

References Scenarios_cff::scale.

Referenced by fftjetcms::fftjet_JetFunctor_parser().

84 {
85  if (strcmp(fname, "peakEta") == 0)
86  *f = &RecoFFTJet::peakEta;
87  else if (strcmp(fname, "peakPhi") == 0)
88  *f = &RecoFFTJet::peakPhi;
89  else if (strcmp(fname, "peakMagnitude") == 0)
90  *f = &RecoFFTJet::peakMagnitude;
91  else if (strcmp(fname, "magnitude") == 0)
92  *f = &RecoFFTJet::magnitude;
93  else if (strcmp(fname, "driftSpeed") == 0)
94  *f = &RecoFFTJet::driftSpeed;
95  else if (strcmp(fname, "magSpeed") == 0)
96  *f = &RecoFFTJet::magSpeed;
97  else if (strcmp(fname, "lifetime") == 0)
98  *f = &RecoFFTJet::lifetime;
99  else if (strcmp(fname, "mergeTime") == 0)
100  *f = &RecoFFTJet::mergeTime;
101  else if (strcmp(fname, "splitTime") == 0)
102  *f = &RecoFFTJet::splitTime;
103  else if (strcmp(fname, "scale") == 0)
104  *f = &RecoFFTJet::scale;
105  else if (strcmp(fname, "nearestNeighborDistance") == 0)
106  *f = &RecoFFTJet::nearestNeighborDistance;
107  else if (strcmp(fname, "membershipFactor") == 0)
108  *f = &RecoFFTJet::membershipFactor;
109  else if (strcmp(fname, "recoScale") == 0)
110  *f = &RecoFFTJet::recoScale;
111  else if (strcmp(fname, "recoScaleRatio") == 0)
112  *f = &RecoFFTJet::recoScaleRatio;
113  else if (strcmp(fname, "laplacian") == 0)
114  *f = &RecoFFTJet::laplacian;
115  else if (strcmp(fname, "hessianDeterminant") == 0)
116  *f = &RecoFFTJet::hessianDeterminant;
117  else if (strcmp(fname, "clusterRadius") == 0)
118  *f = &RecoFFTJet::clusterRadius;
119  else if (strcmp(fname, "clusterSeparation") == 0)
120  *f = &RecoFFTJet::clusterSeparation;
121  else
122  {
123  return false;
124  }
125  return true;
126 }
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 stringResolutionProvider_cfi::eta, stringResolutionProvider_cfi::phi, and Scenarios_cff::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, "mergeTime") == 0)
54  *f = &fftjet::Peak::mergeTime;
55  else if (strcmp(fname, "splitTime") == 0)
56  *f = &fftjet::Peak::splitTime;
57  else if (strcmp(fname, "scale") == 0)
59  else if (strcmp(fname, "nearestNeighborDistance") == 0)
60  *f = &fftjet::Peak::nearestNeighborDistance;
61  else if (strcmp(fname, "membershipFactor") == 0)
62  *f = &fftjet::Peak::membershipFactor;
63  else if (strcmp(fname, "recoScale") == 0)
64  *f = &fftjet::Peak::recoScale;
65  else if (strcmp(fname, "recoScaleRatio") == 0)
66  *f = &fftjet::Peak::recoScaleRatio;
67  else if (strcmp(fname, "laplacian") == 0)
68  *f = &fftjet::Peak::laplacian;
69  else if (strcmp(fname, "hessianDeterminant") == 0)
70  *f = &fftjet::Peak::hessianDeterminant;
71  else if (strcmp(fname, "clusterRadius") == 0)
72  *f = &fftjet::Peak::clusterRadius;
73  else if (strcmp(fname, "clusterSeparation") == 0)
74  *f = &fftjet::Peak::clusterSeparation;
75  else
76  {
77  return false;
78  }
79  return true;
80 }
double f[11][100]
string fname
main script