Definition at line 268 of file eFexByteStreamTool.cxx.
◆ addTob() [1/2]
Definition at line 276 of file eFexByteStreamTool.cxx.
276 {
279 } else {
281 }
282 }
uint32_t word0() const
The "raw" 32-bit words describing the e/gamma candidate.
char isTOB() const
Is this one a TOB (or xTOB partner of a TOB)?
std::vector< xTob > em_xtobs
◆ addTob() [2/2]
Definition at line 283 of file eFexByteStreamTool.cxx.
283 {
286 } else {
288 }
289 }
uint32_t word0() const
The "raw" 32-bit words describing the e/gamma candidate.
char isTOB() const
Is this one a TOB (or xTOB partner of a TOB)?
std::vector< xTob > tau_xtobs
◆ getWords()
| std::vector< uint32_t > Decoder::Slice::getWords |
( |
const Id & | id | ) |
|
|
inline |
Definition at line 290 of file eFexByteStreamTool.cxx.
290 {
291
292 const uint32_t tobType = (
id.fpgaNumber==1) ? 1 : 0;
297
298 std::vector<uint32_t>
out;
299 out.reserve(numTobs + numEmXtobs*2+numTauXtobs*2 + 1 + (numTobs%2 ? 0 : 1));
300 for(
auto& tob :
tobs)
out.push_back(tob.word0);
301 for(
auto& xtob :
em_xtobs) {
out.push_back(xtob.word0);
out.push_back(xtob.word1);}
302 for(
auto& xtob :
tau_xtobs) {
out.push_back(xtob.word0);
out.push_back(xtob.word1);}
303 if(numTobs%2==0)
out.push_back(0);
304
306 sliceTrailer += (tobType&0x1)<<8;
307 sliceTrailer += (numTobs&0x7)<<9;
308 sliceTrailer += (numEmXtobs&0x3f)<<12;
309 sliceTrailer += (numTauXtobs&0x3f)<<18;
310 sliceTrailer += (id.sliceNumber&0x7)<<24;
311 sliceTrailer += (safeMode&0x1)<<27;
312 sliceTrailer += (id.fpgaNumber&0x3)<<28;
313
314 out.push_back(sliceTrailer);
316
317 }
◆ em_xtobs
| std::vector<xTob> Decoder::Slice::em_xtobs |
◆ tau_xtobs
| std::vector<xTob> Decoder::Slice::tau_xtobs |
◆ tobs
| std::vector<Tob> Decoder::Slice::tobs |
The documentation for this struct was generated from the following file: