5#ifndef TILEBYTESTREAM_TILERAWCHANNEL2BYTES2_H
6#define TILEBYTESTREAM_TILERAWCHANNEL2BYTES2_H
73 inline int gain(
unsigned int w)
const;
75 inline float amplitude(
unsigned int w)
const;
77 inline float time(
unsigned int w)
const;
79 inline float quality(
unsigned int w)
const;
const unsigned int GAIN_BIT2
const float QUALITY_OFFSET2
const int AMPLITUDE_RANGE2
const float AMPLITUDE_FACTOR2
const unsigned int GAIN_RANGE2
const float QUALITY_FACTOR2
const float AMPLITUDE_MINVALUE
const int AMPLITUDE_SHIFT2
const float AMPLITUDE_OFFSET2
float quality(unsigned int w) const
Returns the quality factor unpacked from the single 32-bit word w.
float amplitude(unsigned int w) const
Returns the non calibrated amplitude unpacked from the single 32-bit word w.
float time(unsigned int w) const
Returns the phase of the pulse in ns, unpacked from the single 32-bit word w.
unsigned int getWord(const TileFastRawChannel *rc, int gain)
Returns a single 32-bit word which encodes the TileRawChannel information (gain,amplitude,...
int gain(unsigned int w) const
Returns the gain unpacked from the single 32-bit word w.
void setVerbose(bool verbose)
Sets verbose mode true or false.
bool m_verbose
Verbose flag.
int getBytes(const TileFastRawChannel *rc, int gain, std::vector< unsigned int > &v)
Adds an entry to the vector<int> v for this TileRawChannel.