![]() |
Belle II Software
release-05-02-19
|
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. | |
| void | save (const std::string &filename, const std::string &arrayname="MLPs") |
| Save MLPs to file. More... | |
| bool | load (const std::string &filename, const std::string &arrayname="MLPs") |
| Load MLPs from file. More... | |
| void | setPrecision (const std::vector< unsigned > &precision) |
| Loads parameters from the geometry and precalculates some constants that will be needed. More... | |
| GRLMLP & | operator[] (unsigned index) |
| set the hit collection and event time to required and store the hit collection name More... | |
| const GRLMLP & | operator[] (unsigned index) const |
| return const reference to a neural network | |
| unsigned | nSectors () const |
| return number of neural networks | |
| void | addMLP (const GRLMLP &newMLP) |
| add an MLP to the list of networks | |
| std::vector< float > | runMLP (unsigned isector, const std::vector< float > &input) |
| Run an expert MLP. More... | |
| std::vector< float > | runMLPFix (unsigned isector, const std::vector< float > &input) |
| Run an expert MLP with fixed point arithmetic. | |
Private Attributes | |
| std::vector< GRLMLP > | m_MLPs = {} |
| List of networks. | |
| std::vector< unsigned > | m_precision |
| Fixed point precision in bit after radix point. More... | |
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 27 of file GRLNeuro.h.
| bool load | ( | const std::string & | filename, |
| const std::string & | arrayname = "MLPs" |
||
| ) |
Load MLPs from file.
| filename | name of the TFile to read from |
| arrayname | name of the TObjArray holding the MLPs in the file |
|
inline |
set the hit collection and event time to required and store the hit collection name
return reference to a neural network
Definition at line 93 of file GRLNeuro.h.
| vector< 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 106 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 |
Definition at line 195 of file GRLNeuro.cc.
|
inline |
Loads parameters from the geometry and precalculates some constants that will be needed.
set fixed point precision
Definition at line 86 of file GRLNeuro.h.
|
private |
Fixed point precision in bit after radix point.
8 values:
Definition at line 122 of file GRLNeuro.h.