forked from sPHENIX-Collaboration/online_distribution
/
packet_hbd_fpga.h
54 lines (32 loc) · 1.12 KB
/
packet_hbd_fpga.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef __PACKET_hbd_fpga_H__
#define __PACKET_hbd_fpga_H__
#include "packet_w124.h"
/**
This is the packet which deals with data in hbd_fpga format.
It inherits from Packet\_w4 because the data are 32bit entities.
*/
#ifndef __CINT__
class WINDOWSEXPORT Packet_hbd_fpga : public Packet_w4{
#else
class Packet_hbd_fpga : public Packet_w4 {
#endif
public:
Packet_hbd_fpga(PACKET_ptr);
/** with the "what" parameter you can decide which aspect of
the data is made available. This class is one of those which have
several different "kinds" of data; we use this to bring up the AMU
cell information and all the misc. items in the FEM headers and
trailers.
*/
virtual int iValue(const int channel,const char *what);
virtual int iValue(const int channel,const int y);
virtual void dump ( OSTREAM& );
int setInternalParameter ( const int ns, const int x, const char *what = "")
{ return setNumSamples(ns);};
protected:
int setNumSamples(const int ns) { HBD_NSAMPLES = ns; return 0; }
virtual int *decode (int *);
int nr_modules;
int HBD_NSAMPLES;
};
#endif /* __PACKET_hbd_fpga_H__ */