#include <CondFormats/L1TObjects/interface/L1CaloHcalScale.h>
Public Member Functions | |
double | et (unsigned short rank, unsigned short eta, short etaSign) const |
convert from rank to physically meaningful quantity More... | |
L1CaloHcalScale (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... | |
~L1CaloHcalScale () | |
destructor More... | |
Static Public Attributes | |
static const unsigned short | nBinEta = 32 |
static const unsigned short | nBinRank = 1<<8 |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
double | m_scale [nBinRank][2 *nBinEta] |
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 conversion between Et scales in L1 hardware
Usage: <usage>
Definition at line 28 of file L1CaloHcalScale.h.
L1CaloHcalScale::L1CaloHcalScale | ( | 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 L1CaloHcalScale.cc.
References eta, i, m_scale, nBinEta, and nBinRank.
L1CaloHcalScale::~L1CaloHcalScale | ( | ) |
double L1CaloHcalScale::et | ( | unsigned short | rank, |
unsigned short | eta, | ||
short | etaSign | ||
) | const |
convert from rank to physically meaningful quantity
Definition at line 70 of file L1CaloHcalScale.cc.
References eta, m_scale, nBinEta, nBinRank, and rank().
Referenced by L1RCTLookupTables::convertHcal(), and setBin().
void L1CaloHcalScale::print | ( | std::ostream & | s | ) | const |
Definition at line 82 of file L1CaloHcalScale.cc.
References eta, m_scale, nBinEta, nBinRank, and rank().
Referenced by L1CaloHcalScaleConfigOnlineProd::newObject().
unsigned short L1CaloHcalScale::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 L1CaloHcalScale.cc.
References eta, i, m_scale, nBinEta, nBinRank, and dbtoconf::out.
Referenced by et(), print(), and setBin().
|
private |
void L1CaloHcalScale::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 L1CaloHcalScale.cc.
References et(), eta, m_scale, nBinEta, nBinRank, and rank().
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), and L1CaloHcalScaleConfigOnlineProd::newObject().
|
friend |
Definition at line 70 of file L1CaloHcalScale.h.
|
friend |
Definition at line 70 of file L1CaloHcalScale.h.
thresholds associated with rank scale in GeV
Definition at line 67 of file L1CaloHcalScale.h.
Referenced by et(), L1CaloHcalScale(), print(), rank(), and setBin().
|
static |
Definition at line 34 of file L1CaloHcalScale.h.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), et(), L1CaloHcalScale(), L1CaloHcalScaleConfigOnlineProd::newObject(), print(), L1CaloInputScalesProducer::produceHcalScale(), rank(), and setBin().
|
static |
Definition at line 33 of file L1CaloHcalScale.h.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), et(), L1CaloHcalScale(), L1CaloHcalScaleConfigOnlineProd::newObject(), print(), L1CaloInputScalesProducer::produceHcalScale(), rank(), and setBin().