#include <CondFormats/L1TObjects/interface/L1CaloEtScale.h>
Public Member Functions | |
double | et (const uint16_t rank) const |
convert from rank to physically meaningful quantity More... | |
const std::vector< double > & | getThresholds () const |
get thresholds More... | |
L1CaloEtScale () | |
default constructor, for testing (out = in) More... | |
L1CaloEtScale (const double linearLsbInGeV, const std::vector< double > &thresholdsInGeV) | |
L1CaloEtScale (const unsigned linScaleMax, const unsigned rankScaleMax, const double linearLsbInGeV, const std::vector< double > &thresholdsInGeV) | |
general case ctor that sets scale max values More... | |
double | linearLsb () const |
get LSB of linear input scale More... | |
unsigned | linScaleMax () const |
void | print (std::ostream &s) const |
uint16_t | rank (const double EtInGeV) const |
convert from physical Et in GeV to rank scale More... | |
uint16_t | rank (const uint16_t linear) const |
convert from linear Et scale to rank scale More... | |
unsigned | rankScaleMax () const |
~L1CaloEtScale () | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
double | m_linearLsb |
LSB of linear scale in GeV. More... | |
uint16_t | m_linScaleMax |
linear scale maximum More... | |
uint16_t | m_rankScaleMax |
rank scale maximum More... | |
std::vector< double > | m_thresholds |
thresholds associated with rank scale in GeV More... | |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Description: Class to handle non-linear scales in L1 calo trigger hardware, including, e/gamma rank, jet rank, Htmiss
Usage: <usage>
Definition at line 29 of file L1CaloEtScale.h.
L1CaloEtScale::L1CaloEtScale | ( | ) |
default constructor, for testing (out = in)
Definition at line 23 of file L1CaloEtScale.cc.
References mps_fire::i, m_linearLsb, m_rankScaleMax, and m_thresholds.
L1CaloEtScale::L1CaloEtScale | ( | const double | linearLsbInGeV, |
const std::vector< double > & | thresholdsInGeV | ||
) |
ctor that provides backwards compatibility with fixed scale max values OK to use this with e/gamma and jet rank scales
Definition at line 31 of file L1CaloEtScale.cc.
L1CaloEtScale::L1CaloEtScale | ( | const unsigned | linScaleMax, |
const unsigned | rankScaleMax, | ||
const double | linearLsbInGeV, | ||
const std::vector< double > & | thresholdsInGeV | ||
) |
L1CaloEtScale::~L1CaloEtScale | ( | ) |
Definition at line 49 of file L1CaloEtScale.cc.
double L1CaloEtScale::et | ( | const uint16_t | rank | ) | const |
convert from rank to physically meaningful quantity
Definition at line 68 of file L1CaloEtScale.cc.
References Exception, m_thresholds, and rank().
Referenced by L1ScalesTester::analyze(), L1GctValidation::analyze(), L1TPhysicalEtAdder::produce(), and L1ExtraParticlesProd::produce().
|
inline |
get thresholds
Definition at line 66 of file L1CaloEtScale.h.
References m_thresholds.
Referenced by L1GetHistLimits::getHistLimits(), L1GctGlobalHfSumAlgos::getThresholds(), L1GctHtMissLut::getThresholdsGct(), L1GctHfEtSumsLut::getThresholdsGct(), L1GctHtMissLut::getThresholdsGeV(), L1GctHfEtSumsLut::getThresholdsGeV(), and operator<<().
|
inline |
get LSB of linear input scale
Definition at line 54 of file L1CaloEtScale.h.
References m_linearLsb.
Referenced by L1ScalesTester::analyze(), L1GetHistLimits::getHistLimits(), L1GctHfEtSumsLut::getThresholdsGct(), L1TPhysicalEtAdder::produce(), and L1GctJetEtCalibrationLut::value().
|
inline |
Definition at line 48 of file L1CaloEtScale.h.
References m_linScaleMax.
Referenced by operator<<().
void L1CaloEtScale::print | ( | std::ostream & | s | ) | const |
Definition at line 85 of file L1CaloEtScale.cc.
References mps_fire::i, m_linearLsb, m_linScaleMax, m_rankScaleMax, m_thresholds, and alignCSCRings::s.
Referenced by L1ScalesTester::analyze().
uint16_t L1CaloEtScale::rank | ( | const double | EtInGeV | ) | const |
convert from physical Et in GeV to rank scale
convert from Et in GeV to rank
Definition at line 55 of file L1CaloEtScale.cc.
References mps_fire::i, m_rankScaleMax, m_thresholds, and MillePedeFileConverter_cfg::out.
uint16_t L1CaloEtScale::rank | ( | const uint16_t | linear | ) | const |
convert from linear Et scale to rank scale
Definition at line 52 of file L1CaloEtScale.cc.
References linear(), m_linearLsb, and m_linScaleMax.
Referenced by L1ScalesTester::analyze(), L1RCTLookupTables::emRank(), et(), L1GctJetEtCalibrationLut::value(), L1GctHtMissLut::value(), and L1GctHfEtSumsLut::value().
|
inline |
Definition at line 51 of file L1CaloEtScale.h.
References m_rankScaleMax.
Referenced by operator<<(), and L1ExtraParticlesProd::produce().
|
private |
|
friend |
Definition at line 83 of file L1CaloEtScale.h.
|
friend |
Definition at line 83 of file L1CaloEtScale.h.
|
private |
LSB of linear scale in GeV.
Definition at line 78 of file L1CaloEtScale.h.
Referenced by L1CaloEtScale(), linearLsb(), print(), and rank().
|
private |
linear scale maximum
Definition at line 72 of file L1CaloEtScale.h.
Referenced by linScaleMax(), print(), and rank().
|
private |
rank scale maximum
Definition at line 75 of file L1CaloEtScale.h.
Referenced by L1CaloEtScale(), print(), rank(), and rankScaleMax().
|
private |
thresholds associated with rank scale in GeV
Definition at line 81 of file L1CaloEtScale.h.
Referenced by et(), getThresholds(), L1CaloEtScale(), print(), and rank().