CMS 3D CMS Logo

Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/JetMETCorrections/FFTJetObjects/src/AbsFFTSpecificScaleCalculator.cc File Reference

#include "JetMETCorrections/FFTJetObjects/interface/AbsFFTSpecificScaleCalculator.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "JetMETCorrections/FFTJetObjects/interface/FFTGenericScaleCalculator.h"
#include "JetMETCorrections/FFTJetObjects/interface/L2AbsScaleCalculator.h"
#include "JetMETCorrections/FFTJetObjects/interface/L2ResScaleCalculator.h"

Go to the source code of this file.

Functions

AbsFFTSpecificScaleCalculatorparseFFTSpecificScaleCalculator (const edm::ParameterSet &ps, const std::string &tableDescription)

Function Documentation

AbsFFTSpecificScaleCalculator* parseFFTSpecificScaleCalculator ( const edm::ParameterSet ps,
const std::string &  tableDescription 
)

Definition at line 20 of file AbsFFTSpecificScaleCalculator.cc.

References edm::ParameterSet::getParameter(), StaticFFTJetObjectFactory< Factory >::instance(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by parseFFTJetScaleCalculator().

{
    std::string mapper_type(ps.getParameter<std::string>("Class"));
    if (!mapper_type.compare("auto"))
        mapper_type = tableDescription;

    return StaticFFTSpecificScaleCalculatorFactory::instance().create(
        mapper_type, ps);
}