12#include <trg/cdc/dataobjects/CDCTriggerMLP.h>
50 for (
auto line : format) {
59 if (name == line.name) {
73 void addB2FormatLine(
int start,
int end,
int offset,
const std::string& name,
const std::string& description)
80 b.description = description;
86 if (filename.size() <= 255) {
91 void loadMLPs(
const std::string& filename,
const std::string& arrayname)
93 TFile datafile(filename.c_str(),
"READ");
94 TObjArray* MLPs = (TObjArray*)datafile.Get(arrayname.c_str());
100 for (
int isector = 0; isector < MLPs->GetEntriesFast(); ++isector) {
102 if (expert)
m_MLPs.push_back(*expert);
111 if (notes.size() <= 255) {
123 if (notes.size() <= 255) {
130 if (version.size() <= 255) {
137 if (notes.size() <= 255) {
Class to keep all parameters of an expert MLP for the neuro trigger.
The payload class for all CDC Neurotrigger information.
std::vector< CDCTriggerMLP > getMLPs() const
return loaded CDCTriggerMPL objects
std::vector< CDCTriggerMLP > m_MLPs
weights of expert networks
CDCTriggerNeuroConfig()
constructor
bool m_useETF
switch wether the ETF is used or the first priority time of the TSF is used during preprocessing
std::string m_NNTFirmwareComment
Short comment on Firmware.
void setB2Format(const std::vector< B2FormatLine > &format)
function to directly set b2link format
void setNNTFirmwareVersionID(const std::string &version)
set the firmware version id
std::string m_NNNotes
short field for notes
std::string m_NNName
Used neurotrigger filename.
void setNNName(const std::string &filename)
set name of neural network version
void setPPNotes(const std::string ¬es)
add some notes about the preprocessing
std::string getPPNotes() const
return notes on preprocessing
void setNNTFirmwareComment(const std::string ¬es)
add a comment to the firmware version
B2FormatLine getB2FormatLine(const std::string &name) const
function to return right line of b2link format
std::string getNNTFirmwareVersionID() const
return firmware version
std::string getNNNotes() const
return neural network notes
void setNNNotes(const std::string ¬es)
add some notes to the verison of MLPS
std::string getNNName() const
return neural network name
virtual ~CDCTriggerNeuroConfig()
destructor
std::vector< B2FormatLine > m_B2Format
B2Format.
void setUseETF(bool b)
set bool wether ETF is used or not
std::vector< B2FormatLine > getB2Format() const
return b2link format
void loadMLPs(const std::string &filename, const std::string &arrayname)
load MLP objects from file
std::string getNNTFirmwareComment() const
returncomment on firmware version
bool getUseETF() const
return bool wether ETF is used or not
void addB2FormatLine(int start, int end, int offset, const std::string &name, const std::string &description)
function to add line to b2link format, overloaded
void addB2FormatLine(const B2FormatLine &line)
function to add line to b2link format, overloaded
std::string m_NNTFirmwareVersionID
Firmware Version ID.
std::string m_PPNotes
short field for notes
ClassDef(CDCTriggerNeuroConfig, 3)
ClassDef, must be the last term before the closing {}.
Abstract base class for different kinds of events.