Belle II Software  release-05-02-19
RawCOPPERFormat_latest.h
1 //+
2 // File : RawCOPPERFormat_latest.h
3 // Description : Module to handle raw data from COPPER
4 //
5 // Author : Satoru Yamada, IPNS, KEK
6 // Date : 2 - Aug - 2013
7 //-
8 
9 #ifndef RAWCOPPERFORMAT_LATEST_H
10 #define RAWCOPPERFORMAT_LATEST_H
11 
12 // Includes
13 #include <rawdata/dataobjects/RawCOPPERFormat.h>
14 #include <rawdata/dataobjects/RawHeader_latest.h>
15 #include <rawdata/dataobjects/RawTrailer_latest.h>
16 #include <rawdata/CRCCalculator.h>
17 /* #include <framework/datastore/DataStore.h> */
18 /* #include <TObject.h> */
19 
20 //#define USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
21 
22 namespace Belle2 {
35  public:
38 
40  //RawCOPPERFormat_latest(int* bufin, int nwords);
42  virtual ~RawCOPPERFormat_latest();
43 
44  //
45  // Get position of or pointer to data
46  //
48  // POINTER TO "DETECTOR BUFFER"
49  //( after removing "B2link headers" from "FINESSE buffer". THIS IS THE RAW DATA FROM A DETECTOR
51 
52 
54  /* cppcheck-suppress missingOverride */
55  int Get1stDetectorNwords(int n) OVERRIDE_CPP17 FINAL_CPP17;
56 
58  /* cppcheck-suppress missingOverride */
59  int Get2ndDetectorNwords(int n) OVERRIDE_CPP17 FINAL_CPP17;
60 
62  /* cppcheck-suppress missingOverride */
63  int Get3rdDetectorNwords(int n) OVERRIDE_CPP17 FINAL_CPP17;
64 
66  /* cppcheck-suppress missingOverride */
67  int Get4thDetectorNwords(int n) OVERRIDE_CPP17 FINAL_CPP17;
68 
70  /* cppcheck-suppress missingOverride */
71  int* Get1stDetectorBuffer(int n) OVERRIDE_CPP17 FINAL_CPP17;
72 
74  /* cppcheck-suppress missingOverride */
75  int* Get2ndDetectorBuffer(int n) OVERRIDE_CPP17 FINAL_CPP17;
76 
78  /* cppcheck-suppress missingOverride */
79  int* Get3rdDetectorBuffer(int n) OVERRIDE_CPP17 FINAL_CPP17;
80 
82  /* cppcheck-suppress missingOverride */
83  int* Get4thDetectorBuffer(int n) OVERRIDE_CPP17 FINAL_CPP17;
84 
86 
88  int* GetRawTrlBufPtr(int n) OVERRIDE_CPP17;
89 
90  //
91  // Get information from "RawCOPPERFormat_latest header" attached by DAQ software
92  //
93 
94  int GetExpNo(int n) OVERRIDE_CPP17;
95 
96  unsigned int GetExpRunSubrun(int n) OVERRIDE_CPP17;
97 
98  int GetRunNo(int n) OVERRIDE_CPP17;
99 
100  int GetSubRunNo(int n) OVERRIDE_CPP17;
101 
102  unsigned int GetEveNo(int n) OVERRIDE_CPP17;
103 
104  int GetDataType(int n) OVERRIDE_CPP17;
105 
106  int GetTruncMask(int n) OVERRIDE_CPP17;
107 
109  unsigned int GetErrorBitFlag(int n) OVERRIDE_CPP17;
110 
112  void AddErrorBitFlag(int n, unsigned int error_bit_flag) OVERRIDE_CPP17;
113 
115  int GetPacketCRCError(int n) OVERRIDE_CPP17;
116 
118  int GetEventCRCError(int n) OVERRIDE_CPP17;
119 
121  unsigned int GetNodeID(int n) OVERRIDE_CPP17;
122 
123  //
124  // Get information from 13words "COPPER header" attached by COPPER board
125  //
126 
128  virtual int GetNumFINESSEBlock(int n) OVERRIDE_CPP17;
129 
131  /* cppcheck-suppress missingOverride */
132  int Get1stFINESSENwords(int n) OVERRIDE_CPP17 FINAL_CPP17;
133 
135  /* cppcheck-suppress missingOverride */
136  int Get2ndFINESSENwords(int n) OVERRIDE_CPP17 FINAL_CPP17;
137 
139  /* cppcheck-suppress missingOverride */
140  int Get3rdFINESSENwords(int n) OVERRIDE_CPP17 FINAL_CPP17;
141 
143  /* cppcheck-suppress missingOverride */
144  int Get4thFINESSENwords(int n) OVERRIDE_CPP17 FINAL_CPP17;
145 
147  /* cppcheck-suppress missingOverride */
148  int GetOffset1stFINESSE(int n) OVERRIDE_CPP17 FINAL_CPP17;
149 
151  /* cppcheck-suppress missingOverride */
152  int GetOffset2ndFINESSE(int n) OVERRIDE_CPP17 FINAL_CPP17;
153 
155  /* cppcheck-suppress missingOverride */
156  int GetOffset3rdFINESSE(int n) OVERRIDE_CPP17 FINAL_CPP17;
157 
159  /* cppcheck-suppress missingOverride */
160  int GetOffset4thFINESSE(int n) OVERRIDE_CPP17 FINAL_CPP17;
161 
162  //
163  // Get information from "B2link(attached by FEE and HLSB) header"
164  //
166  // virtual int* GetFTSW2Words(int n);
167 
168 #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
169  void CheckB2LFEEHeaderVersion(int n) OVERRIDE_CPP17;
171 #endif
172 
174  unsigned int GetTTCtimeTRGType(int n) OVERRIDE_CPP17;
175 
177  unsigned int GetTTUtime(int n) OVERRIDE_CPP17;
178 
179  /* //! calc COPPER driver's checksum value */
180  /* virtual unsigned int CalcDriverChkSum(int n) = 0; */
181 
182 
184  int GetTTCtime(int n) OVERRIDE_CPP17;
185 
187  int GetTRGType(int n) OVERRIDE_CPP17;
188 
190  void GetTTTimeVal(int n, struct timeval* tv) OVERRIDE_CPP17;
191 
193  /* cppcheck-suppress missingOverride */
194  int GetMaxNumOfCh(int n) OVERRIDE_CPP17;
195 
197  /* cppcheck-suppress missingOverride */
198  int* GetFINESSEBuffer(int n, int finesse_num) OVERRIDE_CPP17;
199 
201  /* cppcheck-suppress missingOverride */
202  int GetFINESSENwords(int n, int finesse_num) OVERRIDE_CPP17;
203 
205  /* cppcheck-suppress missingOverride */
206  void CompareHeaderValue(int n, const unsigned int (&input_val)[MAX_PCIE40_CH] ,
207  std::vector<std::vector< unsigned int>>& summary_table) OVERRIDE_CPP17;
208 
210  enum {
211  DATA_FORMAT_VERSION = 4
212  };
213 
214  //
215  // size of "COPPER front header" and "COPPER trailer" (Common for pre/post format)
216  //
217  enum {
218  SIZE_COPPER_DRIVER_HEADER = 0,
219  SIZE_COPPER_DRIVER_TRAILER = 0
220  };
221 
222  // Data Format : "COPPER header"
223  enum {
224  SIZE_COPPER_HEADER = 0
225  };
226 
227  // Data Format : "COPPER Trailer"
228  enum {
229  SIZE_COPPER_TRAILER = 0
230  };
231 
234 
237 
238 
239  protected :
241  // ClassDefOverride(RawCOPPERFormat_latest, 2);
242  };
243 
244 
245 
246 
248  {
249  int pos_nwords;
250  if (n == (m_num_events * m_num_nodes) - 1) {
251  pos_nwords = m_nwords - tmp_trailer.GetTrlNwords();
252  } else {
253  pos_nwords = GetBufferPos(n + 1) - tmp_trailer.GetTrlNwords();
254  }
255  return &(m_buffer[ pos_nwords ]);
256  }
257 
259  {
261  return tmp_header.GetExpNo();
262  }
263 
264 
265  inline unsigned int RawCOPPERFormat_latest::GetExpRunSubrun(int n)
266  {
268  return tmp_header.GetExpRunSubrun();
269  }
270 
271 
273  {
275  return tmp_header.GetRunNo();
276  }
277 
278 
280  {
282  return tmp_header.GetSubRunNo();
283  }
284 
285  inline unsigned int RawCOPPERFormat_latest::GetEveNo(int n)
286  {
288  return tmp_header.GetEveNo();
289  }
290 
291 
292  inline unsigned int RawCOPPERFormat_latest::GetNodeID(int n)
293  {
295  return tmp_header.GetNodeID();
296  }
297 
298 
300  {
302  return tmp_header.GetDataType();
303  }
304 
306  {
308  return tmp_header.GetTruncMask();
309  }
310 
311  inline unsigned int RawCOPPERFormat_latest::GetErrorBitFlag(int n)
312  {
314  return tmp_header.GetErrorBitFlag();
315  }
316 
317  inline void RawCOPPERFormat_latest::AddErrorBitFlag(int n, unsigned int error_bit_flag)
318  {
320  tmp_header.AddErrorBitFlag(error_bit_flag);
321  return;
322  }
323 
325  {
327  return tmp_header.GetPacketCRCError();
328  }
329 
331  {
333  return tmp_header.GetEventCRCError();
334  }
335 
336  inline unsigned int RawCOPPERFormat_latest::GetTTCtimeTRGType(int n)
337  {
339  return tmp_header.GetTTCtimeTRGType();
340  }
341 
342  inline unsigned int RawCOPPERFormat_latest::GetTTUtime(int n)
343  {
345  return tmp_header.GetTTUtime();
346  }
347 
349  {
351  return tmp_header.GetTTCtime();
352  }
353 
355  {
357  return tmp_header.GetTRGType();
358  }
359 
360  inline void RawCOPPERFormat_latest::GetTTTimeVal(int n, struct timeval* tv)
361  {
364  return ;
365  }
366 
368  {
369  return MAX_PCIE40_CH;
370  }
371 
372  inline int RawCOPPERFormat_latest::GetFINESSENwords(int n, int finesse_num)
373  {
374 
375  // check if finesse_num is in a range
376  if (finesse_num < 0 || finesse_num >= MAX_PCIE40_CH) {
377  char err_buf[500];
378  sprintf(err_buf, "[FATAL] Invalid finesse # (=%d): %s %s %d\n", finesse_num,
379  __FILE__, __PRETTY_FUNCTION__, __LINE__);
380  printf("[DEBUG] %s\n", err_buf);
381  B2FATAL(err_buf);
382  return 0;
383  }
384 
385  int pos_nwords = GetBufferPos(n) + (tmp_header.POS_CH_POS_TABLE + finesse_num);
386  int nwords = 0;
387 
388  if (finesse_num == (MAX_PCIE40_CH - 1)) {
389  nwords = GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - m_buffer[ pos_nwords ];
390  } else {
391  nwords = m_buffer[ pos_nwords + 1 ] - m_buffer[ pos_nwords ];
392  }
393 
394  if (nwords < 0 || nwords > 1e6) {
395  char err_buf[500];
396  sprintf(err_buf, "[FATAL] ERROR_EVENT : # of words is strange. %d (ch=%d) : eve 0x%x exp %d run %d sub %d\n %s %s %d\n",
397  nwords, finesse_num,
398  GetEveNo(n), GetExpNo(n), GetRunNo(n), GetSubRunNo(n),
399  __FILE__, __PRETTY_FUNCTION__, __LINE__);
400  printf("[DEBUG] %s\n", err_buf);
401  B2FATAL(err_buf);
402  }
403  return nwords;
404  }
405 
406  inline int* RawCOPPERFormat_latest::GetFINESSEBuffer(int n, int finesse_num)
407  {
408  if (finesse_num >= MAX_PCIE40_CH || finesse_num < 0) {
409  char err_buf[500];
410  sprintf(err_buf, "[FATAL] Invalid finesse # : %s %s %d\n",
411  __FILE__, __PRETTY_FUNCTION__, __LINE__);
412  printf("[DEBUG] %s\n", err_buf);
413  B2FATAL(err_buf);
414  return NULL;
415  }
416 
417  if (GetFINESSENwords(n, finesse_num) > 0) {
418  int cur_pos = GetBufferPos(n)
419  + m_buffer[ GetBufferPos(n) + (tmp_header.POS_CH_POS_TABLE + finesse_num) ];
420 
421  if (m_nwords <= 0 || cur_pos >= m_nwords) {
422  char err_buf[500];
423  sprintf(err_buf, "[FATAL] The position of the buffer( block %d, ch %d) is out of bounds (m_nwords = %d) : %s %s %d\n",
424  n, finesse_num, m_nwords,
425  __FILE__, __PRETTY_FUNCTION__, __LINE__);
426  printf("[DEBUG] %s\n", err_buf);
427  B2FATAL(err_buf);
428  return NULL;
429  }
430  return (m_buffer + cur_pos);
431  }
432  return NULL;
433  }
434 
436 }
437 #endif
Belle2::RawCOPPERFormat_latest::GetTRGType
int GetTRGType(int n) OVERRIDE_CPP17
Get trgtype.
Definition: RawCOPPERFormat_latest.h:354
Belle2::RawHeader_latest::GetPacketCRCError
int GetPacketCRCError()
Get Packet CRC error flag.
Definition: RawHeader_latest.h:391
Belle2::RawCOPPERFormat_latest::GetOffset1stFINESSE
int GetOffset1stFINESSE(int n) OVERRIDE_CPP17 FINAL_CPP17
get # of offset words for FINESSE slot A buffer position
Definition: RawCOPPERFormat_latest.cc:213
Belle2::RawCOPPERFormat_latest::GetOffset4thFINESSE
int GetOffset4thFINESSE(int n) OVERRIDE_CPP17 FINAL_CPP17
get # of offset words for FINESSE slot D buffer position
Definition: RawCOPPERFormat_latest.cc:245
Belle2::RawHeader_latest::GetDataType
int GetDataType()
get contents of header
Definition: RawHeader_latest.h:366
Belle2::RawCOPPERFormat_latest::Get1stDetectorNwords
int Get1stDetectorNwords(int n) OVERRIDE_CPP17 FINAL_CPP17
get Detector buffer length of slot A
Definition: RawCOPPERFormat_latest.cc:91
Belle2::RawCOPPERFormat_latest::GetEventCRCError
int GetEventCRCError(int n) OVERRIDE_CPP17
check CRC event Error
Definition: RawCOPPERFormat_latest.h:330
Belle2::RawHeader_latest::GetRunNo
int GetRunNo()
get contents of header
Definition: RawHeader_latest.h:334
Belle2::RawDataBlockFormat::m_nwords
int m_nwords
number of words of buffer
Definition: RawDataBlockFormat.h:89
Belle2::RawDataBlockFormat::m_buffer
int * m_buffer
Buffer.
Definition: RawDataBlockFormat.h:98
Belle2::RawDataBlockFormat::GetBufferPos
virtual int GetBufferPos(int n)
get position of data block in word
Definition: RawDataBlockFormat.cc:30
Belle2::RawCOPPERFormat_latest::GetOffset2ndFINESSE
int GetOffset2ndFINESSE(int n) OVERRIDE_CPP17 FINAL_CPP17
get # of offset words for FINESSE slot B buffer position
Definition: RawCOPPERFormat_latest.cc:224
Belle2::RawHeader_latest::GetExpNo
int GetExpNo()
get a run/exp number combined word
Definition: RawHeader_latest.h:326
Belle2::RawCOPPERFormat_latest::Get3rdFINESSENwords
int Get3rdFINESSENwords(int n) OVERRIDE_CPP17 FINAL_CPP17
get data size of FINESSE slot C buffer
Definition: RawCOPPERFormat_latest.cc:152
Belle2::RawCOPPERFormat_latest::GetRawTrlBufPtr
int * GetRawTrlBufPtr(int n) OVERRIDE_CPP17
get buffer pointer of rawcopper trailer
Definition: RawCOPPERFormat_latest.h:247
Belle2::RawHeader_latest::GetTRGType
int GetTRGType()
get TRGType
Definition: RawHeader_latest.h:430
Belle2::RawCOPPERFormat_latest::Get1stFINESSENwords
int Get1stFINESSENwords(int n) OVERRIDE_CPP17 FINAL_CPP17
get data size of FINESSE slot A buffer
Definition: RawCOPPERFormat_latest.cc:132
Belle2::RawCOPPERFormat_latest::Get4thDetectorNwords
int Get4thDetectorNwords(int n) OVERRIDE_CPP17 FINAL_CPP17
get Detector buffer length of slot D
Definition: RawCOPPERFormat_latest.cc:121
Belle2::RawCOPPERFormat_latest::GetTTTimeVal
void GetTTTimeVal(int n, struct timeval *tv) OVERRIDE_CPP17
Get timeval.
Definition: RawCOPPERFormat_latest.h:360
Belle2::RawDataBlockFormat::GetBuffer
virtual int * GetBuffer(int n)
get nth buffer pointer
Definition: RawDataBlockFormat.cc:124
Belle2::RawHeader_latest::GetTTCtime
int GetTTCtime()
get contents of header
Definition: RawHeader_latest.h:424
Belle2::RawCOPPERFormat_latest::Get1stDetectorBuffer
int * Get1stDetectorBuffer(int n) OVERRIDE_CPP17 FINAL_CPP17
get Detector buffer of slot A
Definition: RawCOPPERFormat_latest.cc:173
Belle2::RawCOPPERFormat_latest::GetMaxNumOfCh
int GetMaxNumOfCh(int n) OVERRIDE_CPP17
Get the max number of channels in a readout board.
Definition: RawCOPPERFormat_latest.h:367
Belle2::RawHeader_latest::GetTTTimeVal
void GetTTTimeVal(struct timeval *tv)
get contents of header
Definition: RawHeader_latest.h:442
Belle2::RawCOPPERFormat_latest::GetNodeID
unsigned int GetNodeID(int n) OVERRIDE_CPP17
get node-ID from data
Definition: RawCOPPERFormat_latest.h:292
Belle2::RawCOPPERFormat_latest::Get3rdDetectorBuffer
int * Get3rdDetectorBuffer(int n) OVERRIDE_CPP17 FINAL_CPP17
get Detector Buffer of slot C
Definition: RawCOPPERFormat_latest.cc:193
Belle2::RawHeader_latest::GetTTCtimeTRGType
unsigned int GetTTCtimeTRGType()
get contents of header
Definition: RawHeader_latest.h:418
Belle2::RawCOPPERFormat_latest::Get2ndDetectorNwords
int Get2ndDetectorNwords(int n) OVERRIDE_CPP17 FINAL_CPP17
get Detector buffer length of slot B
Definition: RawCOPPERFormat_latest.cc:101
Belle2::RawCOPPERFormat_latest::RawCOPPERFormat_latest
RawCOPPERFormat_latest()
Default constructor.
Definition: RawCOPPERFormat_latest.cc:21
Belle2::RawCOPPERFormat_latest::GetFINESSEBuffer
int * GetFINESSEBuffer(int n, int finesse_num) OVERRIDE_CPP17
Get a pointer to a FINESSE buffer.
Definition: RawCOPPERFormat_latest.h:406
Belle2::RawHeader_latest
The Raw Header class ver.1 ( the latest version since May, 2014 ) This class defines the format of th...
Definition: RawHeader_latest.h:32
Belle2::RawDataBlockFormat::m_num_nodes
int m_num_nodes
number of nodes in this object
Definition: RawDataBlockFormat.h:92
Belle2::RawHeader_latest::GetTruncMask
int GetTruncMask()
get contents of header
Definition: RawHeader_latest.h:372
Belle2::RawTrailer_latest::GetTrlNwords
int GetTrlNwords()
Set magic word.
Definition: RawTrailer_latest.h:132
Belle2::RawHeader_latest::GetSubRunNo
int GetSubRunNo()
get run # (14bit)
Definition: RawHeader_latest.h:341
Belle2::RawCOPPERFormat_latest::tmp_header
RawHeader_latest tmp_header
header ( not recorded )
Definition: RawCOPPERFormat_latest.h:233
Belle2::RawCOPPERFormat_latest::~RawCOPPERFormat_latest
virtual ~RawCOPPERFormat_latest()
Constructor using existing pointer to raw data buffer.
Definition: RawCOPPERFormat_latest.cc:25
Belle2::RawCOPPERFormat_latest::GetOffset3rdFINESSE
int GetOffset3rdFINESSE(int n) OVERRIDE_CPP17 FINAL_CPP17
get # of offset words for FINESSE slot C buffer position
Definition: RawCOPPERFormat_latest.cc:235
Belle2::RawDataBlockFormat::m_num_events
int m_num_events
number of events in this object
Definition: RawDataBlockFormat.h:95
Belle2::RawCOPPERFormat_latest::Get4thDetectorBuffer
int * Get4thDetectorBuffer(int n) OVERRIDE_CPP17 FINAL_CPP17
get Detector Buffer of slot D
Definition: RawCOPPERFormat_latest.cc:203
Belle2::RawCOPPERFormat_latest::GetTruncMask
int GetTruncMask(int n) OVERRIDE_CPP17
get contents of header
Definition: RawCOPPERFormat_latest.h:305
Belle2::RawCOPPERFormat_latest::GetFINESSENwords
int GetFINESSENwords(int n, int finesse_num) OVERRIDE_CPP17
Get the size of a finesse buffer.
Definition: RawCOPPERFormat_latest.h:372
Belle2::RawCOPPERFormat_latest::GetExpRunSubrun
unsigned int GetExpRunSubrun(int n) OVERRIDE_CPP17
get Experimental # from header
Definition: RawCOPPERFormat_latest.h:265
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::RawDataBlockFormat::GetBlockNwords
virtual int GetBlockNwords(int n)
get size of a data block
Definition: RawDataBlockFormat.cc:107
Belle2::RawCOPPERFormat_latest::Get2ndFINESSENwords
int Get2ndFINESSENwords(int n) OVERRIDE_CPP17 FINAL_CPP17
get data size of FINESSE slot B buffer
Definition: RawCOPPERFormat_latest.cc:142
Belle2::RawCOPPERFormat_latest::tmp_trailer
RawTrailer_latest tmp_trailer
trailer ( not recorded )
Definition: RawCOPPERFormat_latest.h:236
Belle2::RawCOPPERFormat_latest::Get2ndDetectorBuffer
int * Get2ndDetectorBuffer(int n) OVERRIDE_CPP17 FINAL_CPP17
get Detector Buffer of slot B
Definition: RawCOPPERFormat_latest.cc:183
Belle2::RawCOPPERFormat_latest::GetTTCtimeTRGType
unsigned int GetTTCtimeTRGType(int n) OVERRIDE_CPP17
get b2l block from "FEE b2link header"
Definition: RawCOPPERFormat_latest.h:336
Belle2::RawHeader_latest::GetEveNo
unsigned int GetEveNo()
get restart #(8bit)
Definition: RawHeader_latest.h:354
Belle2::RawCOPPERFormat_latest
The Raw COPPER class ver.1 ( the latest version since May, 2014 ) This class stores data received by ...
Definition: RawCOPPERFormat_latest.h:34
Belle2::RawCOPPERFormat_latest::GetPacketCRCError
int GetPacketCRCError(int n) OVERRIDE_CPP17
check CRC packet Error
Definition: RawCOPPERFormat_latest.h:324
Belle2::RawCOPPERFormat_latest::GetExpNo
int GetExpNo(int n) OVERRIDE_CPP17
get Experimental # from header
Definition: RawCOPPERFormat_latest.h:258
Belle2::RawCOPPERFormat_latest::GetRunNo
int GetRunNo(int n) OVERRIDE_CPP17
Exp# (10bit) run# (14bit) restart # (8bit)
Definition: RawCOPPERFormat_latest.h:272
Belle2::RawHeader_latest::GetTTUtime
unsigned int GetTTUtime()
get contents of header
Definition: RawHeader_latest.h:436
Belle2::RawCOPPERFormat_latest::GetSubRunNo
int GetSubRunNo(int n) OVERRIDE_CPP17
get run # (14bit)
Definition: RawCOPPERFormat_latest.h:279
Belle2::RawCOPPERFormat_latest::GetTTCtime
int GetTTCtime(int n) OVERRIDE_CPP17
Get ctime.
Definition: RawCOPPERFormat_latest.h:348
Belle2::RawCOPPERFormat_latest::GetNumFINESSEBlock
virtual int GetNumFINESSEBlock(int n) OVERRIDE_CPP17
get # of FINNESEs which contains data
Definition: RawCOPPERFormat_latest.cc:29
Belle2::RawCOPPERFormat_latest::GetEveNo
unsigned int GetEveNo(int n) OVERRIDE_CPP17
get subrun #(8bit)
Definition: RawCOPPERFormat_latest.h:285
Belle2::RawHeader_latest::AddErrorBitFlag
void AddErrorBitFlag(unsigned int error_bit_flag)
Add Detected Error bitflag.
Definition: RawHeader_latest.h:384
Belle2::RawCOPPERFormat_latest::GetTTUtime
unsigned int GetTTUtime(int n) OVERRIDE_CPP17
Check if COPPER Magic words are correct.
Definition: RawCOPPERFormat_latest.h:342
Belle2::RawCOPPERFormat_latest::Get3rdDetectorNwords
int Get3rdDetectorNwords(int n) OVERRIDE_CPP17 FINAL_CPP17
get Detector buffer length of slot C
Definition: RawCOPPERFormat_latest.cc:111
Belle2::RawHeader_latest::SetBuffer
void SetBuffer(int *bufin)
set buffer
Definition: RawHeader_latest.h:47
Belle2::RawCOPPERFormat_latest::Get4thFINESSENwords
int Get4thFINESSENwords(int n) OVERRIDE_CPP17 FINAL_CPP17
get data size of FINESSE slot D buffer
Definition: RawCOPPERFormat_latest.cc:162
Belle2::RawCOPPERFormat_latest::AddErrorBitFlag
void AddErrorBitFlag(int n, unsigned int error_bit_flag) OVERRIDE_CPP17
Add Detected Error bitflag.
Definition: RawCOPPERFormat_latest.h:317
Belle2::RawCOPPERFormat_latest::GetErrorBitFlag
unsigned int GetErrorBitFlag(int n) OVERRIDE_CPP17
get contents of header
Definition: RawCOPPERFormat_latest.h:311
Belle2::RawHeader_latest::GetNodeID
unsigned int GetNodeID()
get contents of header
Definition: RawHeader_latest.h:360
Belle2::RawCOPPERFormat
The Raw COPPER class This class stores data received by COPPER via belle2linkt Data from all detector...
Definition: RawCOPPERFormat.h:53
Belle2::RawCOPPERFormat_latest::GetDataType
int GetDataType(int n) OVERRIDE_CPP17
get contents of header
Definition: RawCOPPERFormat_latest.h:299
Belle2::RawHeader_latest::GetErrorBitFlag
unsigned int GetErrorBitFlag()
get contents of header
Definition: RawHeader_latest.h:378
Belle2::RawHeader_latest::GetExpRunSubrun
unsigned int GetExpRunSubrun()
get contents of header
Definition: RawHeader_latest.h:347
Belle2::RawTrailer_latest
The Raw Trailer class ver.1 ( the latest version since May, 2014 ) This class defines the format of t...
Definition: RawTrailer_latest.h:34
Belle2::RawCOPPERFormat_latest::CompareHeaderValue
void CompareHeaderValue(int n, const unsigned int(&input_val)[MAX_PCIE40_CH], std::vector< std::vector< unsigned int >> &summary_table) OVERRIDE_CPP17
Check header value of all channels.
Definition: RawCOPPERFormat_latest.cc:255
Belle2::RawHeader_latest::GetEventCRCError
int GetEventCRCError()
Get Detected Error bitflag.
Definition: RawHeader_latest.h:401