![]() |
ATLAS Offline Software
|
Converts the TileRawChannel object into bytes. More...
#include <TileRawChannel2Bytes.h>
Public Member Functions | |
| TileRawChannel2Bytes () | |
| int | getBytes (const TileFastRawChannel *rc, int gain, std::vector< short > &v) |
| Pack TileRawChannel information (gain, amplitude, phase and quality) in 3 16-bit words. More... | |
| int | gain (short i) const |
| Returns the gain unpacked from the single 16-bit word w. More... | |
| float | amplitude (short i) const |
| Returns the non calibrated amplitude unpacked from a single 16-bit word w. More... | |
| float | time (short i) const |
| Returns the phase of the pulse, unpacked from a single 16-bit word w. More... | |
| float | quality (short i) const |
| Returns the quality factor unpacked from a single 16-bit word w. More... | |
| void | setVerbose (bool verbose) |
| Sets verbose mode true or false. More... | |
Private Member Functions | |
| int | amplitude_range () |
| Returns AMPLITUDE_RANGE . More... | |
| int | time_range () |
| Returns TIME_RANGE . More... | |
| int | quality_range () |
| Retuns QUALITY_RANGE . More... | |
Private Attributes | |
| bool | m_verbose |
| Verbose flag. More... | |
Converts the TileRawChannel object into bytes.
Amplitude, phase and quality factor are encoded in 16-bit words:
Definition at line 42 of file TileRawChannel2Bytes.h.
|
inline |
Definition at line 44 of file TileRawChannel2Bytes.h.
|
inline |
Returns the non calibrated amplitude unpacked from a single 16-bit word w.
Definition at line 95 of file TileRawChannel2Bytes.h.
|
inlineprivate |
Returns AMPLITUDE_RANGE .
Definition at line 71 of file TileRawChannel2Bytes.h.
|
inline |
| int TileRawChannel2Bytes::getBytes | ( | const TileFastRawChannel * | rc, |
| int | gain, | ||
| std::vector< short > & | v | ||
| ) |
Pack TileRawChannel information (gain, amplitude, phase and quality) in 3 16-bit words.
Fills in the vector<short> the three entries for the corresponding read-out channel.
Returns number of words added to the vector, 3 for amplitude + phase + quality factor.
Definition at line 10 of file TileRawChannel2Bytes.cxx.
|
inline |
Returns the quality factor unpacked from a single 16-bit word w.
Definition at line 109 of file TileRawChannel2Bytes.h.
|
inlineprivate |
Retuns QUALITY_RANGE .
Definition at line 79 of file TileRawChannel2Bytes.h.
|
inline |
Sets verbose mode true or false.
Definition at line 64 of file TileRawChannel2Bytes.h.
|
inline |
Returns the phase of the pulse, unpacked from a single 16-bit word w.
Definition at line 102 of file TileRawChannel2Bytes.h.
|
inlineprivate |
Returns TIME_RANGE .
Definition at line 75 of file TileRawChannel2Bytes.h.
|
private |
Verbose flag.
Definition at line 84 of file TileRawChannel2Bytes.h.
1.8.18