#include <src/CondFormats/interface/EcalGlobalShowerContainmentCorrectionsVsEta.h>
Classes | |
struct | Coefficients |
Structure defining the container for correction coefficients. More... | |
Public Member Functions | |
const double | correction3x3 (const DetId &xtal) const |
The correction factor for 3x3 matrix. More... | |
const double | correction5x5 (const DetId &xtal) const |
The correction factor for 5x5 matrix. More... | |
const Coefficients | correctionCoefficients () const |
Get the correction coefficients for the given xtal. More... | |
void | fillCorrectionCoefficients (const Coefficients &coefficients) |
Fill the correction coefficients. More... | |
Private Types | |
enum | Type { e3x3, e5x5 } |
Private Member Functions | |
const double | correction (const DetId &xtal, Type type) const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
Coefficients | coefficients_ |
Holds the coeffiecients. The index corresponds to the group. More... | |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Description: Holds the coefficients of a polynomial that describes variation of the global containment effect as afunction of eta
Usage example(for real code see CalibCalorimetry/EcalCorrectionModules/test) :
Definition at line 36 of file EcalGlobalShowerContainmentCorrectionsVsEta.h.
|
private |
Enumerator | |
---|---|
e3x3 | |
e5x5 |
Definition at line 92 of file EcalGlobalShowerContainmentCorrectionsVsEta.h.
|
private |
Calculate the correction for the given direction and type
Definition at line 21 of file EcalGlobalShowerContainmentCorrectionsVsEta.cc.
References coefficients_, corr, EcalGlobalShowerContainmentCorrectionsVsEta::Coefficients::data, DetId::det(), e5x5, DetId::Ecal, EcalBarrel, EcalEndcap, EBDetId::ieta(), EcalGlobalShowerContainmentCorrectionsVsEta::Coefficients::kCoefficients, hltrates_dqm_sourceclient-live_cfg::offset, funct::pow(), and DetId::subdetId().
Referenced by correction3x3(), and correction5x5().
const double EcalGlobalShowerContainmentCorrectionsVsEta::correction3x3 | ( | const DetId & | xtal | ) | const |
The correction factor for 3x3 matrix.
pos | is the distance in cm from the center of the xtal as calculated in RecoEcal/EgammaCoreTools/interface/PositionCalc.h The valid return value is in the range (0,1] (divide by this value to apply the correction) Returns -1 if correction is not avaiable for that xtal |
Definition at line 43 of file EcalGlobalShowerContainmentCorrectionsVsEta.cc.
References corr, correction(), and e3x3.
const double EcalGlobalShowerContainmentCorrectionsVsEta::correction5x5 | ( | const DetId & | xtal | ) | const |
The correction factor for 5x5 matrix.
pos | is the distance in cm from the center of the xtal as calculated in RecoEcal/EgammaCoreTools/interface/PositionCalc.h The return value is in the range (0,1] (divide by this value to apply the correction) Returns -1 if correction is not avaiable for that xtal |
Definition at line 48 of file EcalGlobalShowerContainmentCorrectionsVsEta.cc.
References corr, correction(), and e5x5.
const EcalGlobalShowerContainmentCorrectionsVsEta::Coefficients EcalGlobalShowerContainmentCorrectionsVsEta::correctionCoefficients | ( | ) | const |
Get the correction coefficients for the given xtal.
Definition at line 12 of file EcalGlobalShowerContainmentCorrectionsVsEta.cc.
References coefficients_.
void EcalGlobalShowerContainmentCorrectionsVsEta::fillCorrectionCoefficients | ( | const Coefficients & | coefficients | ) |
Fill the correction coefficients.
Definition at line 16 of file EcalGlobalShowerContainmentCorrectionsVsEta.cc.
References coefficients_.
|
private |
|
friend |
Definition at line 100 of file EcalGlobalShowerContainmentCorrectionsVsEta.h.
|
friend |
Definition at line 100 of file EcalGlobalShowerContainmentCorrectionsVsEta.h.
|
private |
Holds the coeffiecients. The index corresponds to the group.
Definition at line 98 of file EcalGlobalShowerContainmentCorrectionsVsEta.h.
Referenced by correction(), correctionCoefficients(), and fillCorrectionCoefficients().