CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
ElectronEnergyCalibrator Class Reference

#include <ElectronEnergyCalibrator.h>

Public Member Functions

void calibrate (SimpleElectron &electron, edm::StreamID const &)
 
void correctLinearity (SimpleElectron &electron)
 
 ElectronEnergyCalibrator (const std::string pathData, const std::string pathLinData, const std::string dataset, int correctionsType, bool applyLinearityCorrection, double lumiRatio, bool isMC, bool updateEnergyErrors, bool verbose, bool synchronization)
 

Private Member Functions

void init ()
 
void splitString (const std::string &fullstr, std::vector< std::string > &elements, const std::string &delimiter)
 
double stringToDouble (const std::string &str)
 

Private Attributes

bool applyLinearityCorrection_
 
int correctionsType_
 
correctionValues corrValArray [100]
 
correctionValues corrValMC
 
std::string dataset_
 
bool isMC_
 
linearityCorrectionValues linCorrValArray [100]
 
double lumiRatio_
 
int nCorrValRaw
 
double newEnergy_
 
double newEnergyError_
 
int nLinCorrValRaw
 
std::string pathData_
 
std::string pathLinData_
 
bool synchronization_
 
bool updateEnergyErrors_
 
bool verbose_
 

Detailed Description

Definition at line 41 of file ElectronEnergyCalibrator.h.

Constructor & Destructor Documentation

ElectronEnergyCalibrator::ElectronEnergyCalibrator ( const std::string  pathData,
const std::string  pathLinData,
const std::string  dataset,
int  correctionsType,
bool  applyLinearityCorrection,
double  lumiRatio,
bool  isMC,
bool  updateEnergyErrors,
bool  verbose,
bool  synchronization 
)
inline

Definition at line 44 of file ElectronEnergyCalibrator.h.

References init().

54  :
55  pathData_(pathData),
56  pathLinData_(pathLinData),
57  dataset_(dataset),
58  correctionsType_(correctionsType),
59  applyLinearityCorrection_(applyLinearityCorrection),
60  lumiRatio_(lumiRatio),
61  isMC_(isMC),
62  updateEnergyErrors_(updateEnergyErrors),
63  verbose_(verbose),
64  synchronization_(synchronization) {
65  init();
66  }

Member Function Documentation

void ElectronEnergyCalibrator::calibrate ( SimpleElectron electron,
edm::StreamID const &  streamID 
)

Definition at line 164 of file ElectronEnergyCalibrator.cc.

void ElectronEnergyCalibrator::correctLinearity ( SimpleElectron electron)

Definition at line 451 of file ElectronEnergyCalibrator.cc.

void ElectronEnergyCalibrator::init ( void  )
private

Definition at line 23 of file ElectronEnergyCalibrator.cc.

Referenced by ElectronEnergyCalibrator().

void ElectronEnergyCalibrator::splitString ( const std::string &  fullstr,
std::vector< std::string > &  elements,
const std::string &  delimiter 
)
private

Definition at line 142 of file ElectronEnergyCalibrator.cc.

double ElectronEnergyCalibrator::stringToDouble ( const std::string &  str)
private

Definition at line 155 of file ElectronEnergyCalibrator.cc.

Member Data Documentation

bool ElectronEnergyCalibrator::applyLinearityCorrection_
private

Definition at line 86 of file ElectronEnergyCalibrator.h.

int ElectronEnergyCalibrator::correctionsType_
private

Definition at line 85 of file ElectronEnergyCalibrator.h.

correctionValues ElectronEnergyCalibrator::corrValArray[100]
private

Definition at line 93 of file ElectronEnergyCalibrator.h.

correctionValues ElectronEnergyCalibrator::corrValMC
private

Definition at line 94 of file ElectronEnergyCalibrator.h.

std::string ElectronEnergyCalibrator::dataset_
private

Definition at line 84 of file ElectronEnergyCalibrator.h.

bool ElectronEnergyCalibrator::isMC_
private

Definition at line 88 of file ElectronEnergyCalibrator.h.

linearityCorrectionValues ElectronEnergyCalibrator::linCorrValArray[100]
private

Definition at line 95 of file ElectronEnergyCalibrator.h.

double ElectronEnergyCalibrator::lumiRatio_
private

Definition at line 87 of file ElectronEnergyCalibrator.h.

int ElectronEnergyCalibrator::nCorrValRaw
private

Definition at line 96 of file ElectronEnergyCalibrator.h.

double ElectronEnergyCalibrator::newEnergy_
private

Definition at line 79 of file ElectronEnergyCalibrator.h.

double ElectronEnergyCalibrator::newEnergyError_
private

Definition at line 80 of file ElectronEnergyCalibrator.h.

int ElectronEnergyCalibrator::nLinCorrValRaw
private

Definition at line 96 of file ElectronEnergyCalibrator.h.

std::string ElectronEnergyCalibrator::pathData_
private

Definition at line 82 of file ElectronEnergyCalibrator.h.

std::string ElectronEnergyCalibrator::pathLinData_
private

Definition at line 83 of file ElectronEnergyCalibrator.h.

bool ElectronEnergyCalibrator::synchronization_
private

Definition at line 91 of file ElectronEnergyCalibrator.h.

bool ElectronEnergyCalibrator::updateEnergyErrors_
private

Definition at line 89 of file ElectronEnergyCalibrator.h.

bool ElectronEnergyCalibrator::verbose_
private

Definition at line 90 of file ElectronEnergyCalibrator.h.