CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
MuScleFitCorrector_Functions.h File Reference
#include <iostream>
#include <vector>
#include <cmath>
#include "TMath.h"
#include "TString.h"
#include "TF1.h"
#include "TRandom.h"

Go to the source code of this file.

Classes

struct  ParSet
 
class  resolutionFunction45< T >
 
class  resolutionFunction46< T >
 
class  resolutionFunction57< T >
 
class  resolutionFunctionBase< T >
 
class  scaleFunction50< T >
 
class  scaleFunctionBase< T >
 

Functions

resolutionFunctionBase< double * > * resolutionFunctionService (const int identifier)
 Service to build the resolution functor corresponding to the passed identifier. More...
 
scaleFunctionBase< double * > * scaleFunctionService (const int identifier)
 Service to build the scale functor corresponding to the passed identifier. More...
 

Function Documentation

resolutionFunctionBase<double * >* resolutionFunctionService ( const int  identifier)

Service to build the resolution functor corresponding to the passed identifier.

Definition at line 292 of file MuScleFitCorrector_Functions.h.

References gather_cfg::cout, and cmsRelvalreport::exit.

Referenced by ErrorsAnalyzer::fillHistograms(), ErrorsPropagationAnalyzer::fillHistograms(), MuScleFit::MuScleFit(), ResolutionFunction::readParameters(), heppy::MuScleFitCorrector::readParameters(), ResolutionAnalyzer::ResolutionAnalyzer(), and ResolutionFunction::ResolutionFunction().

292  {
293  switch ( identifier ) {
294  case ( 45 ): return ( new resolutionFunction45<double * > ); break;
295  case ( 46 ): return ( new resolutionFunction46<double * > ); break;
296  case ( 57 ): return ( new resolutionFunction57<double * > ); break;
297  default: std::cout << "resolutionFunctService error: wrong identifier = " << identifier << std::endl; exit(1);
298  }
299 }
tuple cout
Definition: gather_cfg.py:121
scaleFunctionBase<double * >* scaleFunctionService ( const int  identifier)

Service to build the scale functor corresponding to the passed identifier.

Definition at line 283 of file MuScleFitCorrector_Functions.h.

References gather_cfg::cout, and cmsRelvalreport::exit.

Referenced by MomentumScaleCorrector::MomentumScaleCorrector(), MuScleFit::MuScleFit(), MomentumScaleCorrector::readParameters(), and heppy::MuScleFitCorrector::readParameters().

283  {
284  switch ( identifier ) {
285  case ( 50 ): return ( new scaleFunction50<double * > ); break;
286  default: std::cout << "scaleFunctionService error: wrong identifier = " << identifier << std::endl; exit(1);
287  }
288 }
tuple cout
Definition: gather_cfg.py:121