CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
L1MuPseudoSignedPacking Class Reference

#include <L1MuPacking.h>

Inheritance diagram for L1MuPseudoSignedPacking:
L1MuPacking

Public Member Functions

virtual int idxFromPacked (unsigned packed) const
 get the value from the packed notation (+/-) More...
 
 L1MuPseudoSignedPacking ()
 
 L1MuPseudoSignedPacking (unsigned int nbits)
 
virtual unsigned packedFromIdx (int idx) const
 get the packed notation of a value, check range More...
 
virtual unsigned packedFromIdx (int idx, int sig) const
 get the packed notation of a value, check range; sets the sign separately, 1 is neg. sign(!) More...
 
virtual int signFromPacked (unsigned packed) const
 get the (pseudo-)sign from the packed notation (0=positive, 1=negative) More...
 
virtual ~L1MuPseudoSignedPacking ()
 
- Public Member Functions inherited from L1MuPacking
virtual ~L1MuPacking ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

unsigned int m_nbits
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Packing of a signed int in a bit field (pseudo-sign)

There is a -0 and a +0 in the pseudo-signed scale

Definition at line 136 of file L1MuPacking.h.

Constructor & Destructor Documentation

L1MuPseudoSignedPacking::L1MuPseudoSignedPacking ( )
inline

Definition at line 138 of file L1MuPacking.h.

virtual L1MuPseudoSignedPacking::~L1MuPseudoSignedPacking ( )
inlinevirtual

Definition at line 139 of file L1MuPacking.h.

L1MuPseudoSignedPacking::L1MuPseudoSignedPacking ( unsigned int  nbits)
inline

Definition at line 140 of file L1MuPacking.h.

Member Function Documentation

virtual int L1MuPseudoSignedPacking::idxFromPacked ( unsigned  packed) const
inlinevirtual

get the value from the packed notation (+/-)

Implements L1MuPacking.

Definition at line 146 of file L1MuPacking.h.

virtual unsigned L1MuPseudoSignedPacking::packedFromIdx ( int  idx) const
inlinevirtual

get the packed notation of a value, check range

Implements L1MuPacking.

Definition at line 153 of file L1MuPacking.h.

virtual unsigned L1MuPseudoSignedPacking::packedFromIdx ( int  idx,
int  sig 
) const
inlinevirtual

get the packed notation of a value, check range; sets the sign separately, 1 is neg. sign(!)

Definition at line 164 of file L1MuPacking.h.

template<class Archive >
void L1MuPseudoSignedPacking::serialize ( Archive &  ar,
const unsigned int  version 
)
private
virtual int L1MuPseudoSignedPacking::signFromPacked ( unsigned  packed) const
inlinevirtual

get the (pseudo-)sign from the packed notation (0=positive, 1=negative)

Implements L1MuPacking.

Definition at line 143 of file L1MuPacking.h.

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 177 of file L1MuPacking.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 177 of file L1MuPacking.h.

Member Data Documentation

unsigned int L1MuPseudoSignedPacking::m_nbits
private

Definition at line 175 of file L1MuPacking.h.