#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 uint16_t linear) const |
convert from linear Et scale to rank scale More... | |
uint16_t | rank (const double EtInGeV) const |
convert from physical Et in GeV 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 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 35 of file L1CaloEtScale.cc.
L1CaloEtScale::L1CaloEtScale | ( | const unsigned | linScaleMax, |
const unsigned | rankScaleMax, | ||
const double | linearLsbInGeV, | ||
const std::vector< double > & | thresholdsInGeV | ||
) |
general case ctor that sets scale max values
Definition at line 50 of file L1CaloEtScale.cc.
L1CaloEtScale::~L1CaloEtScale | ( | ) |
Definition at line 59 of file L1CaloEtScale.cc.
double L1CaloEtScale::et | ( | const uint16_t | rank | ) | const |
convert from rank to physically meaningful quantity
Definition at line 83 of file L1CaloEtScale.cc.
References Exception, and m_thresholds.
|
inline |
get thresholds
Definition at line 65 of file L1CaloEtScale.h.
References m_thresholds.
Referenced by L1GctGlobalHfSumAlgos::getThresholds(), L1GctHtMissLut::getThresholdsGct(), L1GctHfEtSumsLut::getThresholdsGct(), L1GctHtMissLut::getThresholdsGeV(), L1GctHfEtSumsLut::getThresholdsGeV(), and operator<<().
|
inline |
get LSB of linear input scale
Definition at line 53 of file L1CaloEtScale.h.
References m_linearLsb.
Referenced by L1GctHfEtSumsLut::getThresholdsGct(), operator<<(), and L1GctJetEtCalibrationLut::value().
|
inline |
Definition at line 47 of file L1CaloEtScale.h.
References m_linScaleMax.
Referenced by l1t::JetToGtPtScales(), operator<<(), and l1t::TauToGtPtScales().
void L1CaloEtScale::print | ( | std::ostream & | s | ) | const |
Definition at line 103 of file L1CaloEtScale.cc.
References i, m_linearLsb, m_linScaleMax, m_rankScaleMax, and m_thresholds.
uint16_t L1CaloEtScale::rank | ( | const uint16_t | linear | ) | const |
convert from linear Et scale to rank scale
Definition at line 64 of file L1CaloEtScale.cc.
References m_linearLsb, and m_linScaleMax.
Referenced by L1RCTLookupTables::emRank(), l1t::JetToGtPtScales(), l1t::TauToGtPtScales(), L1GctJetEtCalibrationLut::value(), L1GctHtMissLut::value(), and L1GctHfEtSumsLut::value().
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 71 of file L1CaloEtScale.cc.
References i, m_rankScaleMax, m_thresholds, and GenerateHcalLaserBadRunList::out.
|
inline |
Definition at line 50 of file L1CaloEtScale.h.
References m_rankScaleMax.
Referenced by operator<<().
|
private |
|
friend |
Definition at line 85 of file L1CaloEtScale.h.
|
friend |
Definition at line 85 of file L1CaloEtScale.h.
|
private |
LSB of linear scale in GeV.
Definition at line 79 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 82 of file L1CaloEtScale.h.
Referenced by et(), getThresholds(), L1CaloEtScale(), print(), and rank().