  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
Go to the documentation of this file.
   17 #ifndef CALOCELLPACKERUTILS_H 
   18 #define CALOCELLPACKERUTILS_H 
   21 #include "GaudiKernel/Kernel.h"   
   51   unsigned int in (
unsigned int x) 
const;
 
   59   unsigned int out (
unsigned int x) 
const;
 
   97   unsigned int in (
double x) 
const;
 
  106   double out (
unsigned int x, 
int& underflow) 
const;
 
  147   unsigned int in (
double x) 
const;
 
  155   double out (
unsigned int x) 
const;
 
  176 #endif // not CALOCELLPACKERUTILS_H 
  
double m_xmax
Largest representable value.
 
Helper for packing a float into/out of a bit field.
 
Floatfield(unsigned int mask=1, double xmin=1, double xmax=0)
Constructor.
 
Helper for packing a float into/out of a bit field, with a minimum of 0.
 
unsigned int in(double x) const
Shift and mask a value into the bitfield.
 
double out(unsigned int x) const
Extract a value from the bitfield.
 
unsigned int m_shift
Shift count.
 
Helper for packing into/out of a bit field.
 
unsigned int in(unsigned int x) const
Shift and mask a value into the bitfield.
 
Bitfield(unsigned int mask=1)
Constructor.
 
double m_xmax
Largest representable value.
 
Floatfield2(unsigned int mask=1, double xmax=1)
Constructor.
 
unsigned int m_mask
Bitmask. Lower bit should be 1.
 
double m_ifact
Cached factor for float->int conversions.
 
double m_fact
Cached factor for int->float conversions.
 
unsigned int out(unsigned int x) const
Extract a value from the bitfield.
 
unsigned int in(double x) const
Shift and mask a value into the bitfield.
 
double m_ifact
Cached factor for float->int conversions.
 
double m_fact
Cached factor for int->float conversions.
 
double out(unsigned int x, int &underflow) const
Extract a value from the bitfield.
 
double m_xmin
Smallest representable value.