CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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

virtual int idxFromPacked (unsigned packed) const
 get the value from the packed notation (always positive) More...
 
virtual unsigned packedFromIdx (int idx) const
 get the packed notation of a value, check the range More...
 
virtual int signFromPacked (unsigned packed) const
 get the sign from the packed notation. always psitive (0) More...
 

Detailed Description

template<unsigned int Bits>
class L1MuUnsignedPacking< Bits >

Packing of an unsigned int in a bit field

Definition at line 49 of file L1MuPacking.h.

Member Function Documentation

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

get the value from the packed notation (always positive)

Implements L1MuPacking.

Definition at line 54 of file L1MuPacking.h.

54 { return (int) packed;};
template<unsigned int Bits>
virtual unsigned L1MuUnsignedPacking< Bits >::packedFromIdx ( int  idx) const
inlinevirtual

get the packed notation of a value, check the range

Implements L1MuPacking.

Definition at line 56 of file L1MuPacking.h.

References customizeTrackingMonitorSeedNumber::idx.

56  {
57  if (idx >= (1 << Bits) ) edm::LogWarning("ScaleRangeViolation")
58  << "L1MuUnignedPacking::packedFromIdx: warning value " << idx
59  << "exceeds " << Bits << "-bit range !!!";
60  return (unsigned) idx;
61  };
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
template<unsigned int Bits>
virtual int L1MuUnsignedPacking< Bits >::signFromPacked ( unsigned  packed) const
inlinevirtual

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

Implements L1MuPacking.

Definition at line 52 of file L1MuPacking.h.

52 { return 0;};