CMS 3D CMS Logo

L1MuUnsignedPackingGeneric Class Reference

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

Inheritance diagram for L1MuUnsignedPackingGeneric:

L1MuPacking

List of all members.

Static Public Member Functions

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


Detailed Description

Definition at line 64 of file L1MuPacking.h.


Member Function Documentation

static int L1MuUnsignedPackingGeneric::idxFromPacked ( unsigned  packed,
unsigned int  nbits 
) [inline, static]

get the value from the packed notation (always positive)

Definition at line 69 of file L1MuPacking.h.

Referenced by L1MuBinnedScale::get_idx().

00069 { return (int) packed;};

static unsigned L1MuUnsignedPackingGeneric::packedFromIdx ( int  idx,
unsigned int  nbits 
) [inline, static]

get the packed notation of a value, check the range

Definition at line 71 of file L1MuPacking.h.

Referenced by L1MuBinnedScale::getPacked().

00071                                                              { 
00072     if (idx >= (1 << nbits) ) edm::LogWarning("ScaleRangeViolation") 
00073                   << "L1MuUnignedPacking::packedFromIdx: warning value " << idx 
00074                   << "exceeds " << nbits << "-bit range !!!";        
00075     return (unsigned) idx;
00076   };

static int L1MuUnsignedPackingGeneric::signFromPacked ( unsigned  packed,
unsigned int  nbits 
) [inline, static]

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

Definition at line 67 of file L1MuPacking.h.

00067 { 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