forked from sPHENIX-Collaboration/drs4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
daq_device_drs.h
75 lines (47 loc) · 1.21 KB
/
daq_device_drs.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef __DAQ_DEVICE_TSPMPROTO__
#define __DAQ_DEVICE_TSPMPROTO__
#include <daq_device.h>
#include <stdio.h>
#include <drsTriggerHandler.h>
class DRS;
class DRSBoard;
class daq_device_drs: public daq_device {
public:
daq_device_drs(const int eventtype
, const int subeventid
, const int serialnumber = 0
, const int trigger = 0x21
, const float triggerthreshold = -50
, const int slope = 0
, const int delay = 0
, const int speed = 0
, const int start = 0
, const int nch = 0
, const int baseline = 0);
~daq_device_drs();
void identify(std::ostream& os = std::cout) const;
int max_length(const int etype) const;
// functions to do the work
int put_data(const int etype, int * adr, const int length);
int init();
int rearm( const int etype);
protected:
double getGS() const;
double getActualGS() const;
subevtdata_ptr sevt;
int _broken;
int _serialnumber;
int _trigger;
int _trigger_handler;
double _tthreshold;
int _slope;
int _delay;
int _speed;
int _start; // this is the first channel to readout
int _nch; // this how many channels to read out
int _baseline;
static DRS *_drs;
DRSBoard *b;
drsTriggerHandler *_th;
};
#endif