![]() |
Belle II Software
release-08-02-05
|
Class to represent the GRL Neuro. More...
#include <GRLNeuro.h>

Classes | |
| struct | Parameters |
| Struct to keep neurotrigger parameters. More... | |
Public Member Functions | |
| GRLNeuro () | |
| Default constructor. | |
| virtual | ~GRLNeuro () |
| Default destructor. | |
| void | initialize (const Parameters &p) |
| Set parameters and get some network independent parameters. | |
| GRLMLP & | operator[] (unsigned index) |
| Set parameters and get some network independent parameters. More... | |
| const GRLMLP & | operator[] (unsigned index) const |
| return const reference to a neural network | |
| unsigned | nSectors () const |
| return number of neural networks | |
| float | relu (float x) |
| ReLu activation function. | |
| float | float_to_fixed (float num, int m, int n) |
| change the percision of number, m = number of integer bits, n = number of decimal | |
| float | mysigmiod (float num) |
| discrete sigmoid activation function (1024 bins) | |
| void | save (const std::string &filename, const std::string &arrayname="MLPs") |
| Save MLPs to file. More... | |
| bool | load (unsigned isector, const std::string &wfilename, const std::string &bfilename) |
| Load MLPs from file. More... | |
| float | runMLP (unsigned isector, const std::vector< float > &input) |
| Run an expert MLP. More... | |
Private Attributes | |
| std::vector< GRLMLP > | m_MLPs = {} |
| List of networks. | |
Class to represent the GRL Neuro.
The Neurotrigger consists of one or several Multi Layer Perceptrons. The input values are calculated from ECLTRG cluster and a 2D track estimate. The output is a scaled estimate of the judgement.
Definition at line 35 of file GRLNeuro.h.
| bool load | ( | unsigned | isector, |
| const std::string & | wfilename, | ||
| const std::string & | bfilename | ||
| ) |
Load MLPs from file.
| filename | name of the TFile to read from |
| arrayname | name of the TObjArray holding the MLPs in the file |
Definition at line 154 of file GRLNeuro.cc.
|
inline |
Set parameters and get some network independent parameters.
return reference to a neural network
Definition at line 82 of file GRLNeuro.h.
| float runMLP | ( | unsigned | isector, |
| const std::vector< float > & | input | ||
| ) |
Run an expert MLP.
| isector | index of the MLP |
| input | vector of input values |
Definition at line 87 of file GRLNeuro.cc.
| void save | ( | const std::string & | filename, |
| const std::string & | arrayname = "MLPs" |
||
| ) |
Save MLPs to file.
| filename | name of the TFile to write to |
| arrayname | name of the TObjArray holding the MLPs in the file |