#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 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 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 PVValHelper::eta, mps_fire::i, hgcalVFEProducer_cfi::lsb, 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 64 of file L1CaloEcalScale.cc.
References PVValHelper::eta, m_scale, nBinEta, nBinRank, and rank().
Referenced by L1CaloInputScaleTester::analyze(), L1RCTLookupTables::convertEcal(), L1TStage2Layer1Producer::produce(), rank(), and setBin().
void L1CaloEcalScale::print | ( | std::ostream & | s | ) | const |
Definition at line 75 of file L1CaloEcalScale.cc.
References PVValHelper::eta, m_scale, nBinEta, nBinRank, rank(), and alignCSCRings::s.
Referenced by L1ScalesTester::analyze().
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 45 of file L1CaloEcalScale.cc.
References et(), PVValHelper::eta, mps_fire::i, m_scale, nBinEta, nBinRank, and MillePedeFileConverter_cfg::out.
Referenced by et(), print(), and setBin().
|
private |
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 33 of file L1CaloEcalScale.cc.
References et(), PVValHelper::eta, m_scale, nBinEta, nBinRank, and rank().
Referenced by L1RCTSaveInput::analyze(), and L1RCTLutWriter::analyze().
|
friend |
Definition at line 66 of file L1CaloEcalScale.h.
|
friend |
Definition at line 66 of file L1CaloEcalScale.h.
thresholds associated with rank scale in GeV
Definition at line 64 of file L1CaloEcalScale.h.
Referenced by et(), L1CaloEcalScale(), print(), rank(), and setBin().
|
static |
Definition at line 32 of file L1CaloEcalScale.h.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), et(), L1CaloEcalScale(), L1CaloEcalScaleConfigOnlineProd::newObject(), print(), L1CaloInputScalesProducer::produceEcalScale(), rank(), and setBin().
|
static |
Definition at line 31 of file L1CaloEcalScale.h.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), et(), L1CaloEcalScale(), L1CaloEcalScaleConfigOnlineProd::newObject(), print(), L1CaloInputScalesProducer::produceEcalScale(), rank(), and setBin().