Classes | Public Types | Public Member Functions

EnergyRescaler Class Reference

#include <EnergyRescaler.hh>

List of all members.

Classes

struct  calibMap

Public Types

enum  CorrType { NOMINAL = 0, ERR_DOWN = 1, ERR_UP = 2 }

Public Member Functions

 EnergyRescaler ()
 default constructor
 ~EnergyRescaler ()
bool readCalibConstants (std::string fname)
double applyEnergyCorrection (double cl_eta, double cl_phi, double uncorr_energy, double et, int value=NOMINAL, std::string part_type="ELECTRON")
bool useDefaultCalibConstants (std::string corr_version="2011")
void SetRandomSeed (unsigned seed=0)
 set random seed to some fix value(would need for MC comparison )
double getSmearingCorrection (double eta, double energy, int value=NOMINAL, bool mc_withCT=true, std::string corr_version="2011")
bool printMap ()
void getError (double cl_eta, double cl_et, double &er_up, double &er_do, std::string part_type="ELECTRON", bool withXMAT=true, bool withPS=true)

Detailed Description

Definition at line 23 of file EnergyRescaler.hh.


Member Enumeration Documentation

Enumerator:
NOMINAL 
ERR_DOWN 
ERR_UP 

Definition at line 40 of file EnergyRescaler.hh.


Constructor & Destructor Documentation

EnergyRescaler::EnergyRescaler (  )

default constructor

Definition at line 19 of file EnergyRescaler.cxx.

EnergyRescaler::~EnergyRescaler (  )

Definition at line 29 of file EnergyRescaler.cxx.


Member Function Documentation

double EnergyRescaler::applyEnergyCorrection ( double  cl_eta,
double  cl_phi,
double  uncorr_energy,
double  et,
int  value = NOMINAL,
std::string  part_type = "ELECTRON" 
)

Definition at line 97 of file EnergyRescaler.cxx.

void EnergyRescaler::getError ( double  cl_eta,
double  cl_et,
double &  er_up,
double &  er_do,
std::string  part_type = "ELECTRON",
bool  withXMAT = true,
bool  withPS = true 
)

Definition at line 296 of file EnergyRescaler.cxx.

double EnergyRescaler::getSmearingCorrection ( double  eta,
double  energy,
int  value = NOMINAL,
bool  mc_withCT = true,
std::string  corr_version = "2011" 
)

Definition at line 176 of file EnergyRescaler.cxx.

bool EnergyRescaler::printMap (  )

Definition at line 703 of file EnergyRescaler.cxx.

bool EnergyRescaler::readCalibConstants ( std::string  fname )

Definition at line 42 of file EnergyRescaler.cxx.

void EnergyRescaler::SetRandomSeed ( unsigned  seed = 0 )

set random seed to some fix value(would need for MC comparison )

Definition at line 35 of file EnergyRescaler.cxx.

bool EnergyRescaler::useDefaultCalibConstants ( std::string  corr_version = "2011" )

for 2011

Definition at line 470 of file EnergyRescaler.cxx.


The documentation for this class was generated from the following files: