-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcaen_manager.h
90 lines (55 loc) · 2.14 KB
/
caen_manager.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#ifndef __CAEN_MANAGER__
#define __CAEN_MANAGER__
#include <CAENDigitizerType.h>
class caen_manager {
public:
caen_manager( const int linknumber, const int node= 0);
~caen_manager();
int SetChannelDCOffset ( const unsigned int value);
int SetChannelDCOffset ( const unsigned int index, const unsigned int value);
int GetChannelDCOffset(const unsigned int channel) const;
int SetMaxNumEventsBLT ( const unsigned int i);
unsigned int GetMaxNumEventsBLT () const;
int SetExtTriggerInputMode ( const unsigned int i);
int GetExtTriggerInputMode () const;
int SetTriggerPolarity ( const int pol);
int SetTriggerPolarity ( const unsigned int channel, const int i);
int GetTriggerPolarity (const unsigned int channel) const;
int SetFastTriggerDigitizing(const int i);
int GetFastTriggerDigitizing() const;
int SetFastTriggerMode(const int i);
int GetFastTriggerMode() const;
int SetOutputSignalMode (const int i);
int GetOutputSignalMode () const;
int SetDRS4SamplingFrequency (const int i);
int GetDRS4SamplingFrequency () const;
int SetRecordLength (const int i);
unsigned int GetRecordLength () const;
int SetPostTriggerSize(const unsigned int i);
int GetPostTriggerSize() const;
int SetIOLevel(const int i);
int GetIOLevel() const;
int SetAcquisitionMode(const int i);
int GetAcquisitionMode() const;
int SetGroupEnableMask(const int i);
unsigned int GetGroupEnableMask() const;
int LoadDRS4CorrectionData(const int i);
// ? not available int GetDRS4CorrectionData()const;
int EnableDRS4Correction(const int i);
// not available int GetDRS4Correction() const;
int WriteRegister (const unsigned int adr, const unsigned int value);
int ReadRegister (const unsigned int adr);
void identify(std::ostream& os = std::cout) const;
int init();
int GetStatus() const { return _broken;};
int PrintCalibrationData(const int frequency, const int chip, std::ostream &os = std::cout);
protected:
int ClearConfigRegisterBit( const int bit);
int SetConfigRegisterBit( const int bit);
float getGS() const;
int _broken;
int handle;
int _linknumber;
int _node;
};
#endif