The payload class for all CDC Neurotrigger information.
More...
#include <CDCTriggerNeuroConfig.h>
The payload class for all CDC Neurotrigger information.
struct to hold a line of information of b2link format
Definition at line 26 of file CDCTriggerNeuroConfig.h.
◆ CDCTriggerNeuroConfig()
◆ ~CDCTriggerNeuroConfig()
◆ addB2FormatLine() [1/2]
function to add line to b2link format, overloaded
Definition at line 68 of file CDCTriggerNeuroConfig.h.
69 {
70 m_B2Format.push_back(line);
71 }
◆ addB2FormatLine() [2/2]
void addB2FormatLine |
( |
int | start, |
|
|
int | end, |
|
|
int | offset, |
|
|
const std::string & | name, |
|
|
const std::string & | description ) |
|
inline |
function to add line to b2link format, overloaded
Definition at line 73 of file CDCTriggerNeuroConfig.h.
74 {
75 B2FormatLine b;
76 b.start = start;
77 b.end = end;
78 b.offset = offset;
79 b.name = name;
80 b.description = description;
81 addB2FormatLine(b);
82 }
◆ getB2Format()
◆ getB2FormatLine()
B2FormatLine getB2FormatLine |
( |
const std::string & | name | ) |
const |
|
inline |
function to return right line of b2link format
Definition at line 55 of file CDCTriggerNeuroConfig.h.
56 {
57 B2FormatLine ret;
58 for (auto line : m_B2Format) {
59 if (name == line.name) {
60 ret = line;
61 continue;
62 }
63 }
64 return ret;
65 }
◆ getMLPs()
◆ getNNName()
std::string getNNName |
( |
| ) |
const |
|
inline |
◆ getNNNotes()
std::string getNNNotes |
( |
| ) |
const |
|
inline |
◆ getNNTFirmwareComment()
std::string getNNTFirmwareComment |
( |
| ) |
const |
|
inline |
◆ getNNTFirmwareVersionID()
std::string getNNTFirmwareVersionID |
( |
| ) |
const |
|
inline |
◆ getPPNotes()
std::string getPPNotes |
( |
| ) |
const |
|
inline |
◆ getUseETF()
◆ loadMLPs()
void loadMLPs |
( |
const std::string & | filename, |
|
|
const std::string & | arrayname ) |
|
inline |
load MLP objects from file
Definition at line 91 of file CDCTriggerNeuroConfig.h.
92 {
93 TFile datafile(filename.c_str(), "READ");
94 TObjArray* MLPs = (TObjArray*)datafile.Get(arrayname.c_str());
95 if (!MLPs) {
96 datafile.Close();
97 return;
98 }
99 m_MLPs.clear();
100 for (int isector = 0; isector < MLPs->GetEntriesFast(); ++isector) {
101 CDCTriggerMLP* expert = dynamic_cast<CDCTriggerMLP*>(MLPs->At(isector));
102 if (expert) m_MLPs.push_back(*expert);
103 }
104 MLPs->Clear();
105 delete MLPs;
106 datafile.Close();
107 }
◆ setB2Format()
void setB2Format |
( |
const std::vector< B2FormatLine > & | format | ) |
|
|
inline |
function to directly set b2link format
Definition at line 48 of file CDCTriggerNeuroConfig.h.
49 {
50 for (auto line : format) {
51 addB2FormatLine(line);
52 }
53 }
◆ setNNName()
void setNNName |
( |
const std::string & | filename | ) |
|
|
inline |
set name of neural network version
Definition at line 84 of file CDCTriggerNeuroConfig.h.
85 {
86 if (filename.size() <= 255) {
87 m_NNName = filename;
88 }
89 }
◆ setNNNotes()
void setNNNotes |
( |
const std::string & | notes | ) |
|
|
inline |
add some notes to the version of MLPS
Definition at line 109 of file CDCTriggerNeuroConfig.h.
110 {
111 if (notes.size() <= 255) {
112 m_NNNotes = notes;
113 }
114 }
◆ setNNTFirmwareComment()
void setNNTFirmwareComment |
( |
const std::string & | notes | ) |
|
|
inline |
add a comment to the firmware version
Definition at line 135 of file CDCTriggerNeuroConfig.h.
136 {
137 if (notes.size() <= 255) {
138 m_NNTFirmwareComment = notes;
139 }
140 }
◆ setNNTFirmwareVersionID()
void setNNTFirmwareVersionID |
( |
const std::string & | version | ) |
|
|
inline |
set the firmware version id
Definition at line 128 of file CDCTriggerNeuroConfig.h.
129 {
130 if (version.size() <= 255) {
131 m_NNTFirmwareVersionID = version;
132 }
133 }
◆ setPPNotes()
void setPPNotes |
( |
const std::string & | notes | ) |
|
|
inline |
add some notes about the preprocessing
Definition at line 121 of file CDCTriggerNeuroConfig.h.
122 {
123 if (notes.size() <= 255) {
124 m_PPNotes = notes;
125 }
126 }
◆ setUseETF()
◆ m_B2Format
◆ m_MLPs
◆ m_NNName
◆ m_NNNotes
◆ m_NNTFirmwareComment
std::string m_NNTFirmwareComment |
|
private |
◆ m_NNTFirmwareVersionID
std::string m_NNTFirmwareVersionID |
|
private |
◆ m_PPNotes
◆ m_useETF
switch whether the ETF is used or the first priority time of the TSF is used during preprocessing
Definition at line 173 of file CDCTriggerNeuroConfig.h.
The documentation for this class was generated from the following file: