![]() |
![]() |
#include <EnergyScaleCorrection.h>
Public Member Functions | |
CorrectionCategory (const std::string &category, int runnrMin=0, int runnrMax=999999) | |
CorrectionCategory (const unsigned int runnr, const float et, const float eta, const float r9, const unsigned int gainSeed) | |
CorrectionCategory (unsigned int runMin, unsigned int runMax, float etaMin, float etaMax, float r9Min, float r9Max, float etMin, float etMax, unsigned int gainSeed) | |
for the new file format More... | |
bool | inCategory (const unsigned int runnr, const float et, const float eta, const float r9, const unsigned int gainSeed) const |
bool | operator< (const CorrectionCategory &b) const |
std::ostream & | print (std::ostream &os) const |
Private Attributes | |
float | etaMax_ |
max eta value for the bin More... | |
float | etaMin_ |
min eta value for the bin More... | |
float | etMax_ |
max Et value for the bin More... | |
float | etMin_ |
min Et value for the bin More... | |
unsigned int | gain_ |
12, 6, 1, 61 (double gain switch) More... | |
float | r9Max_ |
max R9 value for the bin More... | |
float | r9Min_ |
min R9 vaule for the bin More... | |
unsigned int | runMax_ |
unsigned int | runMin_ |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CorrectionCategory &a) |
Definition at line 81 of file EnergyScaleCorrection.h.
EnergyScaleCorrection::CorrectionCategory::CorrectionCategory | ( | const std::string & | category, |
int | runnrMin = 0 , |
||
int | runnrMax = 999999 |
||
) |
Definition at line 342 of file EnergyScaleCorrection.cc.
References etaMax_, etaMin_, etMax_, etMin_, gain_, SiStripPI::max, min(), p1, p2, r9Max_, and r9Min_.
|
inline |
Definition at line 84 of file EnergyScaleCorrection.h.
References b, stringResolutionProvider_cfi::et, PVValHelper::eta, ALCARECOTkAlBeamHalo_cff::etaMax, ALCARECOTkAlBeamHalo_cff::etaMin, conversionPostprocessing_cfi::etMax, btagDijet_cfi::etMin, operator<(), electrons_cff::r9, photonValidator_cfi::r9Max, and photonValidator_cfi::r9Min.
EnergyScaleCorrection::CorrectionCategory::CorrectionCategory | ( | unsigned int | runMin, |
unsigned int | runMax, | ||
float | etaMin, | ||
float | etaMax, | ||
float | r9Min, | ||
float | r9Max, | ||
float | etMin, | ||
float | etMax, | ||
unsigned int | gainSeed | ||
) |
for the new file format
Same logic as the above constructor to avoid problems at the bin boundary of et/eta/R9 - just decrement the maxValues ever so slightly to ensure that they are different from the next bins min value
Definition at line 451 of file EnergyScaleCorrection.cc.
References etaMax_, etMax_, min(), and r9Max_.
bool EnergyScaleCorrection::CorrectionCategory::inCategory | ( | const unsigned int | runnr, |
const float | et, | ||
const float | eta, | ||
const float | r9, | ||
const unsigned int | gainSeed | ||
) | const |
Definition at line 478 of file EnergyScaleCorrection.cc.
References etaMax_, etaMin_, etMin_, gain_, r9Max_, r9Min_, and runMin_.
bool EnergyScaleCorrection::CorrectionCategory::operator< | ( | const CorrectionCategory & | b | ) | const |
Definition at line 484 of file EnergyScaleCorrection.cc.
References etaMax_, etaMin_, etMax_, etMin_, gain_, r9Max_, r9Min_, runMax_, and runMin_.
std::ostream & EnergyScaleCorrection::CorrectionCategory::print | ( | std::ostream & | os | ) | const |
Definition at line 514 of file EnergyScaleCorrection.cc.
References etaMax_, etaMin_, etMax_, etMin_, gain_, r9Max_, r9Min_, runMax_, and runMin_.
|
friend |
Definition at line 110 of file EnergyScaleCorrection.h.
|
private |
max eta value for the bin
Definition at line 118 of file EnergyScaleCorrection.h.
Referenced by CorrectionCategory(), inCategory(), operator<(), and print().
|
private |
min eta value for the bin
Definition at line 117 of file EnergyScaleCorrection.h.
Referenced by CorrectionCategory(), inCategory(), operator<(), and print().
|
private |
max Et value for the bin
Definition at line 122 of file EnergyScaleCorrection.h.
Referenced by CorrectionCategory(), operator<(), and print().
|
private |
min Et value for the bin
Definition at line 121 of file EnergyScaleCorrection.h.
Referenced by CorrectionCategory(), inCategory(), operator<(), and print().
|
private |
12, 6, 1, 61 (double gain switch)
Definition at line 123 of file EnergyScaleCorrection.h.
Referenced by CorrectionCategory(), inCategory(), operator<(), and print().
|
private |
max R9 value for the bin
Definition at line 120 of file EnergyScaleCorrection.h.
Referenced by CorrectionCategory(), inCategory(), operator<(), and print().
|
private |
min R9 vaule for the bin
Definition at line 119 of file EnergyScaleCorrection.h.
Referenced by CorrectionCategory(), inCategory(), operator<(), and print().
|
private |
Definition at line 116 of file EnergyScaleCorrection.h.
Referenced by operator<(), and print().
|
private |
Definition at line 115 of file EnergyScaleCorrection.h.
Referenced by inCategory(), operator<(), and print().