Belle II Software development
TRGGRLConfig.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <TObject.h>
11
12namespace Belle2 {
17
18
19
23
24
25 class TRGGRLConfig: public TObject {
26 public:
27
30
33 {
35 }
36 unsigned get_ecltaunn_nMLP() const
37 {
38 return m_ecltaunn_nMLP;
39 }
40 bool get_ecltaunn_multiplyHidden() const
41 {
43 }
44 std::vector<std::vector<float>> get_ecltaunn_nHidden() const
45 {
46 return m_ecltaunn_nHidden;
47 }
48 unsigned get_ecltaunn_n_cdc_sector() const
49 {
51 }
52 unsigned get_ecltaunn_n_ecl_sector() const
53 {
55 }
56 std::vector<float> get_ecltaunn_i_cdc_sector() const
57 {
58 return m_ecltaunn_i_cdc_sector;
59 }
60 std::vector<float> get_ecltaunn_i_ecl_sector() const
61 {
62 return m_ecltaunn_i_ecl_sector;
63 }
64 std::vector<std::vector<float>> get_ecltaunn_weight() const
65 {
66 return m_ecltaunn_weight;
67 }
68 std::vector<std::vector<float>> get_ecltaunn_bias() const
69 {
70 return m_ecltaunn_bias;
71 }
72
75 {
77 }
78 void set_ecltaunn_nMLP(unsigned i)
79 {
81 };
82 void set_ecltaunn_multiplyHidden(bool i)
83 {
85 };
86 void set_ecltaunn_nHidden(std::vector<std::vector<float>> i)
87 {
89 };
90 void set_ecltaunn_n_cdc_sector(unsigned i)
91 {
93 };
94 void set_ecltaunn_n_ecl_sector(unsigned i)
95 {
97 };
98 void set_ecltaunn_i_cdc_sector(std::vector<float> i)
99 {
100 m_ecltaunn_i_cdc_sector = i;
101 };
102 void set_ecltaunn_i_ecl_sector(std::vector<float> i)
103 {
104 m_ecltaunn_i_ecl_sector = i;
105 };
106 void set_ecltaunn_weight(std::vector<std::vector<float>> i)
107 {
109 };
110 void set_ecltaunn_bias(std::vector<std::vector<float>> i)
111 {
112 m_ecltaunn_bias = i;
113 };
114
115 private:
116
119
126
129
134 std::vector<std::vector<float>> m_ecltaunn_nHidden;
135
138 std::vector<float> m_ecltaunn_i_cdc_sector;
139
142 std::vector<float> m_ecltaunn_i_ecl_sector;
143
145 std::vector<std::vector<float>> m_ecltaunn_weight;
146 std::vector<std::vector<float>> m_ecltaunn_bias;
147
149 };
150
152} // end of namespace Belle2
unsigned m_ecltaunn_nMLP
Number of networks.
ClassDef(TRGGRLConfig, 4)
ClassDef, must be the last term before the closing {}.
TRGGRLConfig()
Default constructor.
bool m_ecltaunn_multiplyHidden
If true, multiply nHidden with number of input nodes.
float get_ecltaunn_threshold() const
Getter functions.
unsigned m_ecltaunn_n_cdc_sector
Number of CDC sectors.
std::vector< std::vector< float > > m_ecltaunn_nHidden
Number of nodes in each hidden layer for all networks or factor to multiply with number of inputs.
std::vector< std::vector< float > > m_ecltaunn_weight
weight and bias data in each nMLP
float m_ecltaunn_threshold
MVA Threshold of ecltaunn bit.
void set_ecltaunn_threshold(float i)
Setter functions.
unsigned m_ecltaunn_n_ecl_sector
Number of ECL sectors.
Abstract base class for different kinds of events.