CMS 3D CMS Logo

Namespaces | Defines | Typedefs | Functions

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/RecoJets/FFTJetProducers/src/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

namespace  fftjetcms

Defines

#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)

Define Documentation

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

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

Referenced by fftjetcms::fftjet_JetFunctor_parser().

{
    if (strcmp(fname, "peakEta") == 0)
        *f = &RecoFFTJet::peakEta;
    else if (strcmp(fname, "peakPhi") == 0)
        *f = &RecoFFTJet::peakPhi;
    else if (strcmp(fname, "peakMagnitude") == 0)
        *f = &RecoFFTJet::peakMagnitude;
    else if (strcmp(fname, "magnitude") == 0)
        *f = &RecoFFTJet::magnitude;
    else if (strcmp(fname, "driftSpeed") == 0)
        *f = &RecoFFTJet::driftSpeed;
    else if (strcmp(fname, "magSpeed") == 0)
        *f = &RecoFFTJet::magSpeed;
    else if (strcmp(fname, "lifetime") == 0)
        *f = &RecoFFTJet::lifetime;
    else if (strcmp(fname, "scale") == 0)
        *f = &RecoFFTJet::scale;
    else if (strcmp(fname, "nearestNeighborDistance") == 0)
        *f = &RecoFFTJet::nearestNeighborDistance;
    else if (strcmp(fname, "membershipFactor") == 0)
        *f = &RecoFFTJet::membershipFactor;
    else if (strcmp(fname, "recoScale") == 0)
        *f = &RecoFFTJet::recoScale;
    else if (strcmp(fname, "recoScaleRatio") == 0)
        *f = &RecoFFTJet::recoScaleRatio;
    else if (strcmp(fname, "laplacian") == 0)
        *f = &RecoFFTJet::laplacian;
    else if (strcmp(fname, "hessianDeterminant") == 0)
        *f = &RecoFFTJet::hessianDeterminant;
    else if (strcmp(fname, "clusterRadius") == 0)
        *f = &RecoFFTJet::clusterRadius;
    else if (strcmp(fname, "clusterSeparation") == 0)
        *f = &RecoFFTJet::clusterSeparation;
    else
    {
        return false;
    }
    return true;
}
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(), and phi.

Referenced by fftjetcms::fftjet_PeakFunctor_parser().

{
    if (strcmp(fname, "eta") == 0)
        *f = &fftjet::Peak::eta;
    else if (strcmp(fname, "phi") == 0)
        *f = &fftjet::Peak::phi;
    else if (strcmp(fname, "magnitude") == 0)
        *f = &fftjet::Peak::magnitude;
    else if (strcmp(fname, "driftSpeed") == 0)
        *f = &fftjet::Peak::driftSpeed;
    else if (strcmp(fname, "magSpeed") == 0)
        *f = &fftjet::Peak::magSpeed;
    else if (strcmp(fname, "lifetime") == 0)
        *f = &fftjet::Peak::lifetime;
    else if (strcmp(fname, "scale") == 0)
        *f = &fftjet::Peak::scale;
    else if (strcmp(fname, "nearestNeighborDistance") == 0)
        *f = &fftjet::Peak::nearestNeighborDistance;
    else if (strcmp(fname, "membershipFactor") == 0)
        *f = &fftjet::Peak::membershipFactor;
    else if (strcmp(fname, "recoScale") == 0)
        *f = &fftjet::Peak::recoScale;
    else if (strcmp(fname, "recoScaleRatio") == 0)
        *f = &fftjet::Peak::recoScaleRatio;
    else if (strcmp(fname, "laplacian") == 0)
        *f = &fftjet::Peak::laplacian;
    else if (strcmp(fname, "hessianDeterminant") == 0)
        *f = &fftjet::Peak::hessianDeterminant;
    else if (strcmp(fname, "clusterRadius") == 0)
        *f = &fftjet::Peak::clusterRadius;
    else if (strcmp(fname, "clusterSeparation") == 0)
        *f = &fftjet::Peak::clusterSeparation;
    else
    {
        return false;
    }
    return true;
}