#include <LumiCorrector.h>
Public Member Functions | |
float | AfterglowFactor (int nBXs) |
float | getCoefficient (const std::string &name) const |
float | getNormForAlgo (const std::string &algo) const |
LumiCorrector () | |
void | setCoefficient (const std::string &name, float value) |
void | setNormForAlgo (const std::string &algo, float value) |
float | TotalNormET (float TotLumi_noNorm, int nBXs) |
float | TotalNormOcc1 (float TotLumi_noNorm, int nBXs) |
float | TotalNormOcc2 (float TotLumi_noNorm, int nBXs) |
~LumiCorrector () | |
Public Attributes | |
tuple | lcorr = LumiCorrector() |
Private Attributes | |
std::map< int, float > | AfterglowMap_ |
float | Alpha1_ |
float | Alpha2_ |
float | ETNorm_ |
float | Occ1Norm_ |
float | Occ2Norm_ |
float | PUNorm_ |
Definition at line 6 of file LumiCorrector.h.
LumiCorrector::LumiCorrector | ( | ) |
these are corrections including unit conversion /mb to /ub if unit is already /ub, use e-03
Definition at line 6 of file LumiCorrector.cc.
References AfterglowMap_, Alpha1_, Alpha2_, ETNorm_, Occ1Norm_, Occ2Norm_, and PUNorm_.
{ Occ1Norm_=7.13e3; // For 2.76TeV 1.34e3, for HI 2.214e6 Occ2Norm_=7.97e3; ETNorm_=1.59e3; PUNorm_=6.37e3; Alpha1_=0.063; Alpha2_=-0.0037; // map doesn't provide any initialization -> do brute force // For HI Afterglow=1. AfterglowMap_[213]=0.992; AfterglowMap_[321]=0.990; AfterglowMap_[423]=0.988; AfterglowMap_[597]=0.985; AfterglowMap_[700]=0.984; AfterglowMap_[873]=0.981; AfterglowMap_[1041]=0.979; AfterglowMap_[1179]=0.977; AfterglowMap_[1317]=0.975; }
LumiCorrector::~LumiCorrector | ( | ) | [inline] |
Definition at line 10 of file LumiCorrector.h.
{}
float LumiCorrector::AfterglowFactor | ( | int | nBXs | ) |
Definition at line 52 of file LumiCorrector.cc.
References AfterglowMap_.
Referenced by TotalNormOcc1().
{ float Afterglow = 1.; for(std::map<int,float>::iterator it = AfterglowMap_.begin(); it != AfterglowMap_.end(); ++it){ if (nBXs >= it->first){ Afterglow = it->second; } } return Afterglow; }
float LumiCorrector::getCoefficient | ( | const std::string & | name | ) | const |
float LumiCorrector::getNormForAlgo | ( | const std::string & | algo | ) | const |
void LumiCorrector::setCoefficient | ( | const std::string & | name, |
float | value | ||
) |
void LumiCorrector::setNormForAlgo | ( | const std::string & | algo, |
float | value | ||
) |
Definition at line 26 of file LumiCorrector.cc.
References ETNorm_, Occ1Norm_, Occ2Norm_, PUNorm_, and relativeConstraints::value.
float LumiCorrector::TotalNormET | ( | float | TotLumi_noNorm, |
int | nBXs | ||
) |
float LumiCorrector::TotalNormOcc1 | ( | float | TotLumi_noNorm, |
int | nBXs | ||
) |
Definition at line 63 of file LumiCorrector.cc.
References AfterglowFactor(), Alpha1_, Alpha2_, Occ1Norm_, and PUNorm_.
float LumiCorrector::TotalNormOcc2 | ( | float | TotLumi_noNorm, |
int | nBXs | ||
) |
std::map<int,float> LumiCorrector::AfterglowMap_ [private] |
Definition at line 26 of file LumiCorrector.h.
Referenced by AfterglowFactor(), and LumiCorrector().
float LumiCorrector::Alpha1_ [private] |
Definition at line 24 of file LumiCorrector.h.
Referenced by getCoefficient(), LumiCorrector(), setCoefficient(), and TotalNormOcc1().
float LumiCorrector::Alpha2_ [private] |
Definition at line 25 of file LumiCorrector.h.
Referenced by getCoefficient(), LumiCorrector(), setCoefficient(), and TotalNormOcc1().
float LumiCorrector::ETNorm_ [private] |
Definition at line 22 of file LumiCorrector.h.
Referenced by getNormForAlgo(), LumiCorrector(), setNormForAlgo(), and TotalNormET().
tuple LumiCorrector::lcorr = LumiCorrector() |
Definition at line 94 of file LumiCorrector.py.
float LumiCorrector::Occ1Norm_ [private] |
Definition at line 20 of file LumiCorrector.h.
Referenced by getNormForAlgo(), LumiCorrector(), setNormForAlgo(), and TotalNormOcc1().
float LumiCorrector::Occ2Norm_ [private] |
Definition at line 21 of file LumiCorrector.h.
Referenced by getNormForAlgo(), LumiCorrector(), setNormForAlgo(), and TotalNormOcc2().
float LumiCorrector::PUNorm_ [private] |
Definition at line 23 of file LumiCorrector.h.
Referenced by getNormForAlgo(), LumiCorrector(), setNormForAlgo(), and TotalNormOcc1().