#include <CondFormats/L1TObjects/interface/L1CaloEcalScale.h>
Public Member Functions | |
double | et (unsigned short rank, unsigned short eta, short etaSign) const |
convert from rank to physically meaningful quantity | |
L1CaloEcalScale (double lsb=1.0) | |
constructor (creates a linear scale with an LSB - no LSB gives identity) | |
void | print (std::ostream &s) const |
uint16_t | rank (double et, unsigned short eta, short etaSign) const |
convert from physical Et in GeV to rank scale | |
void | setBin (unsigned short rank, unsigned short eta, short etaSign, double et) |
set scale element; use this to create non-linear scales | |
~L1CaloEcalScale () | |
destructor | |
Static Public Attributes | |
static const unsigned short | nBinEta = 28 |
static const unsigned short | nBinRank = 1<<8 |
Private Attributes | |
double | m_scale [nBinRank][2 *nBinEta] |
thresholds associated with rank scale in GeV |
Description: Class to handle conversion between Et scales in L1 hardware
Usage: <usage>
Definition at line 26 of file L1CaloEcalScale.h.
L1CaloEcalScale::L1CaloEcalScale | ( | double | lsb = 1.0 | ) |
constructor (creates a linear scale with an LSB - no LSB gives identity)
construct a linear scale with a particular LSB
Definition at line 20 of file L1CaloEcalScale.cc.
L1CaloEcalScale::~L1CaloEcalScale | ( | ) |
double L1CaloEcalScale::et | ( | unsigned short | rank, |
unsigned short | eta, | ||
short | etaSign | ||
) | const |
convert from rank to physically meaningful quantity
Definition at line 70 of file L1CaloEcalScale.cc.
References eta(), m_scale, nBinEta, nBinRank, and rank().
Referenced by L1RCTLookupTables::convertEcal(), and setBin().
void L1CaloEcalScale::print | ( | std::ostream & | s | ) | const |
unsigned short L1CaloEcalScale::rank | ( | double | et, |
unsigned short | eta, | ||
short | etaSign | ||
) | const |
convert from physical Et in GeV to rank scale
convert from Et in GeV to rank
Definition at line 51 of file L1CaloEcalScale.cc.
References eta(), i, m_scale, nBinEta, nBinRank, and dbtoconf::out.
void L1CaloEcalScale::setBin | ( | unsigned short | rank, |
unsigned short | eta, | ||
short | etaSign, | ||
double | et | ||
) |
set scale element; use this to create non-linear scales
set scale bin
Definition at line 36 of file L1CaloEcalScale.cc.
References et(), eta(), m_scale, nBinEta, nBinRank, and rank().
Referenced by L1RCTLutWriter::analyze(), L1RCTSaveInput::analyze(), and L1CaloEcalScaleConfigOnlineProd::newObject().
double L1CaloEcalScale::m_scale[nBinRank][2 *nBinEta] [private] |
thresholds associated with rank scale in GeV
Definition at line 65 of file L1CaloEcalScale.h.
Referenced by et(), L1CaloEcalScale(), rank(), and setBin().
const unsigned short L1CaloEcalScale::nBinEta = 28 [static] |
Definition at line 32 of file L1CaloEcalScale.h.
Referenced by L1RCTLutWriter::analyze(), L1RCTSaveInput::analyze(), et(), L1CaloEcalScale(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1CaloInputScalesProducer::produceEcalScale(), rank(), and setBin().
const unsigned short L1CaloEcalScale::nBinRank = 1<<8 [static] |
Definition at line 31 of file L1CaloEcalScale.h.
Referenced by L1RCTLutWriter::analyze(), L1RCTSaveInput::analyze(), et(), L1CaloEcalScale(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1CaloInputScalesProducer::produceEcalScale(), rank(), and setBin().