otsdaq  v1_01_03
 All Classes Namespaces Functions
DataTypes.cc
1 #include "otsdaq-core/DataDecoders/DataTypes.h"
2 
3 #include <iostream>
4 
5 using namespace ots;
6 
7 
8 //========================================================================================================================
9 DataTypes::DataTypes(void)
10 {}
11 
12 //========================================================================================================================
13 DataTypes::~DataTypes(void)
14 {}
15 
16 //========================================================================================================================
17 bool DataTypes::isBCOHigh(uint32_t data)
18 {
19  int type = data&0x0f;
20  int dataType = (data>>4)&0x0f;
21  if(type==9 && dataType==2) return true;
22  return false;
23 }
24 
25 //========================================================================================================================
26 bool DataTypes::isBCOLow(uint32_t data)
27 {
28  int type = data&0x0f;
29  int dataType = (data>>4)&0x0f;
30  if(type==9 && dataType==1) return true;
31  return false;
32 }
33 
34 //========================================================================================================================
35 bool DataTypes::isTrigger(uint32_t data)
36 {
37  return false;
38 }
39 
40 //========================================================================================================================
41 bool DataTypes::isFSSRData(uint32_t data)
42 {
43  int type = data&0x0f;
44  if(type==1) return true;
45  return false;
46 }
47 
48 //========================================================================================================================
49 bool DataTypes::isPSI46Data(uint32_t data)
50 {
51  return false;
52 }
53