#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 |
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.
|
inlinevirtual |
|
inlinevirtual |
get the center of bin represented by packed
Implements L1MuScale.
Definition at line 303 of file L1MuScale.h.
References funct::abs().
|
inlinevirtual |
get the upper edge of bin represented by packed
Implements L1MuScale.
Definition at line 321 of file L1MuScale.h.
|
inlinevirtual |
get the low edge of bin represented by packed
Implements L1MuScale.
Definition at line 312 of file L1MuScale.h.
References funct::abs().
|
inlinevirtual |
|
inlinevirtual |
pack a value
Implements L1MuScale.
Definition at line 327 of file L1MuScale.h.
References training_settings::idx.
|
inlinevirtual |
get the upper edge of the last bin (posivie half)
Implements L1MuScale.
Definition at line 339 of file L1MuScale.h.
|
inlinevirtual |
get the lower edge of the first bin (positive half)
Implements L1MuScale.
Definition at line 342 of file L1MuScale.h.
|
inlinevirtual |
get value of the underlying vector for bin i
Implements L1MuScale.
Definition at line 348 of file L1MuScale.h.
References mps_fire::i.
|
inlinevirtual |
Implements L1MuScale.
Definition at line 350 of file L1MuScale.h.
References L1MuScale::getCenter(), L1MuScale::getLowEdge(), L1MuScale::getPacked(), mps_fire::i, and harvestTrackValidationPlots::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.