-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdaq_device_gauss.h
60 lines (33 loc) · 1.1 KB
/
daq_device_gauss.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
#ifndef __DAQ_DEVICE_PLUGINEXAMPLE__
#define __DAQ_DEVICE_PLUGINEXAMPLE__
#include <daq_device.h>
#include <pulserTriggerHandler.h>
#include <iostream>
// this is part of the example how to build a plugin.
// It consists of a (silly) daq_device class (which creates a
// packet of type ID4EVT where channel i has the value i), and
// the actual "plugin" part, a plugabble class called
// gauss_plugin, which inherits from RCDAQPlugin.
// Also note that the plugin class can support more than one
// daq_device (here we have only one).
class simpleRandom;
class daq_device_gauss : public daq_device {
public:
daq_device_gauss (const int eventtype
, const int subeventid
, const int trigger_enabled=0);
~daq_device_gauss();
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:
subevtdata_ptr sevt;
float _mean;
float _sigma;
pulserTriggerHandler *th;
simpleRandom *R;
};
#endif