#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 236 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 246 of file L1MuScale.h.
|
inline |
NBins=number of bins (in one half of the scale), Scale[NBins+1]=bin edges
Definition at line 251 of file L1MuScale.h.
References mps_fire::i, m_NBins, m_Scale, and SiStripSourceConfigP5_cff::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 270 of file L1MuScale.h.
References mps_fire::i, m_NBins, m_Scale, SiStripSourceConfigP5_cff::NBins, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.
|
inlineoverride |
|
inlineoverridevirtual |
get the center of bin represented by packed
Implements L1MuScale.
Definition at line 284 of file L1MuScale.h.
References funct::abs(), L1MuPseudoSignedPacking::idxFromPacked(), m_NBins, m_packing, m_Scale, and L1MuPseudoSignedPacking::signFromPacked().
Referenced by print().
|
inlineoverridevirtual |
get the upper edge of bin represented by packed
Implements L1MuScale.
Definition at line 304 of file L1MuScale.h.
|
inlineoverridevirtual |
get the low edge of bin represented by packed
Implements L1MuScale.
Definition at line 294 of file L1MuScale.h.
References funct::abs(), L1MuPseudoSignedPacking::idxFromPacked(), LaserClient_cfi::low, m_NBins, m_packing, m_Scale, and L1MuPseudoSignedPacking::signFromPacked().
Referenced by print().
|
inlineoverridevirtual |
get number of bins
Implements L1MuScale.
Definition at line 331 of file L1MuScale.h.
References m_NBins.
|
inlineoverridevirtual |
pack a value
Implements L1MuScale.
Definition at line 310 of file L1MuScale.h.
References heavyIonCSV_trainingSettings::idx, m_NBins, m_packing, m_Scale, and L1MuPseudoSignedPacking::packedFromIdx().
Referenced by print().
|
inlineoverridevirtual |
get the upper edge of the last bin (posivie half)
Implements L1MuScale.
Definition at line 325 of file L1MuScale.h.
References m_NBins, and m_Scale.
|
inlineoverridevirtual |
get the lower edge of the first bin (positive half)
Implements L1MuScale.
Definition at line 328 of file L1MuScale.h.
References m_Scale.
|
inlineoverridevirtual |
get value of the underlying vector for bin i
Implements L1MuScale.
Definition at line 334 of file L1MuScale.h.
References mps_fire::i, and m_Scale.
|
inlineoverridevirtual |
Implements L1MuScale.
Definition at line 336 of file L1MuScale.h.
References getCenter(), getLowEdge(), getPacked(), mps_fire::i, m_NBins, m_Scale, and str.
|
private |
|
friend |
Definition at line 355 of file L1MuScale.h.
|
friend |
Definition at line 355 of file L1MuScale.h.
|
protected |
Definition at line 352 of file L1MuScale.h.
Referenced by getCenter(), getLowEdge(), getNBins(), getPacked(), getScaleMax(), L1MuSymmetricBinnedScale(), and print().
|
protected |
Definition at line 351 of file L1MuScale.h.
Referenced by getCenter(), getLowEdge(), and getPacked().
|
protected |
Definition at line 353 of file L1MuScale.h.
Referenced by getCenter(), getLowEdge(), getPacked(), getScaleMax(), getScaleMin(), getValue(), L1MuSymmetricBinnedScale(), and print().