BmnRoot
Loading...
Searching...
No Matches
BmnTrigConfig.h
Go to the documentation of this file.
1#ifndef TRIGCONFIG_H
2#define TRIGCONFIG_H
3
5#include "TNamed.h"
6
7#include <string>
8#include <unordered_map>
9
10using std::string;
11using std::unordered_map;
12
17class BmnTrigConfig : public TNamed
18{
19 public:
21
22 unordered_map<string, BmnTrigChannelConfig>& TrigChannelConfig() { return trig_channel_config; }
23
24 uint32_t GetMatchWindow() { return match_window; }
25
26 void SetMatchWindow(uint32_t v) { match_window = v; }
27
28 uint32_t GetTrigDelay() { return trig_delay; }
29
30 void SetTrigDelay(uint32_t v) { trig_delay = v; }
31
32 uint32_t GetReadChannelMask() { return read_channel_mask; }
33
34 void SetReadChannelMask(uint32_t v) { read_channel_mask = v; }
35
36 uint32_t GetStartChannelMask() { return start_channel_mask; }
37
38 void SetStartChannelMask(uint32_t v) { start_channel_mask = v; }
39
40 uint32_t GetCalibCount() { return calib_count; }
41
42 void SetCalibCount(uint32_t v) { calib_count = v; }
43
44 bool GetCalibEn() { return calib_en; }
45
46 void SetCalibEn(bool v) { calib_en = v; }
47
48 private:
49 unordered_map<string, BmnTrigChannelConfig> trig_channel_config;
50 uint32_t match_window; // TRC match window [ns]
51 uint32_t trig_delay; // TRC trig delay [ns]
52 uint32_t read_channel_mask;
53 uint32_t start_channel_mask;
54 uint32_t calib_count;
55 bool calib_en;
56 // enum ChMask {
57 // ChMaskCalib = 1 << 16,
58 // ChMaskRandom = 1 << 17,
59 // ChMaskTimer = 1 << 18,
60 // ChMaskExt = 1 << 19,
61 // };
62 ClassDef(BmnTrigConfig, 4)
63};
64
65#endif /* TRIGCONFIG_H */
__m128 v
Definition P4_F32vec4.h:1
void SetTrigDelay(uint32_t v)
uint32_t GetReadChannelMask()
void SetReadChannelMask(uint32_t v)
void SetStartChannelMask(uint32_t v)
void SetCalibCount(uint32_t v)
unordered_map< string, BmnTrigChannelConfig > & TrigChannelConfig()
void SetCalibEn(bool v)
uint32_t GetTrigDelay()
void SetMatchWindow(uint32_t v)
uint32_t GetStartChannelMask()
uint32_t GetMatchWindow()
uint32_t GetCalibCount()