CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions
L1MuUnsignedPacking< Bits > Class Template Reference

#include <L1MuPacking.h>

Inheritance diagram for L1MuUnsignedPacking< Bits >:
L1MuPacking

Public Member Functions

int idxFromPacked (unsigned packed) const override
 get the value from the packed notation (always positive) More...
 
unsigned packedFromIdx (int idx) const override
 get the packed notation of a value, check the range More...
 
int signFromPacked (unsigned packed) const override
 get the sign from the packed notation. always psitive (0) More...
 
- Public Member Functions inherited from L1MuPacking
virtual ~L1MuPacking ()
 

Detailed Description

template<unsigned int Bits>
class L1MuUnsignedPacking< Bits >

Packing of an unsigned int in a bit field

Definition at line 57 of file L1MuPacking.h.

Member Function Documentation

◆ idxFromPacked()

template<unsigned int Bits>
int L1MuUnsignedPacking< Bits >::idxFromPacked ( unsigned  packed) const
inlineoverridevirtual

get the value from the packed notation (always positive)

Implements L1MuPacking.

Definition at line 62 of file L1MuPacking.h.

62 { return (int)packed; };

◆ packedFromIdx()

template<unsigned int Bits>
unsigned L1MuUnsignedPacking< Bits >::packedFromIdx ( int  idx) const
inlineoverridevirtual

get the packed notation of a value, check the range

Implements L1MuPacking.

Definition at line 64 of file L1MuPacking.h.

64  {
65  if (idx >= (1 << Bits))
66  edm::LogWarning("ScaleRangeViolation")
67  << "L1MuUnignedPacking::packedFromIdx: warning value " << idx << "exceeds " << Bits << "-bit range !!!";
68  return (unsigned)idx;
69  };

References heavyIonCSV_trainingSettings::idx.

◆ signFromPacked()

template<unsigned int Bits>
int L1MuUnsignedPacking< Bits >::signFromPacked ( unsigned  packed) const
inlineoverridevirtual

get the sign from the packed notation. always psitive (0)

Implements L1MuPacking.

Definition at line 60 of file L1MuPacking.h.

60 { return 0; };
edm::module::AbilityBits::Bits
Bits
Definition: moduleAbilityEnums.h:54
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5