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;
unsigned int out(unsigned int x) const
Extract a value from the bitfield.
unsigned int m_mask
Bitmask. Lower bit should be 1.
unsigned int in(unsigned int x) const
Shift and mask a value into the bitfield.
unsigned int m_shift
Shift count.
Bitfield(unsigned int mask=1)
Constructor.
double m_xmax
Largest representable value.
unsigned int in(double x) const
Shift and mask a value into the bitfield.
double m_ifact
Cached factor for float->int conversions.
double out(unsigned int x) const
Extract a value from the bitfield.
double m_fact
Cached factor for int->float conversions.
Floatfield2(unsigned int mask=1, double xmax=1)
Constructor.
unsigned int in(double x) const
Shift and mask a value into the bitfield.
double m_xmin
Smallest representable value.
Floatfield(unsigned int mask=1, double xmin=1, double xmax=0)
Constructor.
double out(unsigned int x, int &underflow) const
Extract a value from the bitfield.
double m_ifact
Cached factor for float->int conversions.
double m_fact
Cached factor for int->float conversions.
double m_xmax
Largest representable value.