#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 More... | |
L1CaloEcalScale (double lsb=1.0) | |
constructor (creates a linear scale with an LSB - no LSB gives identity) More... | |
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 More... | |
void | setBin (unsigned short rank, unsigned short eta, short etaSign, double et) |
set scale element; use this to create non-linear scales More... | |
~L1CaloEcalScale () | |
destructor More... | |
Static Public Attributes | |
static const unsigned short | nBinEta = 28 |
static const unsigned short | nBinRank = 1<<8 |
Private Attributes | |
COND_SERIALIZABLE | |
double | m_scale [nBinRank][2 *nBinEta] |
thresholds associated with rank scale in GeV More... | |
Description: Class to handle conversion between Et scales in L1 hardware
Usage: <usage>
Definition at line 28 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.
References eta(), i, m_scale, nBinEta, and nBinRank.
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 |
Definition at line 82 of file L1CaloEcalScale.cc.
References eta(), m_scale, nBinEta, nBinRank, and rank().
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.
Referenced by et(), print(), and setBin().
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 L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), and L1CaloEcalScaleConfigOnlineProd::newObject().
|
private |
Definition at line 70 of file L1CaloEcalScale.h.
thresholds associated with rank scale in GeV
Definition at line 67 of file L1CaloEcalScale.h.
Referenced by et(), L1CaloEcalScale(), print(), rank(), and setBin().
|
static |
Definition at line 34 of file L1CaloEcalScale.h.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), et(), L1CaloEcalScale(), L1CaloEcalScaleConfigOnlineProd::newObject(), print(), L1CaloInputScalesProducer::produceEcalScale(), rank(), and setBin().
|
static |
Definition at line 33 of file L1CaloEcalScale.h.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), et(), L1CaloEcalScale(), L1CaloEcalScaleConfigOnlineProd::newObject(), print(), L1CaloInputScalesProducer::produceEcalScale(), rank(), and setBin().