27 if (
fPt_.get()[i0] == 0) {
28 for (
unsigned i1 = 0;
i1 < 5;
i1++)
48 nnet::dense<input_t, layer2_t, config2>(model_input, layer2_out,
w2,
b2);
51 nnet::relu<layer2_t, layer4_t, relu_config4>(layer2_out, layer4_out);
54 nnet::dense<layer4_t, layer5_t, config5>(layer4_out, layer5_out,
w5,
b5);
57 nnet::relu<layer5_t, layer7_t, relu_config7>(layer5_out, layer7_out);
60 nnet::dense<layer7_t, layer8_t, config8>(layer7_out, layer8_out,
w8,
b8);
63 nnet::relu<layer8_t, layer10_t, relu_config10>(layer8_out, layer10_out);
66 nnet::dense<layer10_t, layer11_t, config11>(layer10_out, layer11_out,
w11,
b11);
69 nnet::relu<layer11_t, layer13_t, relu_config13>(layer11_out, layer13_out);
72 nnet::dense<layer13_t, layer14_t, config14>(layer13_out, layer14_out,
w14,
b14);
75 nnet::relu<layer14_t, layer16_t, relu_config16>(layer14_out, layer16_out);
78 nnet::dense<layer16_t, layer17_t, config17>(layer16_out, layer17_out,
w17,
b17);
81 nnet::sigmoid<layer17_t, result_t, sigmoid_config19>(layer17_out, layer19_out);
84 nnet::dense<layer16_t, result_t, config20>(layer16_out, layer20_out,
w20,
b20);
89 nn_out.nn_id = layer19_out[0];
115 fEta_.get()[i0] = 0.;
116 fPhi_.get()[i0] = 0.;
126 for (
unsigned int i0 = 0; i0 < iParts.size(); i0++) {
136 lDPhi = lDPhi - lMPI;
138 lDPhi = lDPhi + lMPI;
140 fPhi_.get()[i0] = lDPhi;
141 fId_.get()[i0] =
id_t(iParts[i0].
id());
common ppss p3p6s2 common epss epspn46 common const1 w2
ap_fixed< 16, 6 > layer11_t
common ppss p3p6s2 common epss epspn46 common const1 w8
common ppss p3p6s2 common epss epspn46 common const1 w11
ap_fixed< 16, 6 > layer5_t
common ppss p3p6s2 common epss epspn46 common const1 w20
ap_ufixed< 9, 0, AP_RND_CONV, AP_SAT > layer4_t
ap_fixed< 16, 6 > result_t
unique_ptr< etaphi_t[]> fPhi_
unique_ptr< etaphi_t[]> fEta_
common ppss p3p6s2 common epss epspn46 common const1 w14
ap_ufixed< 9, 0, AP_RND_CONV, AP_SAT > layer7_t
ap_ufixed< 9, 0, AP_RND_CONV, AP_SAT > layer13_t
ap_fixed< 16, 6 > layer2_t
std::vector< input_t > NNvectorVar_
ap_ufixed< 9, 0, AP_RND_CONV, AP_SAT > layer16_t
ap_fixed< 16, 10 > input_t
ap_fixed< 16, 6 > layer14_t
Tau_NN_Result EvaluateNN()
common ppss p3p6s2 common epss epspn46 common const1 w17
ap_fixed< 16, 6 > layer8_t
Tau_NN_Result compute(const l1t::PFCandidate &iSeed, std::vector< l1t::PFCandidate > &iParts)
result_t nn_pt_correction
void initialize(const std::string &iName, int iNParticles)
ap_fixed< 10, 4 > etaphi_t
double phi() const final
momentum azimuthal angle
common ppss p3p6s2 common epss epspn46 common const1 w5
ap_ufixed< 9, 0, AP_RND_CONV, AP_SAT > layer10_t
ap_fixed< 16, 6 > layer17_t
double eta() const final
momentum pseudorapidity