otsdaq  v1_01_04
 All Classes Namespaces Functions
PSI46DigData.h
1 #ifndef _ots_PSI46DigData_h
2 #define _ots_PSI46DigData_h
3 
4 #include "otsdaq-core/DataDecoders/DetectorDataBase.h"
5 #include <string>
6 #include <stdint.h>
7 
8 namespace ots
9 {
10 
12 {
13 public:
14  PSI46DigData(void);
15  virtual ~PSI46DigData(void);
16 
17  bool isPSI46Dig(uint32_t data);
18  PSI46DigData& decode(uint32_t data);
19 
20  //Getters
21  unsigned int getStibId (void);
22  unsigned int getChannelNumber(void);
23  unsigned int getChipId (void);
24  unsigned int getStripNumber (void);
25  unsigned int getBco (void);
26  unsigned int getAdc (void);
27  unsigned int getSensorStrip (void);
28 
29 protected:
30  unsigned char stibId_;
31  unsigned char channelNumber_;
32  unsigned char chipId_;
33  unsigned char stripNumber_;
34  unsigned char bco_;
35  unsigned char adc_;
36  unsigned char set_;
37 };
38 
39 }
40 
41 #endif