CMS 3D CMS Logo

L1MuUnsignedPacking< Bits > Class Template Reference

Packing of an unsigned int in a bit field. More...

#include <CondFormats/L1TObjects/interface/L1MuPacking.h>

Inheritance diagram for L1MuUnsignedPacking< Bits >:

L1MuPacking

List of all members.

Public Member Functions

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


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 [inline, virtual]

get the value from the packed notation (always positive)

Implements L1MuPacking.

Definition at line 54 of file L1MuPacking.h.

00054 { return (int) packed;};

template<unsigned int Bits>
virtual unsigned L1MuUnsignedPacking< Bits >::packedFromIdx ( int  idx  )  const [inline, virtual]

get the packed notation of a value, check the range

Implements L1MuPacking.

Definition at line 56 of file L1MuPacking.h.

00056                                                 { 
00057     if (idx >= (1 << Bits) ) edm::LogWarning("ScaleRangeViolation") 
00058                   << "L1MuUnignedPacking::packedFromIdx: warning value " << idx 
00059                   << "exceeds " << Bits << "-bit range !!!";        
00060     return (unsigned) idx;
00061   };

template<unsigned int Bits>
virtual int L1MuUnsignedPacking< Bits >::signFromPacked ( unsigned  packed  )  const [inline, virtual]

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

Implements L1MuPacking.

Definition at line 52 of file L1MuPacking.h.

00052 { return 0;}; 


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:26:57 2009 for CMSSW by  doxygen 1.5.4