FACT++  1.0
void FTM::Header::print ( std::ostream &  out) const

Definition at line 11 of file HeadersFTM.cc.

References fBoardId, fDataSize, fFirmwareId, fState, fTimeStamp, fTriggerCounter, fType, FTM::kDynamicData, FTM::kErrorList, FTM::kFtmCalib, FTM::kFtmConfig, FTM::kFtmIdle, FTM::kFtmLocked, FTM::kFtmRunning, FTM::kFtmStates, FTM::kFtuList, FTM::kHeader, FTM::kRegister, and FTM::kStaticData.

Referenced by FTM::operator<<().

12 {
13  out << "State=" << std::dec << (fState&kFtmStates);
14  switch (fState&kFtmStates)
15  {
16  case kFtmIdle: out << " [idle]"; break;
17  case kFtmConfig: out << " [config]"; break;
18  case kFtmRunning: out << " [running]"; break;
19  case kFtmCalib: out << " [calib]"; break;
20  }
21 
22  out << " Type=" << fType;
23  switch (fType)
24  {
25  case kHeader: out << " [header]"; break;
26  case kStaticData: out << " [static]"; break;
27  case kDynamicData: out << " [dynamic]"; break;
28  case kFtuList: out << " [ftulist]"; break;
29  case kErrorList: out << " [errorlist]"; break;
30  case kRegister: out << " [register]"; break;
31  }
32 
33  out << " (len=" << fDataSize << ")";
34  out << " Id=0x" << std::hex << fBoardId;
35  out << " FW=" << fFirmwareId;
36  out << " TriggerCounter=" << std::dec << fTriggerCounter;
37  out << " TimeStamp=" << fTimeStamp;
38  if (fState&kFtmLocked)
39  out << " [locked]";
40  else
41  out << " [unlocked]";
42  out << std::endl;
43 }
Dynamic data (rates)
Definition: HeadersFTM.h:90
uint16_t fFirmwareId
Version number.
Definition: HeadersFTM.h:111
Static (configuration) data.
Definition: HeadersFTM.h:89
FTM and FTUs are being reconfigured.
Definition: HeadersFTM.h:22
uint16_t fDataSize
Size in words to be received after the header (incl end delim.)
Definition: HeadersFTM.h:108
uint16_t fState
State of the FTM central state machine.
Definition: HeadersFTM.h:109
uint32_t fTriggerCounter
FTM internal counter of all trigger decision independant of trigger-line enable/disable (reset: start...
Definition: HeadersFTM.h:112
uint16_t fType
Type of the data to be received after the header.
Definition: HeadersFTM.h:107
Local extension to identify a header in fCounter.
Definition: HeadersFTM.h:88
FTU list (answer of ping)
Definition: HeadersFTM.h:91
A requested register value.
Definition: HeadersFTM.h:93
Trigger output disabled, configuration possible.
Definition: HeadersFTM.h:21
Trigger output enabled, configuration ignored.
Definition: HeadersFTM.h:23
uint64_t fBoardId
FPGA device DNA (unique chip id)
Definition: HeadersFTM.h:110
uint64_t fTimeStamp
Internal counter (micro-seconds, reset: start/stop run)
Definition: HeadersFTM.h:113
Error list (error when FTU communication failed)
Definition: HeadersFTM.h:92

+ Here is the caller graph for this function: