![]() |
Project
|
GBTFrame class for the TPC. More...
#include <GBTFrame.h>
Public Member Functions | |
| GBTFrame () | |
| Default Constructor. | |
| GBTFrame (unsigned word3, unsigned word2, unsigned word1, unsigned word0) | |
| GBTFrame (short s0hw0l, short s0hw1l, short s0hw2l, short s0hw3l, short s0hw0h, short s0hw1h, short s0hw2h, short s0hw3h, short s1hw0l, short s1hw1l, short s1hw2l, short s1hw3l, short s1hw0h, short s1hw1h, short s1hw2h, short s1hw3h, short s2hw0, short s2hw1, short s2hw2, short s2hw3, short s0adc, short s1adc, short s2adc, unsigned marker=0) | |
| GBTFrame (const GBTFrame &other) | |
| ~GBTFrame ()=default | |
| Destructor. | |
| short | getMarker () const |
| short | getHalfWord (const short sampa, const short halfword, const short chan=0) const |
| short | getAdcClock (short sampa) const |
| void | setAdcClock (int sampa, int clock) |
| void | setData (unsigned word3, unsigned word2, unsigned word1, unsigned word0) |
| void | setData (short s0hw0l, short s0hw1l, short s0hw2l, short s0hw3l, short s0hw0h, short s0hw1h, short s0hw2h, short s0hw3h, short s1hw0l, short s1hw1l, short s1hw2l, short s1hw3l, short s1hw0h, short s1hw1h, short s1hw2h, short s1hw3h, short s2hw0, short s2hw1, short s2hw2, short s2hw3, short s0adc, short s1adc, short s2adc, unsigned marker=0) |
| void | getGBTFrame (unsigned &word3, unsigned &word2, unsigned &word1, unsigned &word0) const |
| std::ostream & | Print (std::ostream &output) const |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const GBTFrame &f) |
GBTFrame class for the TPC.
Definition at line 63 of file GBTFrame.h.
|
inline |
Default Constructor.
Definition at line 264 of file GBTFrame.h.
|
inline |
Constructor
| word3 | Word 3 of GBT frame, contains bit [127: 96], [127:112] are not part of the actual frame |
| word2 | Word 2 of GBT frame, contains bit [ 95: 64] |
| word1 | Word 1 of GBT frame, contains bit [ 63: 32] |
| word0 | Word 0 of GBT frame, contains bit [ 31: 0] |
Definition at line 267 of file GBTFrame.h.
| GBTFrame::GBTFrame | ( | short | s0hw0l, |
| short | s0hw1l, | ||
| short | s0hw2l, | ||
| short | s0hw3l, | ||
| short | s0hw0h, | ||
| short | s0hw1h, | ||
| short | s0hw2h, | ||
| short | s0hw3h, | ||
| short | s1hw0l, | ||
| short | s1hw1l, | ||
| short | s1hw2l, | ||
| short | s1hw3l, | ||
| short | s1hw0h, | ||
| short | s1hw1h, | ||
| short | s1hw2h, | ||
| short | s1hw3h, | ||
| short | s2hw0, | ||
| short | s2hw1, | ||
| short | s2hw2, | ||
| short | s2hw3, | ||
| short | s0adc, | ||
| short | s1adc, | ||
| short | s2adc, | ||
| unsigned | marker = 0 |
||
| ) |
Constructor
| s0hw0l | half-word 0 from SAMPA 0 low channel numbers |
| s0hw1l | half-word 1 from SAMPA 0 low channel numbers |
| s0hw2l | half-word 2 from SAMPA 0 low channel numbers |
| s0hw3l | half-word 3 from SAMPA 0 low channel numbers |
| s0hw0h | half-word 0 from SAMPA 0 high channel numbers |
| s0hw1h | half-word 1 from SAMPA 0 high channel numbers |
| s0hw2h | half-word 2 from SAMPA 0 high channel numbers |
| s0hw3h | half-word 3 from SAMPA 0 high channel numbers |
| s1hw0l | half-word 0 from SAMPA 1 low channel numbers |
| s1hw1l | half-word 1 from SAMPA 1 low channel numbers |
| s1hw2l | half-word 2 from SAMPA 1 low channel numbers |
| s1hw3l | half-word 3 from SAMPA 1 low channel numbers |
| s1hw0h | half-word 0 from SAMPA 1 high channel numbers |
| s1hw1h | half-word 1 from SAMPA 1 high channel numbers |
| s1hw2h | half-word 2 from SAMPA 1 high channel numbers |
| s1hw3h | half-word 3 from SAMPA 1 high channel numbers |
| s2hw0 | half-word 0 from SAMPA 2 |
| s2hw1 | half-word 1 from SAMPA 2 |
| s2hw2 | half-word 2 from SAMPA 2 |
| s2hw3 | half-word 3 from SAMPA 2 |
| s0adc | ADC clock from SAMPA 0 |
| s1adc | ADC clock from SAMPA 1 |
| s2adc | ADC clock from SAMPA 2 |
| marker | additional 16 bit marker which is not part of the actual frame |
Definition at line 20 of file GBTFrame.cxx.
|
inlinedefault |
Copy Contructor
| other | GBT Frame to be copied |
|
default |
Destructor.
|
inline |
Get ADC sampling clock of a SAMPA chip (4 time bits)
| sampa | ADC clock of this SAMPA chip (0-2, 3=0, 4=1) |
Definition at line 129 of file GBTFrame.h.
|
inline |
Get the GBT frame
| word3 | bit [127: 96] of GBT frame is written to this |
| word2 | bit [ 95: 64] of GBT frame is written to this |
| word1 | bit [ 63: 32] of GBT frame is written to this |
| word0 | bit [ 31: 0] of GBT frame is written to this |
Definition at line 279 of file GBTFrame.h.
|
inline |
Get a half-word of a SAMPA chip (5 bit of data)
| sampa | half-word this SAMPA chip (0-2, 3=0, 4=1) |
| halfword | this half-word of the SAMPA (4 are included in GBT frame) |
| chan | which channels, 0 for channel 0-15, 1 for channel 16-31, ignored for SAMPA 2 |
Definition at line 124 of file GBTFrame.h.
|
inline |
| std::ostream & GBTFrame::Print | ( | std::ostream & | output | ) | const |
Print function: Print GBT frame on the output stream
| output | Stream to put the GBT frame on |
Definition at line 209 of file GBTFrame.cxx.
Set Adc sampling clock of a SAMPA chip
| sampa | ADC clock of this SAMPA chip (0-2, 3=0, 4=1), -1 for all SAMPAs |
| clock | 4 sampling clock bits |
Definition at line 185 of file GBTFrame.cxx.
| void GBTFrame::setData | ( | short | s0hw0l, |
| short | s0hw1l, | ||
| short | s0hw2l, | ||
| short | s0hw3l, | ||
| short | s0hw0h, | ||
| short | s0hw1h, | ||
| short | s0hw2h, | ||
| short | s0hw3h, | ||
| short | s1hw0l, | ||
| short | s1hw1l, | ||
| short | s1hw2l, | ||
| short | s1hw3l, | ||
| short | s1hw0h, | ||
| short | s1hw1h, | ||
| short | s1hw2h, | ||
| short | s1hw3h, | ||
| short | s2hw0, | ||
| short | s2hw1, | ||
| short | s2hw2, | ||
| short | s2hw3, | ||
| short | s0adc, | ||
| short | s1adc, | ||
| short | s2adc, | ||
| unsigned | marker = 0 |
||
| ) |
Set Data
| s0hw0l | half-word 0 from SAMPA 0 low channel numbers |
| s0hw1l | half-word 1 from SAMPA 0 low channel numbers |
| s0hw2l | half-word 2 from SAMPA 0 low channel numbers |
| s0hw3l | half-word 3 from SAMPA 0 low channel numbers |
| s0hw0h | half-word 0 from SAMPA 0 high channel numbers |
| s0hw1h | half-word 1 from SAMPA 0 high channel numbers |
| s0hw2h | half-word 2 from SAMPA 0 high channel numbers |
| s0hw3h | half-word 3 from SAMPA 0 high channel numbers |
| s1hw0l | half-word 0 from SAMPA 1 low channel numbers |
| s1hw1l | half-word 1 from SAMPA 1 low channel numbers |
| s1hw2l | half-word 2 from SAMPA 1 low channel numbers |
| s1hw3l | half-word 3 from SAMPA 1 low channel numbers |
| s1hw0h | half-word 0 from SAMPA 1 high channel numbers |
| s1hw1h | half-word 1 from SAMPA 1 high channel numbers |
| s1hw2h | half-word 2 from SAMPA 1 high channel numbers |
| s1hw3h | half-word 3 from SAMPA 1 high channel numbers |
| s2hw0 | half-word 0 from SAMPA 2 |
| s2hw1 | half-word 1 from SAMPA 2 |
| s2hw2 | half-word 2 from SAMPA 2 |
| s2hw3 | half-word 3 from SAMPA 2 |
| s0adc | ADC clock from SAMPA 0 |
| s1adc | ADC clock from SAMPA 1 |
| s2adc | ADC clock from SAMPA 2 |
| marker | additional 16 bit marker which is not part of the actual frame |
Definition at line 103 of file GBTFrame.cxx.
|
inline |
Set data
| other | Other GBT Frame Set data |
| word3 | Word 3 of GBT frame, contains bit [127: 96], [127:112] are not part of the actual frame |
| word2 | Word 2 of GBT frame, contains bit [ 95: 64] |
| word1 | Word 1 of GBT frame, contains bit [ 63: 32] |
| word0 | Word 0 of GBT frame, contains bit [ 31: 0] |
Definition at line 254 of file GBTFrame.h.
|
friend |
Definition at line 191 of file GBTFrame.h.