ATLAS Offline Software
|
Converts the TileRawChannel object into bytes as it is defined at the testbeam. More...
#include <TileRawChannel2Bytes2.h>
Public Member Functions | |
TileRawChannel2Bytes2 () | |
int | getBytes (const TileFastRawChannel *rc, int gain, std::vector< unsigned int > &v) |
Adds an entry to the vector<int> v for this TileRawChannel. More... | |
unsigned int | getWord (const TileFastRawChannel *rc, int gain) |
Returns a single 32-bit word which encodes the TileRawChannel information (gain,amplitude,phase and quality) for a single read-out channel. More... | |
int | gain (unsigned int w) const |
Returns the gain unpacked from the single 32-bit word w. More... | |
float | amplitude (unsigned int w) const |
Returns the non calibrated amplitude unpacked from the single 32-bit word w. More... | |
float | time (unsigned int w) const |
Returns the phase of the pulse in ns, unpacked from the single 32-bit word w. More... | |
float | quality (unsigned int w) const |
Returns the quality factor unpacked from the single 32-bit word w. More... | |
void | setVerbose (bool verbose) |
Sets verbose mode true or false. More... | |
Private Attributes | |
bool | m_verbose |
Verbose flag. More... | |
Converts the TileRawChannel object into bytes as it is defined at the testbeam.
In one 32-bit word:
Definition at line 58 of file TileRawChannel2Bytes2.h.
|
inline |
Definition at line 60 of file TileRawChannel2Bytes2.h.
|
inline |
Returns the non calibrated amplitude unpacked from the single 32-bit word w.
Definition at line 98 of file TileRawChannel2Bytes2.h.
|
inline |
Returns the gain unpacked from the single 32-bit word w.
Definition at line 93 of file TileRawChannel2Bytes2.h.
int TileRawChannel2Bytes2::getBytes | ( | const TileFastRawChannel * | rc, |
int | gain, | ||
std::vector< unsigned int > & | v | ||
) |
Adds an entry to the vector<int> v for this TileRawChannel.
The entry is the single 32-bit word generated using TileRawChannel2Bytes2::getWord() method.
Returns 1 which is the number of entries added to the vector.
Definition at line 10 of file TileRawChannel2Bytes2.cxx.
unsigned int TileRawChannel2Bytes2::getWord | ( | const TileFastRawChannel * | rc, |
int | gain | ||
) |
Returns a single 32-bit word which encodes the TileRawChannel information (gain,amplitude,phase and quality) for a single read-out channel.
Definition at line 18 of file TileRawChannel2Bytes2.cxx.
|
inline |
Returns the quality factor unpacked from the single 32-bit word w.
Definition at line 109 of file TileRawChannel2Bytes2.h.
|
inline |
Sets verbose mode true or false.
Definition at line 82 of file TileRawChannel2Bytes2.h.
|
inline |
Returns the phase of the pulse in ns, unpacked from the single 32-bit word w.
Definition at line 104 of file TileRawChannel2Bytes2.h.
|
private |
Verbose flag.
Definition at line 88 of file TileRawChannel2Bytes2.h.