168 tensorflow::Tensor inputAssoc(tensorflow::DT_FLOAT, {1, 4});
169 std::vector<tensorflow::Tensor> outputAssoc;
172 ap_fixed<16, 3> etaEmulation;
173 etaEmulation.V = (etaEmulationBits.range());
184 ap_uint<14> ptEmulationBits =
t.getTrackWord()(TTTrack_TrackWord::TrackBitLocations::kRinvMSB - 1,
185 TTTrack_TrackWord::TrackBitLocations::kRinvLSB);
186 ap_ufixed<14, 9> ptEmulation;
187 ptEmulation.V = (ptEmulationBits.range());
189 ap_ufixed<22, 9> ptEmulation_rescale;
190 ptEmulation_rescale = ptEmulation.to_double();
192 ap_ufixed<22, 9> resBinEmulation_rescale;
193 resBinEmulation_rescale =
res_bins_[resbin];
195 ap_ufixed<22, 9> MVAEmulation_rescale;
196 MVAEmulation_rescale =
t.getMVAQualityBits();
198 ap_ufixed<22, 9> dZEmulation_rescale;
199 dZEmulation_rescale =
dZ;
201 inputAssoc.tensor<
float, 2>()(0, 0) = ptEmulation_rescale.to_double();
202 inputAssoc.tensor<
float, 2>()(0, 1) = MVAEmulation_rescale.to_double();
203 inputAssoc.tensor<
float, 2>()(0, 2) = resBinEmulation_rescale.to_double() / 16.0;
204 inputAssoc.tensor<
float, 2>()(0, 3) = dZEmulation_rescale.to_double();
209 double NNOutput = (double)outputAssoc[0].tensor<float, 2>()(0, 0);
211 double NNOutput_exp = 1.0 / (1.0 +
exp(-1.0 * (NNOutput)));
std::vector< double > z0_binning_
std::vector< double > eta_bins_
tensorflow::Session * AssociationSesh_
double AssociationThreshold_
void run(Session *session, const NamedTensorList &inputs, const std::vector< std::string > &outputNames, std::vector< Tensor > *outputs, const thread::ThreadPoolOptions &threadPoolOptions)
Abs< T >::type abs(const T &t)
std::vector< double > res_bins_
ap_uint< TrackBitWidths::kTanlSize > tanl_t