#include <L1MuScale.h>
Public Member Functions | |
float | getCenter (unsigned packed) const override |
get the center of bin represented by packed More... | |
float | getHighEdge (unsigned packed) const override |
get the upper edge of bin represented by packed More... | |
float | getLowEdge (unsigned packed) const override |
get the low edge of bin represented by packed More... | |
unsigned | getNBins () const override |
get number of bins More... | |
unsigned | getPacked (float value) const override |
pack a value More... | |
float | getScaleMax () const override |
get the upper edge of the last bin (posivie half) More... | |
float | getScaleMin () const override |
get the lower edge of the first bin (positive half) More... | |
float | getValue (unsigned i) const override |
get value of the underlying vector for bin i More... | |
L1MuSymmetricBinnedScale () | |
L1MuSymmetricBinnedScale (int nbits, int NBins, const std::vector< double > &Scale) | |
L1MuSymmetricBinnedScale (int nbits, int NBins, float xmin, float xmax) | |
std::string | print () const override |
~L1MuSymmetricBinnedScale () override | |
destructor More... | |
Public Member Functions inherited from L1MuScale | |
L1MuScale () | |
virtual | ~L1MuScale () |
Protected Attributes | |
int | m_NBins |
L1MuPseudoSignedPacking | m_packing |
std::vector< float > | m_Scale |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
In the GMT the concept of a symmetric scale exists The internal representation of scale values is "pseudo-signed", i.e. the highest bit stores the sign and the lower bits contain the absolute value
Attention: for reasons of symmetry, the low edge in this scale is the edge closer to zero. the high edge is the edge further away from zero
Definition at line 251 of file L1MuScale.h.
|
inline |
constructor
packing is a pointer to a packing object. The L1MuSymmetricBinnedScale takes ownership of the packing object and deletes it in its destructor
Definition at line 262 of file L1MuScale.h.
|
inline |
NBins=number of bins (in one half of the scale), Scale[NBins+1]=bin edges
Definition at line 269 of file L1MuScale.h.
References mps_fire::i.
|
inline |
constructor
packing is a pointer to a packing object. The L1MuSymmetricBinnedScale takes ownership of the packing object and deletes it in its destructor
NBins=number of bins, xmin = low edge of first bin (in positive half) xmax=high edge of last bin (in positive half)
Definition at line 288 of file L1MuScale.h.
References mps_fire::i.
|
inlineoverride |
|
inlineoverridevirtual |
get the center of bin represented by packed
Implements L1MuScale.
Definition at line 303 of file L1MuScale.h.
References funct::abs().
|
inlineoverridevirtual |
get the upper edge of bin represented by packed
Implements L1MuScale.
Definition at line 321 of file L1MuScale.h.
|
inlineoverridevirtual |
get the low edge of bin represented by packed
Implements L1MuScale.
Definition at line 312 of file L1MuScale.h.
References funct::abs().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
pack a value
Implements L1MuScale.
Definition at line 327 of file L1MuScale.h.
References training_settings::idx.
|
inlineoverridevirtual |
get the upper edge of the last bin (posivie half)
Implements L1MuScale.
Definition at line 339 of file L1MuScale.h.
|
inlineoverridevirtual |
get the lower edge of the first bin (positive half)
Implements L1MuScale.
Definition at line 342 of file L1MuScale.h.
|
inlineoverridevirtual |
get value of the underlying vector for bin i
Implements L1MuScale.
Definition at line 348 of file L1MuScale.h.
References mps_fire::i.
|
inlineoverridevirtual |
Implements L1MuScale.
Definition at line 350 of file L1MuScale.h.
References L1MuScale::getCenter(), L1MuScale::getLowEdge(), L1MuScale::getPacked(), mps_fire::i, and str.
|
private |
|
friend |
Definition at line 370 of file L1MuScale.h.
|
friend |
Definition at line 370 of file L1MuScale.h.
|
protected |
Definition at line 367 of file L1MuScale.h.
|
protected |
Definition at line 366 of file L1MuScale.h.
|
protected |
Definition at line 368 of file L1MuScale.h.