#include <L1MuScale.h>
Public Member Functions | |
virtual float | getCenter (unsigned packed) const |
get the center of bin represented by packed More... | |
virtual float | getHighEdge (unsigned packed) const |
get the upper edge of bin represented by packed More... | |
virtual float | getLowEdge (unsigned packed) const |
get the low edge of bin represented by packed More... | |
virtual unsigned | getNBins () const |
get number of bins More... | |
virtual unsigned | getPacked (float value) const |
pack a value More... | |
virtual float | getScaleMax () const |
get the upper edge of the last bin (posivie half) More... | |
virtual float | getScaleMin () const |
get the lower edge of the first bin (positive half) More... | |
virtual float | getValue (unsigned i) const |
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) | |
virtual std::string | print () const |
virtual | ~L1MuSymmetricBinnedScale () |
destructor More... | |
Public Member Functions inherited from L1MuScale | |
L1MuScale () | |
virtual | ~L1MuScale () |
Protected Attributes | |
int | m_NBins |
L1MuPseudoSignedPacking | m_packing |
std::vector< float > | m_Scale |
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 245 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 256 of file L1MuScale.h.
|
inline |
NBins=number of bins (in one half of the scale), Scale[NBins+1]=bin edges
Definition at line 263 of file L1MuScale.h.
References i, m_NBins, m_Scale, and EnsembleCalibrationLA_cfg::NBins.
|
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 282 of file L1MuScale.h.
References i, m_NBins, m_Scale, and EnsembleCalibrationLA_cfg::NBins.
|
inlinevirtual |
|
inlinevirtual |
get the center of bin represented by packed
Implements L1MuScale.
Definition at line 297 of file L1MuScale.h.
References abs, L1MuPseudoSignedPacking::idxFromPacked(), m_NBins, m_packing, m_Scale, and L1MuPseudoSignedPacking::signFromPacked().
Referenced by print().
|
inlinevirtual |
get the upper edge of bin represented by packed
Implements L1MuScale.
Definition at line 315 of file L1MuScale.h.
|
inlinevirtual |
get the low edge of bin represented by packed
Implements L1MuScale.
Definition at line 306 of file L1MuScale.h.
References abs, L1MuPseudoSignedPacking::idxFromPacked(), m_NBins, m_packing, m_Scale, and L1MuPseudoSignedPacking::signFromPacked().
Referenced by print().
|
inlinevirtual |
get number of bins
Implements L1MuScale.
Definition at line 339 of file L1MuScale.h.
References m_NBins.
|
inlinevirtual |
pack a value
Implements L1MuScale.
Definition at line 321 of file L1MuScale.h.
References customizeTrackingMonitorSeedNumber::idx, m_NBins, m_packing, m_Scale, and L1MuPseudoSignedPacking::packedFromIdx().
Referenced by print().
|
inlinevirtual |
get the upper edge of the last bin (posivie half)
Implements L1MuScale.
Definition at line 333 of file L1MuScale.h.
References m_NBins, and m_Scale.
|
inlinevirtual |
get the lower edge of the first bin (positive half)
Implements L1MuScale.
Definition at line 336 of file L1MuScale.h.
References m_Scale.
|
inlinevirtual |
get value of the underlying vector for bin i
Implements L1MuScale.
Definition at line 342 of file L1MuScale.h.
|
inlinevirtual |
Implements L1MuScale.
Definition at line 344 of file L1MuScale.h.
References getCenter(), getLowEdge(), getPacked(), i, m_NBins, and m_Scale.
|
protected |
Definition at line 361 of file L1MuScale.h.
Referenced by getCenter(), getLowEdge(), getNBins(), getPacked(), getScaleMax(), L1MuSymmetricBinnedScale(), and print().
|
protected |
Definition at line 360 of file L1MuScale.h.
Referenced by getCenter(), getLowEdge(), and getPacked().
|
protected |
Definition at line 362 of file L1MuScale.h.
Referenced by getCenter(), getLowEdge(), getPacked(), getScaleMax(), getScaleMin(), getValue(), L1MuSymmetricBinnedScale(), and print().