00001 #include "otsdaq-core/DataDecoders/DataTypes.h"
00002
00003 #include <iostream>
00004
00005 using namespace ots;
00006
00007
00008
00009 DataTypes::DataTypes(void)
00010 {}
00011
00012
00013 DataTypes::~DataTypes(void)
00014 {}
00015
00016
00017 bool DataTypes::isBCOHigh(uint32_t data)
00018 {
00019 int type = data&0x0f;
00020 int dataType = (data>>4)&0x0f;
00021 if(type==9 && dataType==2) return true;
00022 return false;
00023 }
00024
00025
00026 bool DataTypes::isBCOLow(uint32_t data)
00027 {
00028 int type = data&0x0f;
00029 int dataType = (data>>4)&0x0f;
00030 if(type==9 && dataType==1) return true;
00031 return false;
00032 }
00033
00034
00035 bool DataTypes::isTrigger(uint32_t data)
00036 {
00037 return false;
00038 }
00039
00040
00041 bool DataTypes::isFSSRData(uint32_t data)
00042 {
00043 int type = data&0x0f;
00044 if(type==1) return true;
00045 return false;
00046 }
00047
00048
00049 bool DataTypes::isPSI46Data(uint32_t data)
00050 {
00051 return false;
00052 }
00053