CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Private Attributes
HFRecalibration Class Reference

#include <HFRecalibration.h>

Public Member Functions

double getCorr (int ieta, int idepth, double lumi)
 
 HFRecalibration (const edm::ParameterSet &pset)
 
 ~HFRecalibration ()
 

Static Public Attributes

static const unsigned int loweriEtaBin = 30
 
static const unsigned int upperiEtaBin = 41
 

Private Attributes

std::vector< double > HFParsAB [2][2]
 
double reCalFactor = 1.0
 

Detailed Description

Definition at line 19 of file HFRecalibration.h.

Constructor & Destructor Documentation

◆ HFRecalibration()

HFRecalibration::HFRecalibration ( const edm::ParameterSet pset)

Definition at line 16 of file HFRecalibration.cc.

16  {
17  //HFParsAB[Depth=0/1][A=0/B=1]
18  HFParsAB[0][0] = pset.getParameter<vecOfDoubles>("HFdepthOneParameterA");
19  HFParsAB[0][1] = pset.getParameter<vecOfDoubles>("HFdepthOneParameterB");
20  HFParsAB[1][0] = pset.getParameter<vecOfDoubles>("HFdepthTwoParameterA");
21  HFParsAB[1][1] = pset.getParameter<vecOfDoubles>("HFdepthTwoParameterB");
22 }

References muonDTDigis_cfi::pset.

◆ ~HFRecalibration()

HFRecalibration::~HFRecalibration ( )

Definition at line 24 of file HFRecalibration.cc.

24 {}

Member Function Documentation

◆ getCorr()

double HFRecalibration::getCorr ( int  ieta,
int  idepth,
double  lumi 
)

Definition at line 26 of file HFRecalibration.cc.

26  {
27  // parameterizations provided by James Wetzel
28 
29  ieta = (abs(ieta) - loweriEtaBin);
30 
31  if (ieta < 0 || ieta > 11 || depth < 1 || depth > 2) {
32  return 1.0;
33  }
34 
35  switch (depth) {
36  case 1:
37  reCalFactor = (1 + HFParsAB[0][0][ieta] * sqrt(lumi) + HFParsAB[0][1][ieta] * lumi);
38  break;
39  case 2:
40  reCalFactor = (1 + HFParsAB[1][0][ieta] * sqrt(lumi) + HFParsAB[1][1][ieta] * lumi);
41  }
42 
43  return reCalFactor;
44 }

References funct::abs(), LEDCalibrationChannels::depth, LEDCalibrationChannels::ieta, BXlumiParameters_cfi::lumi, and mathSSE::sqrt().

Member Data Documentation

◆ HFParsAB

std::vector<double> HFRecalibration::HFParsAB[2][2]
private

Definition at line 31 of file HFRecalibration.h.

◆ loweriEtaBin

const unsigned int HFRecalibration::loweriEtaBin = 30
static

Definition at line 26 of file HFRecalibration.h.

◆ reCalFactor

double HFRecalibration::reCalFactor = 1.0
private

Definition at line 32 of file HFRecalibration.h.

◆ upperiEtaBin

const unsigned int HFRecalibration::upperiEtaBin = 41
static

Definition at line 27 of file HFRecalibration.h.

HFRecalibration::loweriEtaBin
static const unsigned int loweriEtaBin
Definition: HFRecalibration.h:26
BXlumiParameters_cfi.lumi
lumi
Definition: BXlumiParameters_cfi.py:6
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
HFRecalibration::reCalFactor
double reCalFactor
Definition: HFRecalibration.h:32
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
HFRecalibration::HFParsAB
std::vector< double > HFParsAB[2][2]
Definition: HFRecalibration.h:31
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
lumi
Definition: LumiSectionData.h:20
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
vecOfDoubles
std::vector< double > vecOfDoubles
Definition: HFRecalibration.h:13